Hi,
I try to create URL rules to match static pages located in subdirectories of /site/pages.
For example, I have protected\views\site\pages\subdir1 with php scripts inside.
I want to create a rule to match any file inside that dir.
I can't find out.
This rule works:
but I'd like a general rule because there will be many files so I would not have to write a rule for each file.
Thanks a lot.
I try to create URL rules to match static pages located in subdirectories of /site/pages.
For example, I have protected\views\site\pages\subdir1 with php scripts inside.
I want to create a rule to match any file inside that dir.
I can't find out.
This rule works:
'subdir1/script1'=>array('site/page', 'defaultParams'=>array('view'=>'subdir1.script1')),
but I'd like a general rule because there will be many files so I would not have to write a rule for each file.
Thanks a lot.