On Tuesday 25 Jan 2011 09:36:26 AmirBehzad Eslami wrote:
> Hi List,
> 
> I have extended the Zend_Controller_Action to "My_Controller_Action", where
> I have a preDispatch()
> method which runs a few SQL queries. The preDispatch() is invoked on every
> request, incuding
> pure http requests and internal requests triggered via action helpers.
> 
> 
> Is there any way to determine whether the current request is called from an
> Action Helper?
> Thanks in advance,
> -behzad

You could override the _forward() method in Zend_Controller_Action and set a 
parameter which you can fetch at your preDispatch() method. And the same for 
the ActionStack helper.

Regards, Jurian
-- 
Jurian Sluiman
Soflomo - http://soflomo.com

Reply via email to