In your users controller (cake 2.0):
function view($id = null) { if (!empty($this->request-
>params['userid'])) {
$id = $this->request->params['userid']; }
...}
In your routes.php:Router::connect('/:userid', array('controller' =>
'users', 'action' => 'view'), array('u
I have Users and Admins models. For various reasons I don't want to
merge them and use "role/type" field. Is it possible to use Auth
component so that Admin and User can both be logged in at the same
time? I'm using cakephp 2.0
--
Our newest site for the community: CakePHP Video Tutorials
http:/