— там в Downloads пусто Но где копать ясно.Автор оригинала: fixxxer
http://code.google.com/p/hanami/ не? это то что на первой странице есть, а там их полно
Там тоже ничего толком нет. В trunk точно ничего, в branches так, кое-что.Автор оригинала: dr-sm
Developer Installation:
- Get the code from svn
...
defined('SYSPATH') or die('No direct script access.');
один из бзиков девелоперовДа и непонятно зачем пихать
не по умолчанию, а в принципе они должны называться Model_<Entity>как по умолчанию должны называться классы-модели
$article = Model::factory('Article');
$article = new Model_Article();
Kohana::init(array(
'base_url' => '/',
'index_file' => FALSE,
'errors' => FALSE
));
Model::factory('Article')->where('id', '=', 42)->find();А зачем метод factory() в Model? То есть нафиг писать
неправильно, отключать ничего не надо, надо просто ловить эксепшны. вот нижняя часть бутстрапа tvfedor.ru, которая как раз и ловит всё-всё-всё:отключив стандартный обработчик ошибок при инициализации в bootstrap.php:
try
{
try
{
$request = Request::instance();
$request->execute();
}
catch (ReflectionException $e)
{
Kohana::$log->add(Kohana::ERROR_404, Kohana::exception_text($e));
if (!IN_PRODUCTION)
{
throw $e;
}
$request->response = Request::factory('err/404')->execute();
}
catch (Exception404 $e)
{
Kohana::$log->add(Kohana::ERROR_404, Kohana::exception_text($e));
if (!IN_PRODUCTION)
{
throw $e;
}
$request->response = Request::factory('err/404')->execute();
}
catch (Kohana_Request_Exception $e)
{
Kohana::$log->add(Kohana::ERROR_404, Kohana::exception_text($e));
if (!IN_PRODUCTION)
{
throw $e;
}
header('Content-Type: text/html; charset='.Kohana::$charset, TRUE, 404);
echo Request::factory('err/404')->send_headers()->execute()->response;
exit;
}
catch (exception $e)
{
Kohana::$log->add(Kohana::ERROR, Kohana::exception_text($e));
if (!IN_PRODUCTION)
{
throw $e;
}
$request->status = 500;
$request->response = Request::factory('err/500')->execute();
}
}
catch (exception $e)
{
if (!IN_PRODUCTION)
{
throw $e;
}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
Хостинг провайдер Фёдора испытывает затруднения. Мы в курсе проблемы и будем делать все от нас зависящее для скорейшего разрешения данной ситуации. Приносим извинения за перебои в работе.<br /><br /> Команда tvfёdor.ru (<a href="mailto:[email protected]">[email protected]</a>)
</body>
</html>';
exit;
}
if ($isCli && isset($e))
{
echo $e->getMessage();
}
echo $request->send_headers()->response;
try
{
$request = Request::instance();
try
{
$request->execute();
}
catch(Exception $e)
{
if( $request->status == 404 || $request->status == 500 )
{
Kohana::$log->add(Kohana::ERROR, Kohana::exception_text($e));
$request->response = Request::factory(Route::get('default')->uri(array(
'controller' => 'error',
'action' => $request->status,
)))->execute();
}
else
{
throw $e;
}
}
echo $request
->send_headers()
->response;
}
catch(Exception $e)
{
if( Kohana::$environment == Kohana::PRODUCTION )
{
die('The page you are looking for is temporarily unavailable');
}
throw $e;
}
try
{
try
{
$request = Request::instance();
$request->execute();
}
catch(Kohana_Request_Exception $e)
{
Kohana::$log->add(Kohana::ERROR, Kohana::exception_text($e));
echo Request::factory(Route::get('default')->uri(array(
'controller' => 'error',
'action' => '404',
)))->execute();
exit;
}
catch(Exception $e)
{
if( $request->status == 404 || $request->status == 500 )
{
Kohana::$log->add(Kohana::ERROR, Kohana::exception_text($e));
$request->response = Request::factory(Route::get('default')->uri(array(
'controller' => 'error',
'action' => $request->status,
)))->execute();
}
else
{
throw $e;
}
}
echo $request
->send_headers()
->response;
}
catch(Exception $e)
{
if( Kohana::$environment == Kohana::PRODUCTION )
{
die('The page you are looking for is temporarily unavailable');
}
throw $e;
}
Почему у тебя нет этой ошибки?ErrorException [ Notice ]: Trying to get property of non-object
SYSPATH/classes\kohana\request.php [ 962 ]
PHP:$benchmark = '"'.$this->uri.'"'; if ($this !== Request::$instance) { // Add the parent request uri $benchmark .= ' « "'.Request::$current->uri.'"'; } // Start benchmarking $benchmark = Profiler::start('Requests', $benchmark); }
Там ведь сообщение видаУкажите email
Укажите пароль
'not_empty' => ':field must not be empty',