Yii Framework Forum: Help about Controller - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help about Controller Rate Topic: -----

#1 User is offline   Dan Din Dun 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 77
  • Joined: 09-February 10

Posted 07 March 2010 - 03:45 AM

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
Thanks and Kind Regards
------
DanDinDun
0

#2 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

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.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#3 User is offline   Dan Din Dun 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 77
  • Joined: 09-February 10

Posted 07 March 2010 - 04:31 AM

View PostVince., 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
0

#4 User is offline   Dan Din Dun 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 77
  • Joined: 09-February 10

Posted 07 March 2010 - 04:57 AM

View PostDan 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



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
0

#5 User is online   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,651
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 07 March 2010 - 07:37 AM

View PostDan 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


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
Don't forget to read The Definitive Guide to Yii (en) (sv) | The class reference has the details
0

#6 User is offline   Dan Din Dun 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 77
  • Joined: 09-February 10

Posted 07 March 2010 - 10:02 AM

View Posttri, on 07 March 2010 - 07:37 AM, said:

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


OK thanks tommy for your reply :)
Thanks and Kind Regards
------
DanDinDun
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users