Re: How to set up site structure with Admin folder and controllers?

2009-02-26 Thread Leonard Teo
HAH. Turned out that this was much easier than I thought. The correct terminology to search for was "Admin Routing" and "Prefix Routing". http://book.cakephp.org/view/544/Prefix-Routing Thanks guys! Leo --~--~-~--~~~---~--~~ You received this message because you

Re: How to set up site structure with Admin folder and controllers?

2009-02-26 Thread Smelly Eddie
The bakery and manual already talk extensively to admin routing, and they really could not make it simpler. I suggest you dig into the manual, and come back with a more focused question about this. On Feb 25, 1:48 pm, brian wrote: > On Wed, Feb 25, 2009 at 10:20 AM, Adam Royle wrote: > > > Hav

Re: How to set up site structure with Admin folder and controllers?

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 10:20 AM, Adam Royle wrote: > > Have you looked into admin routing? > > You'll just need to prefix your actions and your views with "admin_" to get > it to work (and enable it in app/core.php) > > And then set up a route for your admin homepage, which would point to > Admi

Re: How to set up site structure with Admin folder and controllers?

2009-02-25 Thread Adam Royle
connect('/admin', array('controller' => 'administrators', 'action' => 'dashboard', 'admin' => 'admin')); Hope that helps, Adam - Original Message ----- From: "Leonard Teo" To: "CakePHP"

How to set up site structure with Admin folder and controllers?

2009-02-25 Thread Leonard Teo
Hi, I'm an experienced PHP developer that's just started using Cake. Apologies in advance if this is a n00bish question. I've created several models, controllers and scaffolds but I would like them all to reside in a /admin folder in the site structure. E.g. Models - Administrator - Story -