Поправил название классов
This commit is contained in:
parent
f041488554
commit
0b66a72484
3 changed files with 20 additions and 14 deletions
|
|
@ -8,9 +8,10 @@ use PHPTAL_Php_TalesInternal,
|
|||
ctiso\Controller\Site,
|
||||
ctiso\Controller\Component,
|
||||
ctiso\HttpRequest,
|
||||
PHPTAL_Tales,
|
||||
PHPTAL_TalesRegistry;
|
||||
|
||||
class Tales_DateTime_ implements PHPTAL_Tales
|
||||
class Tales_DateTime implements PHPTAL_Tales
|
||||
{
|
||||
static public function date($expression, $nothrow = false) {
|
||||
return "ctiso\\Tales::phptal_date(".PHPTAL_Php_TalesInternal::path ($expression).")";
|
||||
|
|
@ -68,8 +69,8 @@ class Tales {
|
|||
|
||||
/* Регистрация нового префикса для подключения компонента */
|
||||
$tales = PHPTAL_TalesRegistry::getInstance();
|
||||
$tales->registerPrefix('component', array('ctiso\\Component_Tales', 'component'));
|
||||
$tales->registerPrefix('date', array('ctiso\\DateTime_Tales', 'date'));
|
||||
$tales->registerPrefix('time', array('ctiso\\DateTime_Tales', 'time'));
|
||||
$tales->registerPrefix('component', array('ctiso\\Tales_Component', 'component'));
|
||||
$tales->registerPrefix('date', array('ctiso\\Tales_DateTime', 'date'));
|
||||
$tales->registerPrefix('time', array('ctiso\\Tales_DateTime', 'time'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue