I have a plugin that has some basic set of functions.
I want to be able to Extend this plugin, without having to go in an edit
the code.
I would like to do things like add extra fields to the Table and have
the Views, Model and Controller be able to handle this.
I would also like to add some parameters to links.
I know that I can provide new Views using, /app/View/Plugin/....
But if I add code to appController::beforeFilter - this is for ALL
controllers, not just the plugin, so I would have to check to see if
this is a controller, then possibly make changes.
Same with beforeFind or beforeSave, etc.
I looked at callbacks, but if the plugin does not implement any, then
this does not work.
It seems like this is possible, but I am missing something.
Can anyone point me in some direction?
Thanks in advance.
Bill
View this message in context: How to Extend a plugin?
Sent from the CakePHP mailing list archive at Nabble.com.
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Sunday, September 2, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment