If i group controllers and models in sub-folders as you suggested -

/app/models/events/event.php
/app/controllers/poll/polls_controller.php
etc.

what would be the URL structure, if i used /app/controllers/
polls_controller.php, URL would be like http://www.domain.com/polls.
Will it be http://www.domain.com/poll/polls for /app/controllers/poll/
polls_controller.php

Do i need to do any change when using the module in controller or
anything else.

On Jan 15, 4:04 am, majna <[email protected]> wrote:
> You can group controllers and models in sub-folders
> like
>
> /app/models/events/event.php
> /app/controllers/poll/polls_controller.php
> etc.
> just clear cache. and for views, there's Controller::viewPath property
>
> I suggest plugins for solution.
>
> On Jan 14, 3:27 pm, earth <[email protected]> wrote:
>
> > Hello,
>
> > I would like to create a cakePHP application having different modules
> > like - Events, Poll, etc.
> > Each module will have more than one database tables.
> > Each module may have more than one controller.
>
> > So i want to have a separate folder for each module within models
> > folder, like - /app/models/events and similarly for /controllers and /
> > views
>
> > Please let me know how this can be done.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to