Re: How-to URL modification

2011-11-13 Thread wudu
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

Auth - 2 logged in models simultaneously

2011-11-13 Thread wudu
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:/