Hi,
I was wondering if anyone had any experience with an extension that can load certain contact from an action, Without registering the action ID in the controller actions() method?
Basically what i want to do in my action is to render a JS like the following:
<script src='http://domain.com/actionID'></script>
Where actionID stands for the following array:
array(
'actionID'=>array(
'class' => 'application.extensions.MyExtAction',
'property1' => 'value1',
),
)
Problem is that i sometimes call that extension or a widget that uses that extension inside a view, So the request was already handled. I assume i can add an event that will add the required actions to the currently viewed controller but i was wondering if there is any other way. Eventually i would like to avoid editing controller file to add actions that the extension uses, Specially when there can be lots of actions and can be placed in any controller.
Thanks.