class UsersController extends AppController { function register() { if (!empty($this->params[\'form\'])) { if ($this->User->save($this->params[\'form\'])) { $this->flash(\'Your registration information was accepted.\', \'/users/register\'); } else { $this->flash(\'There was a problem with your registration\', \'/users/register\'); } } } } ?>
Запускаю http://127.0.0.1/cake/app/views/users/register.thtml , в ответ :
Цитировать
Missing controller You are seeing this error because controller ViewsController could not be found.
Notice: If you want to customize this error message, create app\\views/errors/missing_controller.thtml.
Fatal: Create the class below in file : app\\controllers\\views_controller.php
class ViewsController extends AppController { var $name = \'Views\'; } ?>
Почему он просит контроллер , когда он уже есть ? Пробовал менять и documentroot в httpd.conf , но тоже самое , иногда пишет что не найден контроллер cakePHP . Тоже самое и с пример аутенцикации с офф сайта . PHP 5.2.1 APACHE 2.2