Yes, you can group your models, controllers and views into
subdirectories.

You have to set additional paths to models, views and controllers into
documentRoot/app/config/bootstrap.php.

For example:

$modelPaths = array(MODELS."usuarios".DS, MODELS."sistema".DS,
MODELS."proyectos".DS);

$controllerPaths = array(CONTROLLERS."usuarios".DS,
CONTROLLERS."sistema".DS, CONTROLLERS."proyectos".DS);

$viewPaths= array(VIEWS."usuarios".DS, VIEWS."sistema".DS,
VIEWS."proyectos".DS);


It works to the structure:

/ DocumentRoot
      / app
            / models
                  / usuarios
                  / sistema
                  / proyectos
            / controllers
                  / usuarios
                  / sistema
                  / proyectos
            / views
                  / usuarios
                  / sistema
                  / proyectos



On 9 abr, 13:11, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Yes, but you will have to learn to use google for this.
>
>
>
> On Wed, Apr 9, 2008 at 5:00 AM, MarcS <[EMAIL PROTECTED]> wrote:
>
> >  Hi,
>
> >  I'm wondering if it is is somehow possible to put controllers into
> >  subdirectories.
> >  sort of like
> >  www.cakeapp.com/subdirectory/controller/action
> >  www.cakeapp.com/subdirectory2/controller/action
> >  and have the same for the views.
>
> >  It is not really essential but in large apps with lots of controllers
> >  it would be good if it was possible to put them in groups.- Ocultar texto 
> > de la cita -
>
> - Mostrar texto de la cita -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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