Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/library/Fiktiv/Controller/Action.php
2010-10-30 13:49:59 +02:00

30 lines
No EOL
699 B
PHP

<?php
/**
* Wrapper for Zend_Controller_Action
*
*/
class Fiktiv_Controller_Action extends Zend_Controller_Action
{
/**
* Allow easy access to action helpers.
* @param string $name
* @return mixed
*/
public function __get($name)
{
if ($this->_helper->$name instanceof Zend_Controller_Action_Helper_Abstract) {
return call_user_func(array($this->_helper, $name));
}
}
/**
* Direct access to translate with out going
* through view.
* @return string
*/
public function translate()
{
$args = func_get_args();
return call_user_func_array(array($this->view, 'translate'), $args);
}
}