Forums

Develop my own actions

schip 29 Nov, 2013
Hi,

I am in the process of writing some custom actions. All is well, I have one question though.

How does the CFaction...Helper.ctp file work? I understand that the action it self needs a run-method. And if there is a helper-class it gets loaded, when there is a helper-ctp file, this also gets executed. What I don't get (and couldn't find) is where the helper.ctp is used. (why would we include a helper at all? )

thanks for your insides,
Paul
GreyHead 29 Nov, 2013
Hi Paul,

I checked my current installation and don't see any helper.ctp files? There are two ..._helper.php files. One is used to parse the form HTML and the other to manage the Tabs in the action display in the Wizard - a few actions load this helper file but I think the class is actually loaded by the core CF code so you can just use it.

Bob
This topic is locked and no more replies can be posted.