is it controller can be separated by folder?
eg:
I want to create admin area so I make the URL like this:
mysite.com/index.php/admin/blog/edit/5
mysite.com/index.php/admin/blog/create
mysite.com/index.php/admin/blog/index
mysite.com/index.php/admin/gallery/index
mysite.com/index.php/admin/gallery/edit/5
mysite.com/index.php/admin/gallery/create
can Yii do this? and how to make like this.
please help me.
thanks
Page 1 of 1
Help about Controller
#2
Posted 07 March 2010 - 03:59 AM
The above example is the normal setup. You just need to use Modules. And create a module for the admin area inside that module you will have a BlogController and a GalleryController.
#3
Posted 07 March 2010 - 04:31 AM
Vince., on 07 March 2010 - 03:59 AM, said:
The above example is the normal setup. You just need to use Modules. And create a module for the admin area inside that module you will have a BlogController and a GalleryController.
how I setup this modul on linux. I have tried to following (http://www.yiiframew...e/basics.module) this guide but failed
please help me...
thanks
Thanks and Kind Regards
------
DanDinDun
------
DanDinDun
#4
Posted 07 March 2010 - 04:57 AM
Dan Din Dun, on 07 March 2010 - 04:31 AM, said:
how I setup this modul on linux. I have tried to following (http://www.yiiframew...e/basics.module) this guide but failed
please help me...
thanks
please help me...
thanks
I have create an yii framework application
#webroot/yiic webapp webroot/myapplication
are to make my application based modules. I must to recreate my application ?
how to generate basic modul structure in linux? I have try to followong this guide (http://www.yiiframew...e/basics.module) but still dont understand. and I have search in google but still not found... please help me...
thanks
Thanks and Kind Regards
------
DanDinDun
------
DanDinDun
#5
Posted 07 March 2010 - 07:37 AM
Dan Din Dun, on 07 March 2010 - 04:57 AM, said:
I have create an yii framework application
#webroot/yiic webapp webroot/myapplication
are to make my application based modules. I must to recreate my application ?
how to generate basic modul structure in linux? I have try to followong this guide (http://www.yiiframew...e/basics.module) but still dont understand. and I have search in google but still not found... please help me...
thanks
#webroot/yiic webapp webroot/myapplication
are to make my application based modules. I must to recreate my application ?
how to generate basic modul structure in linux? I have try to followong this guide (http://www.yiiframew...e/basics.module) but still dont understand. and I have search in google but still not found... please help me...
thanks
Start the yiic shell:
cd webroot/myapplication protected/yiic shell
(make sure the web server process have access to protected/runtime)
If still no shell:
protected/yiic shell protected/config/main.php
In the shell:
module <name of the module>
/Tommy
#6
Posted 07 March 2010 - 10:02 AM
tri, on 07 March 2010 - 07:37 AM, said:
Start the yiic shell:
(make sure the web server process have access to protected/runtime)
If still no shell:
In the shell:
/Tommy
cd webroot/myapplication protected/yiic shell
(make sure the web server process have access to protected/runtime)
If still no shell:
protected/yiic shell protected/config/main.php
In the shell:
module <name of the module>
/Tommy
OK thanks tommy for your reply
Thanks and Kind Regards
------
DanDinDun
------
DanDinDun
Share this topic:
Page 1 of 1

Help
















