method.*.php files not getting executed.
method.*.php files not getting executed.
I'm having a bit of trouble separating out my functions from the (module).module.php file. I'm able to get my action.default.php to work just fine, but when I try to put my functions in method.(function).php files, I keep on getting php errors saying that they are undefined functions, like these files aren't being read. Am I missing something?
Re: method.*.php files not getting executed.
Not every method can be separated out. Check the source code in /lib/classes/class.CMSModule.php to see if a method can be separated out. Either that or if you are using PHP5+, you can add the magic method __call.
Re: method.*.php files not getting executed.
Thanks.. I'm new to CMSMS and I was unsure on how to split up my modules..
What I was doing was making my module's multiple functions be called through paramaters in the "cms_module" call to my module. All calls were being channelled through the default action. What I did now was split my module into different actions (and separate files), which works now. Thanks.
What I was doing was making my module's multiple functions be called through paramaters in the "cms_module" call to my module. All calls were being channelled through the default action. What I did now was split my module into different actions (and separate files), which works now. Thanks.