Sven,

There is no reason to separate an application into user side / admin side.
Cake has a define in core.php that creates an admin route.
What this allows you to do is keep all code for an object in one class.

Adding the route would work like this.

www.example.com/admin/posts/index

This would mean inside of PostsController you would have

function admin_index()
{
// add logic here and callbacks for authentication etc...
//view would be app/views/posts/admin_index.thtml
}

Another suggestion I have, look at some of the code from a cakeforge project, it will give you a better idea of where to start.


--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to