Hey Amir,
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?
When you say action helper, are you referring to this?
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html
If so, then you could just create an abstract action helper [extends
Zend_Controller_Action_Helper_Abstract], which serves as the base action helper
your custom created action helpers. Populate the preDispatch() function in that
abstract class to perform the queries your action helpers need.
Then for every action helper you create after that, extend your custom action
helper abstract class, and voila!
Hope this helps,
-Kizano
//-----
Information Security
eMail: [email protected]
http://www.markizano.net/