HI
I need to simulate several urls.
Pages:
1. categories
a. subCategoryA
b. subCategoryB
2. products
a. productTypA
- product1
- product2
b. productTypB
- product 3
I try to simulate a url like this:
categories/subCategoryA/productTypB/product 3
I use this Director::Rule to handle my requests:
Director::addRules(100, array(
'categories//$subCategory!/$productTyp' => 'Hauptkategorie_Controller'
));
and this handler (read the comments):
public static $url_handlers = array(
'' => 'index',
//works ->URL:http://website.xx/categories
'$subCategory' => 'subCategory',
//works ->URL:http://website.xx/categories/subCategory
'$subCategory/$productTyp' => 'test'
// does not work. I'm getting a 404 ->URL:http://website.xx/categories/subCategory/productTyp
);
I think calling the url http://website.xx/categories/subCategory/productTyp does not match the rule, but I don't understand why.
Any help appreciated
Thanks in advance
Lukin