20 lines
No EOL
499 B
PHP
20 lines
No EOL
499 B
PHP
<?php
|
|
/**
|
|
* Wrapper for Zend_Controller_Action
|
|
*
|
|
*/
|
|
class Fiktiv_Controller_Action extends Zend_Controller_Action
|
|
{
|
|
protected function translate()
|
|
{
|
|
$args = func_get_args();
|
|
return call_user_func_array(array($this->view, 'translate'), $args);
|
|
}
|
|
|
|
public function __get($name)
|
|
{
|
|
if ($this->_helper->$name instanceof Zend_Controller_Action_Helper_Abstract) {
|
|
return call_user_func(array($this->_helper->$name, 'dbService'));
|
|
}
|
|
}
|
|
} |