Thursday, January 31, 2013

Re: get actions

Because of CakePHP does not use PHP namepscpaces a best practice is to prefix all your classes in a plugin with plugin name, if plugin name is customer change your class to CustomerAccountController or CustomerAccount model.

On Tuesday, January 29, 2013 11:51:04 AM UTC-2, Igor Padovan da Silva wrote:
Hi,

In this code, http://pastebin.com/9BUKfsGh , i need to get all actions from crontrollers. In my app i have the same controller in app and plugin, but when is executed $methods = get_class_methods($controller . 'Controller')it get the methods from controller tha is in app, it ignores de controller from plugin. I tried to use App::shutdown(), but it dosen't work.

Does anybody know what can I do?

Thanks,
Igor Padovan da Silva

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: