Hey AD7six, I've been working hard to try and get your example code to work (http://www.noswad.me.uk/MiBlog/MiniControllers), but being fairly new to cake, I guess I got stuck because I've jumped from the basics to something more advanced. I thought if I would get your archive example to work, I would understand the concept, and could go on creating my own "widgets" (or "blobs", as you called them). But I gues I need some more guidance as to the structure of the plugins your example code expects.
To my understanding I need to create a plugin called "blogs" (with its own blogs_app_controller.php and blogs_app_model.php and its own controller, model and views), but I guess I am wrong. I wasn't sure either how I should include the widget in another controller's view. Can you explain a bit more about how to implement your solution? Thanks a lot in advance! On 1 mrt, 12:52, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > Hi AD7six! > > Thanks a lot for your comprehensive article! It seems we're both > aiming for the same thing: a while ago I wrote such a system as the > Google personalised homepage, in php and with the help of > scriptaculous, to create an online WYSIWYG website builder and CMS. > Now I'm trying to partly re-create this in Cake. > > Bit of a turndown to read that Cake doesn't have built-in support for > suchmodulardesign, especially since scriptaculous has such flexible > drag-and-drop features. I'll try out your mini-modules solution, and > see if I can get it to work! I'll keep you posted! > > > PS Model's don't have views, but perhpas that was a slip of the keys. > > Yep, I meant another controller's view :) > > On 1 mrt, 08:47, "AD7six" <[EMAIL PROTECTED]> wrote: > > > On Mar 1, 8:45 am, "AD7six" <[EMAIL PROTECTED]> wrote: > > > > On Mar 1, 12:08 am, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > > > > > I've been programming in php for years, but I'm relatively new to > > > > cake. I must say I am amazed at the ease of use and intuïtivity of the > > > > framework! Mostly things just work the way you expect them to, which > > > > makes it very easy to work with, and a great pleasure too! > > > > > There's also a lot of good documentation, so most questions I had, > > > > were easily answered. Now i want to do something a little more > > > > complex, and ran into a problem: > > > > > I want to use Cake's plugin-structure to allow for an extendible set > > > > of, well let's call them "menu-widgets" for the navigation-bar of my > > > > blog system. > > > > > So each "widget" resides in its own folder within the plugins-folder, > > > > and has its own add/edit/delete methods and views. > > > > > But now I want to include the main view (view.thtml) of each widget in > > > > the sidebar of my blog. Any ideas on how to do that? > > > > The immediate answer would be to use reqesutAction, the (not really > > > slow) answer is to make use of elements. I wrote about a solution to > > > this sort ofmodulardesign problem on my blog about this only > > > yesterday (how ironic).http://www.noswad.me.uk/MiBlog/MiniControllers > > > > HTH, > > > > AD > > > PS Model's don't have views, but perhpas that was a slip of the keys. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---