Re: Online baking tool for CakePHP
REALLY good thinking, Christian! On Thursday, March 19, 2015 at 7:04:50 PM UTC+1, Matthew Kaufman wrote: > > very nice! > > On Thu, Mar 19, 2015 at 7:09 AM, gabriel > > wrote: > >> Brilliant !! excellent work. Makes my life so much easier as I am only >> developing online and not locally, and don't use the command line... >> >> Thanks >> >> On Wednesday, 10 April 2013 14:19:04 UTC+1, Christian Cadéré wrote: >>> >>> Petit Four is an online application dedicated to speed up the design and >>> code generation of CakePHP projects. >>> >>> It allows to design the models of an application: fields, validation >>> rules and relations, with a simple user interface. Then with one clic it >>> generates: >>> >>>- a SQL database >>>- Model files with all validation rules and relations >>>- Standard CakePHP Controllers files >>>- Standard CakePHP view files >>> >>> It has just been released so it is still a bit basic and may contain >>> some bugs, but we are working to improve it and would be glad to receive >>> comments and suggestions ! >>> >>> You can use it here : http://patisserie.keensoftware.com/en/cakes >>> >> -- >> 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+u...@googlegroups.com . >> To post to this group, send email to cake...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/cake-php. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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+unsubscr...@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/d/optout.
CakePHP & WorkFlows
Hello all, Please has anyone succeeded in integrating a workflow engine with CakePHP? I'm currently looking at the open source ezComponents (http://ezcomponents.org) and the WorkFlow engine they have. Can't seem to be able to make head or tail of where to begin, even after going through the introduction. Usually, I would have applied the usual brute force and built a generic one, but I've decided to avoid reinventing the wheel where reasonable. Pls any and all help is greatly appreciated Femi --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Best Practices - "Modular Blocks & Actions"
hi Alan, That's true. I'll look into using requestAction to preload, and then try out the caching. Thanks for the link, looking at it right away. Thanks Femi TAIWO On Aug 16, 3:13 pm, alan <[EMAIL PROTECTED]> wrote: > You might consider initially loading all of your content serverside > instead of AJAX. Just put all the components together on one page > using $this->requestAction() to get all the content elements. You can > then update and move them around with AJAX as your planning... but > you'll see better performance if you preload the content. > > Also - you are really going to need to cache your data... I would > cache each of the requestAction calls individually. > > http://bakery.cakephp.org/articles/view/ecache-easy-per-user-or-per-a... > > thanks, > -alan- > > On Aug 15, 6:54 am, Femi Taiwo <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I need to includemultiplecontrollers& views on a single page. Yes this > > sounded easy at first, especially after I readCreating Reusable Elements > > with requestAction > > until i found the possible overheads. > > This is what I'm trying to do: > > Build an application that allows the administrator to add order and move > > modules around on different parts of the application > > I have a couple of models for this. One is PortalTab, second is > > PortalModule and the third that ties these two is PortalTabsPortalModule > > a new module is registered into the portal by creating an entry for it in > > the portal_modules table. To make the module available for use, I put it in > > an existing > > portal_tab record( as in i insert portal_tab_id and the portal_module_id > > into the portal_tabs_portal_module table) . By visiting the tab using a > > controller action e.g /tabs/viewtab/13, tab with id of 13 has many modules > > attached to it, and displays them accordingly. A lot of thot has also gone > > into what part of the page which module shows and their order.(1)I have > > viewtab.ctp which has a loop that runs through the $modulesToLoad (e.g) > > variable and loads each one via AJAX . > > While this works quite well, the bad side to that the number of initial > > calls made to the server while it's loading via ajax: > > number of calls =the total number modules. I forsee having on the average > > 4/5 modules per tab group. Some may be just two. > > The project is growing quite fast especially with this mode of adding and > > working with modules dynamically, allowing the portal to have a loosely > > defined structure.I've also be able to effect calls using ajax and updating > > another block on the page. > > Apart from the overhead, what other possible failings does this method > > have? Otherwise, what do I do instead? > > Thanks! > > Femi TAIWO. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Hiding User Requests Using POST instead of GET
Hi, Simply put: Can I somehow force the framework to parse POST instead of GET for the requested controller action ? The 411: I've spent quite a while trying to solve this, but I've been building a school portal with cakephp for a few days now, and I'm trying to achieve something I haven't seen so much of around. By default users click on links that show up in the address bar as e.g http://example.mybakery.org/users/login. So I've created a layer just above cakephp , such that the url is always http://example.mybakery.org/events, and any click within the site actually causes the submission of a form (i specified the form tags,method and action in the default.thtml layout, and applied the onclick actionevent using behaviour.js to appropriate links). Inside the form are two hidden elements, one represents the controller, second the action requested. The events controller then matches these makes a request to the requested controller+action. Almost seamless till this point. Now this is problem - There are two methods for 'requesting' other controllers - $this->redirect($url) and $this->requestAction($url,$extra); If I were to use $this->redirect, that would defeat what I was trying to do (i.e. hide all urls).So, I'm somewhat left with the $this- >requestAction. However, I've not been to do a chain $this- >requestAction() call : eventsController makes a request to the usersController for the 'changepassword' action. and the changepassword action first needs to confirm if the user if logged in, if not, send him to the login action. So pathwise it's like 1. events 2. rqAction(/users/changepassword); 3 ---users 4 Is User logged in? 5 Yes then execute 6 No, then redirect to login. The problem is at line 6, because I'm requesting another action (from within another requested action), but the view associated with changepassword is still rendered and the login view does not even show up in the html. What do I do? Really hoping someone has a good idea how to solve this, cause I've tried and still trying to. Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---