Sorry, I was reading wrong, I meant:

Nice trick Adam!

On Tue, Apr 1, 2008 at 4:18 PM, Dardo Sordi Bogado <[EMAIL PROTECTED]> wrote:
> He proposition was:
>
>  1. Make a ListModel model (that uses the lists table)
>  2. In the ListsController (aka url /lists/) get a reference of
>  ListModel in $this->List, this is made in beforeFilter before any
>  controller action.
>  3. Make the ListsController use (var $uses = array('ListModel'); ) the
>  model ListModel as it was called List.
>  4. Everyone is happy.
>
>  btw, nice trick Colin!
>
>
>
>  On Tue, Apr 1, 2008 at 1:03 PM, Colin Viebrock <[EMAIL PROTECTED]> wrote:
>  >
>  >  Thanks Adam!
>  >
>  >  I'm new to CakePHP (and MVC in general), but I did a bit of digging in
>  >  the manual and I'm thinking maybe this is possible with routing?
>  >  Basically, name the model "Xlist" or something, then change the
>  >  routing configuration to add:
>  >
>  >  Router::connect(
>  >     '/lists/*',
>  >     array('controller' => 'xlists')
>  >  );
>  >
>  >  Do you think that would work?
>  >
>  >
>  >
>  >  - Colin
>  >
>  >  >  >
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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