One of the possible options is as follows:
Since videos probably have much more code around them than a simple user who has videos, the action of the video list should be in VideoController.
In past projects, I (in CakePHP 1.3) use prefix routing to solve some of these problems.
In config / core.php, make sure you enable routing.prefixes to enable the prefix 'user'.
<?php
... in routes.php ...
Routing.prefixes = array( 'user' );
?>
In the video controller, perform the action with the following signature:
<?php
...
public function user_index( $userID = null ){
...
}
?>
and in the views where you are linking to the list of user videos, the html :: link call should look something like this:
<?php
...
echo $this->Html->link( 'User\ Videos', array(
'controller' => 'videos',
'action' => 'index',
'prefix' => 'user',
$this->Session->read( 'Auth.User.id' )
));
?>
, , Auth . .
: ) , b) - site.com/user/videos/index/419
Slug ( , - db slug) http://42pixels.com/blog/slugs-ugly-bugs-pretty-urls)
, URL-: site.com/user/videos/index/eben-roux
app/config/routes.php /index/, SEO :
site.com/user/videos/eben-roux
http://book.cakephp.org/view/945/Routes-Configuration