It was a bug that was fixed on the last nightly build. Thanks
On 8 set, 12:16, alanclic <[EMAIL PROTECTED]> wrote: > I setted CAKE_ADMIN as 'admin', and everywhere i use $form->create(), > i get anoticefrom CAKEPHP. > > for example in one view i use $form->create('User', array('action' => > 'login')), without theadminrouteit works just fine. > > the notices are: > > Notice(8): Undefined index: plugin [CORE\cake\libs\router.php, line > 747] > Undefined index: controller [CORE\cake\libs\router.php, line 747] > > Router::mapRouteElements() - CORE\cake\libs\router.php, line 747 > Router::url() - CORE\cake\libs\router.php, line 599 > Helper::url() - CORE\cake\libs\view\helper.php, line 183 > FormHelper::create() - CORE\cake\libs\view\helpers\form.php, line 190 > include - CORE\app\views\users\login.ctp, line 22 > View::_render() - CORE\cake\libs\view\view.php, line 777 > View::render() - CORE\cake\libs\view\view.php, line 337 > Controller::render() - CORE\cake\libs\controller\controller.php, line > 667 > Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 291 > Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 257 > [main] - CORE\app\webroot\index.php, line 84 > > CONTEXT: > $route = array(0 => "/:admin/:controller/:action/*", 1 => "/^(?:\/(?: > (admin)(?:\/([a-zA-Z0-9_\-\.\;\:]+)(?:\/([a-zA-Z0-9_\-\.\;\:]+)(?:[\/ > \?](.*))?)?)?))[\/]*$/", 2 => array, 3 => array) > $url = array("plugin" => null, "id" => false, "controller" => > "users", > "action" => "login") > $_this = array("routes" => array, "__admin" => null, > "__parseExtensions" => false, "__validExtensions" => null, "__named" > => array, "__currentRoute" => array, "__headerMap" => array, > "__resourceMap" => array, "__resourceMapped" => array, "__params" => > array, "__paths" => array, "__mapped" => array, "_log" => null) > $defaults = array() > $params = array("controller" => "users", "plugin" => null, "action" => > "login", "id" => false) > $routeParams = array(0 => "admin", 1 => "controller", 2 => "action") > $pass = array() > $value = false > $key = "id" > $required = array() > > CODE: > return false; > > } > > } else { > > if (empty($required) && $defaults['plugin'] == > $url['plugin'] && $defaults['controller'] == $url['controller'] && > $defaults['action'] == $url['action']) { > > return array(Router::__mapRoute($route, am($url, > compact('pass'))), $url); > > It looks like it's looking for an action withadminrouting.. > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---