> I know you can put other subfolders in there in place of
> (or in addition to) the "index" subfolder, but this just
> adds extra to the URL that the user has to type in.
The user has to type in? The controller subdirectories are not the same
thing as you type in the browsers address bar. These folders are there to
separate the different views for the various controller. How would you
separate the index.phtml belonging to the IndexController from the
index.phtml for the BlogController?
If you want to alter the URL of a page, you should either:
- create custom routes to map /main to controller index, action main
- move you code to a main controller in the index action
Vincent de Lau
vincent@delau.nl
没有评论:
发表评论