On Mon, May 24, 2010 at 6:51 AM, shahrzad khorrami <
[email protected]> wrote:
> hi all,
>
> $funcName is a parameter (comes from extjs)
>
> public function init()
> {
> $this->funcName = $this->getRequest()->getParam('funcName');
> // here must get $funcName and pass it to listAction then json
> create,..... HOW ..?
> $this->_helper->contextSwitch()
> ->addActionContext('list', 'json')
> ->setAutoJsonSerialization(true)
> ->initContext();
>
> .
> .
> .
> .
> How can I pass $funcName to listAction?
>
> public function listAction($funcName)
> {
> // need funcName
> echo $funcName ;
>
>
> Regards,
> Shahrzad Khorrami
>
$this->getRequest()->getActionName() will give you the current action. If
you really need to know the name of the currently executing function,
there's always __FUNCTION__
--
Support real health care reform:
http://phimg.org/
--
David Mintz
http://davidmintz.org/