Thanks for the reply! Your guess was right: I want to expand your mini- contollers approach, by giving each widget a "settings" page, which is loaded through ajax after a user clicks the "edit" button on a widget. This means I'll have to create controller and a view for the widget (edit.thml for example). In this case I would really like all the files belonging to a widget in one folder (element, component, model,view controller). It's not really a problem if it makes my code more complex, because it would make the widget-stucture easier to grasp.
Good to know it's possible, but I didn't quite understand your expanation on how to do this: "(3rd parameter iirc)". What does iirc stand for? On 12 apr, 08:38, "AD7six" <[EMAIL PROTECTED]> wrote: > On 10 abr, 15:38, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > > > I heavily use AD7six's mini-controllers approach > > (http://www.noswad.me.uk/MiBlog/MiniControllers) and because I combine this > > approach with the normal approach of having a model, controller, view, > > it would really be nice if I could bundle all this into a plugin. > > > Is it possible to have components and elements insie a plugin, and if > > so, how can I make sure Cake finds them? > > MiniControllers and Plugins are not the same, so while the answer is > "Yes" Cake is only going to find your my_plugin component/helper/ > element etc. if you are in "my_plugin"/aController at the time. You > can't (if I am guessing correctly?) from one of your app views render > an element from a plugin unless you explicitly tell cake exactly where > the file is (3rd parameter iirc). But that's adding complexity and > making things rather messy ;). > > hth, > > AD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---