Re: Newbie question: Disable Cache
This issue has been resolved. It turned out to be my webhost caching the generated cache files. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: using transactions in cake
hey, thanks for your time... the thing is, that in some models I am also using the saveAll(). I have 6 saving processes, some save() some saveAll(), and all of them need to be successful. one failure means, nothing shall be saved so this would affect your advice, right? or should i wrap one saveAll around all six saving procedures? On 25 Jan., 22:35, jeremyharris funeralm...@gmail.com wrote: Take a look at the saveAll() method in the Model class, it will handle validation and saving and transactions. As far as ajax feedback, something I've done in the past is pass the ajax response to a function that checks the response for validation errors, then extract those and output them however I want. $this-Js-submit('Submit', array('success'='onSuccess(event, data, textStatus)'); then your js may look something like (assuming jquery) function onSuccess(event, data, textStatus) { $(data).find('div.error'); // etc. } If you use the form helper, it will create a div.error for each validation error which you can then extract the text from and display however you want. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cakephp fails on xampp - cakecontroller could not be found
On Jan 26, 1:21 am, Sam Sherlock sam.sherl...@gmail.com wrote: Cake might be a bad name for a controller. He's simply reading and following the error messages. jkrug_98 - it's either a setup problem ( missing .htaccess file) or a bug. what version of cake are you using. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Problem with CakePlugin on shared server
Hi! I have several CakePHP installations on a server, two of them are 2.0 (recent installs). I now notice that the 2.0 installations seem to collide with eachother. Occationally when loading a page I get this error message: Fatal error: Uncaught exception 'MissingPluginException' with message 'Plugin Email could not be found.' in /srv/www/BAR/lib/Cake/Core/ CakePlugin.php:97 Stack trace: #0 /srv/www/BAR/lib/Cake/Core/CakePlugin.php(129): CakePlugin::load('Email', Array) #1 /srv/www/FOO/app/Config/bootstrap.php(68): CakePlugin::loadAll() #2 /srv/www/FOO/lib/Cake/Core/Configure.php(81): include('/srv/www/ FOO...') #3 /srv/www/FOO/lib/Cake/bootstrap.php(138): Configure::bootstrap(true) #4 /srv/www/FOO/app/webroot/index.php(77): include('/srv/www/FOO...') #5 {main} thrown in /srv/www/BAR/lib/Cake/Core/CakePlugin.php on line 97 The sites are installed in /srv/www/FOO and /srv/www/BAR respectively (FOO and BAR are made up). The error above is from the FOO site. As you can see it seems to be using the plugin loader from BAR. It in turn tries to load the Email plugin (which exists in BAR, but not in FOO) and fails horribly. Why is this happening? Bug? Config problem? Is the class finder in loadAll() going mad (i.e. outside the root)? Both installs are fairly vanilla, both using it's own MySQL database. Since it crashes in bootstrap, I'm not sure what I could do to stop it. I tried changing the default cache to Memcache (with prefixes), but to no avail. I also changed the session store to database just to check, no change. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cakephp fails on xampp - cakecontroller could not be found
Thanks for your reply. I must have done something wrong during the installation on my XP system. Not sure what yet - but - I successfully intalled xampp cakephp 2.0.5 on my Windows 7 system. All works well! The Win7 system is my primary development station and the XP system is my at work system. For now I'll use my Win7 system. Thanks again. On Jan 26, 4:44 am, AD7six andydawso...@gmail.com wrote: On Jan 26, 1:21 am, Sam Sherlock sam.sherl...@gmail.com wrote: Cake might be a bad name for a controller. He's simply reading and following the error messages. jkrug_98 - it's either a setup problem ( missing .htaccess file) or a bug. what version of cake are you using. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem with CakePlugin on shared server
Interesting..I've seen this as well but rareand thought I had misconfigured something. They are 2.0.x installs on a debian style linux. On Thu, Jan 26, 2012 at 4:38 AM, Eric eric.karls...@gmail.com wrote: Hi! I have several CakePHP installations on a server, two of them are 2.0 (recent installs). I now notice that the 2.0 installations seem to collide with eachother. Occationally when loading a page I get this error message: Fatal error: Uncaught exception 'MissingPluginException' with message 'Plugin Email could not be found.' in /srv/www/BAR/lib/Cake/Core/ CakePlugin.php:97 Stack trace: #0 /srv/www/BAR/lib/Cake/Core/CakePlugin.php(129): CakePlugin::load('Email', Array) #1 /srv/www/FOO/app/Config/bootstrap.php(68): CakePlugin::loadAll() #2 /srv/www/FOO/lib/Cake/Core/Configure.php(81): include('/srv/www/ FOO...') #3 /srv/www/FOO/lib/Cake/bootstrap.php(138): Configure::bootstrap(true) #4 /srv/www/FOO/app/webroot/index.php(77): include('/srv/www/FOO...') #5 {main} thrown in /srv/www/BAR/lib/Cake/Core/CakePlugin.php on line 97 The sites are installed in /srv/www/FOO and /srv/www/BAR respectively (FOO and BAR are made up). The error above is from the FOO site. As you can see it seems to be using the plugin loader from BAR. It in turn tries to load the Email plugin (which exists in BAR, but not in FOO) and fails horribly. Why is this happening? Bug? Config problem? Is the class finder in loadAll() going mad (i.e. outside the root)? Both installs are fairly vanilla, both using it's own MySQL database. Since it crashes in bootstrap, I'm not sure what I could do to stop it. I tried changing the default cache to Memcache (with prefixes), but to no avail. I also changed the session store to database just to check, no change. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem with CakePlugin on shared server
I've setup baking on one of the projects (the other one is a 1.1 port to 2.0.x that I won't be baking) Maybe it isn't related, but it was a little disconcerting to see a url on the debug for the other site. At this point, I'll ignore it, but wanted to get in a me too email so the op didn't think he was crazy. On Thu, Jan 26, 2012 at 8:34 AM, Sam Sherlock sam.sherl...@gmail.comwrote: Odd. Have you tried setting up advanced setup with cake baked projects? Also is foo a copy of bar? - S On 26 Jan 2012 13:14, Jon Price jonpr...@donet.com wrote: Interesting..I've seen this as well but rareand thought I had misconfigured something. They are 2.0.x installs on a debian style linux. On Thu, Jan 26, 2012 at 4:38 AM, Eric eric.karls...@gmail.com wrote: Hi! I have several CakePHP installations on a server, two of them are 2.0 (recent installs). I now notice that the 2.0 installations seem to collide with eachother. Occationally when loading a page I get this error message: Fatal error: Uncaught exception 'MissingPluginException' with message 'Plugin Email could not be found.' in /srv/www/BAR/lib/Cake/Core/ CakePlugin.php:97 Stack trace: #0 /srv/www/BAR/lib/Cake/Core/CakePlugin.php(129): CakePlugin::load('Email', Array) #1 /srv/www/FOO/app/Config/bootstrap.php(68): CakePlugin::loadAll() #2 /srv/www/FOO/lib/Cake/Core/Configure.php(81): include('/srv/www/ FOO...') #3 /srv/www/FOO/lib/Cake/bootstrap.php(138): Configure::bootstrap(true) #4 /srv/www/FOO/app/webroot/index.php(77): include('/srv/www/FOO...') #5 {main} thrown in /srv/www/BAR/lib/Cake/Core/CakePlugin.php on line 97 The sites are installed in /srv/www/FOO and /srv/www/BAR respectively (FOO and BAR are made up). The error above is from the FOO site. As you can see it seems to be using the plugin loader from BAR. It in turn tries to load the Email plugin (which exists in BAR, but not in FOO) and fails horribly. Why is this happening? Bug? Config problem? Is the class finder in loadAll() going mad (i.e. outside the root)? Both installs are fairly vanilla, both using it's own MySQL database. Since it crashes in bootstrap, I'm not sure what I could do to stop it. I tried changing the default cache to Memcache (with prefixes), but to no avail. I also changed the session store to database just to check, no change. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem with CakePlugin on shared server
Ubuntu 11.10 here. On Jan 26, 2:14 pm, Jon Price jonpr...@donet.com wrote: Interesting..I've seen this as well but rareand thought I had misconfigured something. They are 2.0.x installs on a debian style linux. On Thu, Jan 26, 2012 at 4:38 AM, Eric eric.karls...@gmail.com wrote: Hi! I have several CakePHP installations on a server, two of them are 2.0 (recent installs). I now notice that the 2.0 installations seem to collide with eachother. Occationally when loading a page I get this error message: Fatal error: Uncaught exception 'MissingPluginException' with message 'Plugin Email could not be found.' in /srv/www/BAR/lib/Cake/Core/ CakePlugin.php:97 Stack trace: #0 /srv/www/BAR/lib/Cake/Core/CakePlugin.php(129): CakePlugin::load('Email', Array) #1 /srv/www/FOO/app/Config/bootstrap.php(68): CakePlugin::loadAll() #2 /srv/www/FOO/lib/Cake/Core/Configure.php(81): include('/srv/www/ FOO...') #3 /srv/www/FOO/lib/Cake/bootstrap.php(138): Configure::bootstrap(true) #4 /srv/www/FOO/app/webroot/index.php(77): include('/srv/www/FOO...') #5 {main} thrown in /srv/www/BAR/lib/Cake/Core/CakePlugin.php on line 97 The sites are installed in /srv/www/FOO and /srv/www/BAR respectively (FOO and BAR are made up). The error above is from the FOO site. As you can see it seems to be using the plugin loader from BAR. It in turn tries to load the Email plugin (which exists in BAR, but not in FOO) and fails horribly. Why is this happening? Bug? Config problem? Is the class finder in loadAll() going mad (i.e. outside the root)? Both installs are fairly vanilla, both using it's own MySQL database. Since it crashes in bootstrap, I'm not sure what I could do to stop it. I tried changing the default cache to Memcache (with prefixes), but to no avail. I also changed the session store to database just to check, no change. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem with CakePlugin on shared server
I have cake 1.3 2.0 setup on both win7 and ubuntu 11.10 various projects bake as projects sharing the cake lib is good also for dev setup if you remake foo and/or bar I think the issue maybe resolved even if you don't find the cause to the spookiness did you clear the cache? ie tmp/cache/persistent/cake_core_file_map ceeram clear cache plugin - S On 26 January 2012 16:25, Eric eric.karls...@gmail.com wrote: I'm not using advanced setup (i.e. shared Cake lib, right?) since this is a dev server (and production runs only one site per server). Most classes are baked using cake bake all. And yes, FOO is a copy of BAR (surprise, surprise). I thought about that before, but there is no mentioning of BAR in the FOO source (I did a grep -rn), so I can't find any culprit that way either. Also, the cipherSeed and salt are different (if that matters). Do you think the copying could be the problem anyway? /Eric On Jan 26, 2:34 pm, Sam Sherlock sam.sherl...@gmail.com wrote: Odd. Have you tried setting up advanced setup with cake baked projects? Also is foo a copy of bar? - S On 26 Jan 2012 13:14, Jon Price jonpr...@donet.com wrote: Interesting..I've seen this as well but rareand thought I had misconfigured something. They are 2.0.x installs on a debian style linux. On Thu, Jan 26, 2012 at 4:38 AM, Eric eric.karls...@gmail.com wrote: Hi! I have several CakePHP installations on a server, two of them are 2.0 (recent installs). I now notice that the 2.0 installations seem to collide with eachother. Occationally when loading a page I get this error message: Fatal error: Uncaught exception 'MissingPluginException' with message 'Plugin Email could not be found.' in /srv/www/BAR/lib/Cake/Core/ CakePlugin.php:97 Stack trace: #0 /srv/www/BAR/lib/Cake/Core/CakePlugin.php(129): CakePlugin::load('Email', Array) #1 /srv/www/FOO/app/Config/bootstrap.php(68): CakePlugin::loadAll() #2 /srv/www/FOO/lib/Cake/Core/Configure.php(81): include('/srv/www/ FOO...') #3 /srv/www/FOO/lib/Cake/bootstrap.php(138): Configure::bootstrap(true) #4 /srv/www/FOO/app/webroot/index.php(77): include('/srv/www/FOO...') #5 {main} thrown in /srv/www/BAR/lib/Cake/Core/CakePlugin.php on line 97 The sites are installed in /srv/www/FOO and /srv/www/BAR respectively (FOO and BAR are made up). The error above is from the FOO site. As you can see it seems to be using the plugin loader from BAR. It in turn tries to load the Email plugin (which exists in BAR, but not in FOO) and fails horribly. Why is this happening? Bug? Config problem? Is the class finder in loadAll() going mad (i.e. outside the root)? Both installs are fairly vanilla, both using it's own MySQL database. Since it crashes in bootstrap, I'm not sure what I could do to stop it. I tried changing the default cache to Memcache (with prefixes), but to no avail. I also changed the session store to database just to check, no change. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem with CakePlugin on shared server
This is a bug on Core/App.php, caused by a missing `Plugin` key on the paths array on `file_map` cache. To fix it, just find this line on App.php (line 547): self::_map($file, $className); and replace for this one: self::_map($file, $className, $plugin); Then clear you persistent cache, and try again. --- Regards Chris On Jan 26, 6:38 pm, Sam Sherlock sam.sherl...@gmail.com wrote: I have cake 1.3 2.0 setup on both win7 and ubuntu 11.10 various projects bake as projects sharing the cake lib is good also for dev setup if you remake foo and/or bar I think the issue maybe resolved even if you don't find the cause to the spookiness did you clear the cache? ie tmp/cache/persistent/cake_core_file_map ceeram clear cache plugin - S On 26 January 2012 16:25, Eric eric.karls...@gmail.com wrote: I'm not using advanced setup (i.e. shared Cake lib, right?) since this is a dev server (and production runs only one site per server). Most classes are baked using cake bake all. And yes, FOO is a copy of BAR (surprise, surprise). I thought about that before, but there is no mentioning of BAR in the FOO source (I did a grep -rn), so I can't find any culprit that way either. Also, the cipherSeed and salt are different (if that matters). Do you think the copying could be the problem anyway? /Eric On Jan 26, 2:34 pm, Sam Sherlock sam.sherl...@gmail.com wrote: Odd. Have you tried setting up advanced setup with cake baked projects? Also is foo a copy of bar? - S On 26 Jan 2012 13:14, Jon Price jonpr...@donet.com wrote: Interesting..I've seen this as well but rareand thought I had misconfigured something. They are 2.0.x installs on a debian style linux. On Thu, Jan 26, 2012 at 4:38 AM, Eric eric.karls...@gmail.com wrote: Hi! I have several CakePHP installations on a server, two of them are 2.0 (recent installs). I now notice that the 2.0 installations seem to collide with eachother. Occationally when loading a page I get this error message: Fatal error: Uncaught exception 'MissingPluginException' with message 'Plugin Email could not be found.' in /srv/www/BAR/lib/Cake/Core/ CakePlugin.php:97 Stack trace: #0 /srv/www/BAR/lib/Cake/Core/CakePlugin.php(129): CakePlugin::load('Email', Array) #1 /srv/www/FOO/app/Config/bootstrap.php(68): CakePlugin::loadAll() #2 /srv/www/FOO/lib/Cake/Core/Configure.php(81): include('/srv/www/ FOO...') #3 /srv/www/FOO/lib/Cake/bootstrap.php(138): Configure::bootstrap(true) #4 /srv/www/FOO/app/webroot/index.php(77): include('/srv/www/FOO...') #5 {main} thrown in /srv/www/BAR/lib/Cake/Core/CakePlugin.php on line 97 The sites are installed in /srv/www/FOO and /srv/www/BAR respectively (FOO and BAR are made up). The error above is from the FOO site. As you can see it seems to be using the plugin loader from BAR. It in turn tries to load the Email plugin (which exists in BAR, but not in FOO) and fails horribly. Why is this happening? Bug? Config problem? Is the class finder in loadAll() going mad (i.e. outside the root)? Both installs are fairly vanilla, both using it's own MySQL database. Since it crashes in bootstrap, I'm not sure what I could do to stop it. I tried changing the default cache to Memcache (with prefixes), but to no avail. I also changed the session store to database just to check, no change. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at
CakeRoute
I have been trying to do some research on solving my problem. It seems simple, but I don't see a lot of documentation in cake on creating custom routes. My issue: I want to take a URL like so http://localhost/controller1/item1 and route it to http://item1.localhost/* this item1 can be different names of items in my database. So I could have item2.localhost/ or item3.localhost/ and it would route it so on and so forth. So my items in the subdomain will be connected my specific controller. I have found this: http://book.cakephp.org/2.0/en/development/routing.html#custom-route-classes and also this: http://book.cakephp.org/2.0/en/appendices/new-features-in-cakephp-2-0.html?highlight=subdomain#router talking about subdomain routes, but it does not say where the custom cakeroutes should be located in the filesystem. I am using cake 2.x Any help would be great, this is my first time working with this kind of a issue. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Record-level permissions with ACL in CakePHP 2.0
This tutorial from IBM may help you. It is listed as current for Cake 1.3.4 and they are working to update it for 2.0. Even given the differences, it might give you some code examples that you can manipulate to get what you want. {c} On Wed, Jan 25, 2012 at 5:18 PM, Brian brian.d.sm...@gmail.com wrote: I'm working on the authorization system for my web app. I began researching various ACL guides back during 1.3, but never found one that really clicked in my head. I've read the Cookbook tutorials, the Permissionable behavior, SuperAuth on github, etc trying to find a record-level auth solution that I understand well. In the end I left the app to behave like the tutorial (e.g. Aragorn can have Read access to all Weapons, but there's no way to grant him access just to a single Weapon like a Sword). This was a compromise, though, and what I really need is a way to grant permissions on specific instances of a Model. Now that CakePHP 2.0 has been released and I've upgraded my app, I'd like to try tackling this problem again. Are there any resources that address this kind of ACL for 2.0? Is this already possible and I just haven't realized it yet? Thanks for your help. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Record-level permissions with ACL in CakePHP 2.0
Perhaps the actual *link* would help! Sorry about that: http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake1/index.html {c} On Thu, Jan 26, 2012 at 4:47 PM, Chooch Schubert chooc...@gmail.com wrote: This tutorial from IBM may help you. It is listed as current for Cake 1.3.4 and they are working to update it for 2.0. Even given the differences, it might give you some code examples that you can manipulate to get what you want. {c} On Wed, Jan 25, 2012 at 5:18 PM, Brian brian.d.sm...@gmail.com wrote: I'm working on the authorization system for my web app. I began researching various ACL guides back during 1.3, but never found one that really clicked in my head. I've read the Cookbook tutorials, the Permissionable behavior, SuperAuth on github, etc trying to find a record-level auth solution that I understand well. In the end I left the app to behave like the tutorial (e.g. Aragorn can have Read access to all Weapons, but there's no way to grant him access just to a single Weapon like a Sword). This was a compromise, though, and what I really need is a way to grant permissions on specific instances of a Model. Now that CakePHP 2.0 has been released and I've upgraded my app, I'd like to try tackling this problem again. Are there any resources that address this kind of ACL for 2.0? Is this already possible and I just haven't realized it yet? Thanks for your help. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakeRoute
I have found this article, appears to be helpful. Might be some issues though when migrating to cake 2.x On Jan 26, 1:15 pm, sixthpoint sixthpo...@gmail.com wrote: I have been trying to do some research on solving my problem. It seems simple, but I don't see a lot of documentation in cake on creating custom routes. My issue: I want to take a URL like sohttp://localhost/controller1/item1 and route it tohttp://item1.localhost/* this item1 can be different names of items in my database. So I could have item2.localhost/ or item3.localhost/ and it would route it so on and so forth. So my items in the subdomain will be connected my specific controller. I have found this:http://book.cakephp.org/2.0/en/development/routing.html#custom-route-... and also this:http://book.cakephp.org/2.0/en/appendices/new-features-in-cakephp-2-0... talking about subdomain routes, but it does not say where the custom cakeroutes should be located in the filesystem. I am using cake 2.x Any help would be great, this is my first time working with this kind of a issue. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakeRoute
http://mark-story.com/posts/view/using-custom-route-classes-in-cakephp On Jan 26, 3:56 pm, sixthpoint sixthpo...@gmail.com wrote: I have found this article, appears to be helpful. Might be some issues though when migrating to cake 2.x On Jan 26, 1:15 pm, sixthpoint sixthpo...@gmail.com wrote: I have been trying to do some research on solving my problem. It seems simple, but I don't see a lot of documentation in cake on creating custom routes. My issue: I want to take a URL like sohttp://localhost/controller1/item1 and route it tohttp://item1.localhost/* this item1 can be different names of items in my database. So I could have item2.localhost/ or item3.localhost/ and it would route it so on and so forth. So my items in the subdomain will be connected my specific controller. I have found this:http://book.cakephp.org/2.0/en/development/routing.html#custom-route-... and also this:http://book.cakephp.org/2.0/en/appendices/new-features-in-cakephp-2-0... talking about subdomain routes, but it does not say where the custom cakeroutes should be located in the filesystem. I am using cake 2.x Any help would be great, this is my first time working with this kind of a issue. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
v2.x documentation error / typo
In the 2.0 manual. Caused some headache. http://book.cakephp.org/2.0/en/models/data-validation.html - Validation::datetime says to specify datetime format as array('datetime', 'dmy'), when really it's supposed to be array('datetime' = 'dmy') -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: v2.x documentation error / typo
On Jan 26, 2:38 pm, stig s...@haiinteraktiv.no wrote: In the 2.0 manual. Caused some headache.http://book.cakephp.org/2.0/en/models/data-validation.html - Validation::datetime says to specify datetime format as array('datetime', 'dmy'), when really it's supposed to be array('datetime' = 'dmy') Please correct the root of the problem: https://github.com/cakephp/docs Thanks, AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Record-level permissions with ACL in CakePHP 2.0
The actual tutorial on ACL begins at: http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake2/section5.html I wouldn't use too much code as it is dated however conceptually the ACL section of this tutorial is spot on. Refer to the api. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakeRoute
Jose Diaz-Gonzalez has some code on github that may help here you'll have to adjust/play a domain redirect comp - set up a model domain_prefixes https://gist.github.com/1498851 Static Page Route plugin (has 1.3/2.x branches) - you'll have to create something very bespoke but this will help you compare diffs for cake 1.3 to 2.x https://github.com/josegonzalez/page_route that article still a good source of info too my custom routes did not require many changes for 2.x and the upgrade shell will help too (others may have very different ideas about how to approach this) - S On 26 January 2012 21:56, sixthpoint sixthpo...@gmail.com wrote: http://mark-story.com/posts/view/using-custom-route-classes-in-cakephp On Jan 26, 3:56 pm, sixthpoint sixthpo...@gmail.com wrote: I have found this article, appears to be helpful. Might be some issues though when migrating to cake 2.x On Jan 26, 1:15 pm, sixthpoint sixthpo...@gmail.com wrote: I have been trying to do some research on solving my problem. It seems simple, but I don't see a lot of documentation in cake on creating custom routes. My issue: I want to take a URL like sohttp://localhost/controller1/item1 and route it tohttp://item1.localhost/* this item1 can be different names of items in my database. So I could have item2.localhost/ or item3.localhost/ and it would route it so on and so forth. So my items in the subdomain will be connected my specific controller. I have found this: http://book.cakephp.org/2.0/en/development/routing.html#custom-route-... and also this: http://book.cakephp.org/2.0/en/appendices/new-features-in-cakephp-2-0... talking about subdomain routes, but it does not say where the custom cakeroutes should be located in the filesystem. I am using cake 2.x Any help would be great, this is my first time working with this kind of a issue. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routing, one little doubt
Anyone know how to do it? Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php