Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

UrlManager rules for static pages in subdirectories

$
0
0
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:
'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.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>