CakeDC/users — Issue #30: /users/pages/tos
Author: ionas
Created: 2011-12-25 18:14:44+00:00
State: open

Cake Version: 2.0.4

If including the Plugin like this:

CakePlugin::load('Users', array('routes' => true));

... then the /users/add view renders a link to /users/pages/tos

$tosLink = $this->Html->link(__d('users', 'Terms of Service'), array('controller' => 'pages', 'action' => 'tos'));

I found no way to overwrite the Router
Tried:

Router::connect('/users/pages/tos', array('plugin' => false, 'controller' => 'pages', 'action' => 'display', 'tos')); // this
Router::connect('/users/pages/tos', array('plugin' => 'users', 'controller' => 'pages', 'action' => 'display', 'tos')); // and that

Suggesting this:

$tosLink = $this->Html->link(__d('users', 'Terms of Service'), array('plugin' => false, 'controller' => 'pages', 'action' => 'tos'));

Thanks for this lovely plugin!