Router::connect('admin/settings', array('controller'=>'pages', 'action'=>'display', 'admin', 'settings', 'admin' => true));
Cake's PagesController does not handle these by default, because admin_display() function is not defined. To add it without duplicating the display() function, you can do this:
function admin_display() {
$args = func_get_args();
call_user_func_array(array(&$this, 'display'), $args);
}
Комментариев нет:
Отправить комментарий