Hey Mark, thanks for your reply!
On Sunday, October 27, 2013 8:53:43 AM UTC-2, euromark wrote:
-- By 'copy-and-paste', I meant when I need to create a new project, so I would only copy-and-paste this customized Plugin, insted of copying all the separated MVC files...
Do you put all the app logic inside your plugin's AppController ? I had some issues with Acl plugin, because it was trying to access the Acl Component, but this Component was defined in PluginAppController insted AppController.
And then I started wondering if I would find other issues like this in the future.
Maybe the best solution is create a plugin with Components, Helpers and Behaviors, instead of a Plugin which tries to take AppController's place?
Or I am missing something here?
Thanks a lot !!
Vinicius
On Sunday, October 27, 2013 8:53:43 AM UTC-2, euromark wrote:
Yes, plugins are the way to go.I fail to see the issue with reusing a plugin component, though.And I don't understand what you mean by copy-and-paste? Ideally, you don't do that at all, but use/extend the available classes.Mark
Am Sonntag, 27. Oktober 2013 00:52:01 UTC+2 schrieb Vinicius Dusso:Hi guys,Which way do you think is the best to create a reutilizable app?I've been trying to create all my app rules inside one single plugin, so it will make easier to copy and paste to a new project. But I've been facing a few problems, especially when another plugin try to use a Component that was defined in my PluginAppController.So, to create a full and simple reutilizable architecture, what do you guys recommend?Thanks in advance !Vinicius Dusso
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.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment