This is my guess,you need to set up two as below.
1. Controller Setup
2. Router Setup
1. Using action controllers in sub directories
/admin/tools/otherController.php
is mapped to below↓
className:
Admin_Tools_OtherController
you can access this controller in this uri.
/admin/tools_other/[actionname]/*
2.Router Setup
you can add routes from the uri "/admin/tools/other"
to the controller named "tools_other" .
Excuse me ,I am not good at English.
regards
--
noopable:
Tomoaki Kosugi
2009/2/24 vince. <vadimg88@gmail.com>:
>
> How can i set a rewrite rule class/instance across the entire application
> that i could use sub directories inside the main controllers directory for
> each module? Meaning so i could have this structure:
>
> /application
> /modules
> /admin
> /controllers
> /index
> /indexcontroller.php
> /othercontroller.php
> /tools
> /indexcontroller.php
> /othercontroller.php
> /settings
> /indexcontroller.php
> /othercontroller.php
> /layouts
> /site
> /controllers
> /index
> /indexcontroller.php
> /othercontroller.php
> /tools
> /indexcontroller.php
> /othercontroller.php
> /settings
> /indexcontroller.php
> /othercontroller.php
> /layouts
> /library
>
>
> and i could enter the file admin/controller/tools/other as follows:
> admin/tools/other trough the url. and basically use sub directories inside
> the controllers directory. what do i need to setup?
>
> Thanks.
>
没有评论:
发表评论