Re: Routing, one little doubt

2012-01-26 Thread Ivan
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+un

Re: CakeRoute

2012-01-26 Thread Sam Sherlock
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 co

Re: Record-level permissions with ACL in CakePHP 2.0

2012-01-26 Thread Hank
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

Re: v2.x documentation error / typo

2012-01-26 Thread AD7six
On Jan 26, 2:38 pm, stig 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 c

v2.x documentation error / typo

2012-01-26 Thread stig
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

Re: CakeRoute

2012-01-26 Thread sixthpoint
http://mark-story.com/posts/view/using-custom-route-classes-in-cakephp On Jan 26, 3:56 pm, sixthpoint 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 wrote: > > > > > > > > > I have been trying

Re: CakeRoute

2012-01-26 Thread sixthpoint
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 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 rou

Re: Record-level permissions with ACL in CakePHP 2.0

2012-01-26 Thread Chooch Schubert
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 wrote: > This tutorial from IBM may help you. It is listed as current for Cake > 1.3.4 and they are work

Re: Record-level permissions with ACL in CakePHP 2.0

2012-01-26 Thread Chooch Schubert
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 wrote: > I'm working

Re: creating your custom translate function

2012-01-26 Thread daf182
Hi Tilen, Sorry dude for saying this but I would really deny people who wants to name a function like '__' (pronounce underscoreunderscore) instead of having a normal name to program computers at all. You use PHP, which supports object oriented programming. Use super classes and subclasses, declar

CakeRoute

2012-01-26 Thread sixthpoint
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

Re: Problem with CakePlugin on shared server

2012-01-26 Thread y2k_2000
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 ag

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Sam Sherlock
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/pers

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Eric
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

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Eric
Ubuntu 11.10 here. On Jan 26, 2:14 pm, Jon Price 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 wrote: > > Hi! > > > I have several CakePH

Re: using transactions in cake

2012-01-26 Thread jeremyharris
If you are able to wrap all the saves into on saveAll, that would work. Otherwise, another thing I've done is validation everything first, then save if everything passes. This obviously won't catch for not actually being able to save in the database, but if your validation is spot on it shouldn

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Jon Price
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

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Sam Sherlock
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" 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

Re: Problem with CakePlugin on shared server

2012-01-26 Thread Jon Price
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 wrote: > Hi! > > I have several CakePHP installations on a server, two of them are 2.0 > (recent installs). I now noti

Re: Cakephp fails on xampp - cakecontroller could not be found

2012-01-26 Thread jkrug_98
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" sys

Problem with CakePlugin on shared server

2012-01-26 Thread Eric
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 'Pl

Re: Cakephp fails on xampp - cakecontroller could not be found

2012-01-26 Thread AD7six
On Jan 26, 1:21 am, Sam Sherlock 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:

Re: using transactions in cake

2012-01-26 Thread Tomfox Wiranata
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 sa

Re: Newbie question: Disable Cache

2012-01-26 Thread rocha9000
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 quest