Re: Bakery SPAM?

2011-10-28 Thread Ryan Schmidt
On Oct 29, 2011, at 00:11, Thiago Belem wrote: > There's something wrong with this post: > http://bakery.cakephp.org/articles/peterms/2011/08/11/validation_is_match_cakephp > > Or it's just me? I agree, it contains spam links. I logged in and clicked the "Report problem" link on the right of

Re: Daylight Saving Time (DST) in cakephp

2011-10-28 Thread Ryan Schmidt
On Oct 26, 2011, at 01:25, Shanaka wrote: > I'm creating a web application using cakephp 1.2.6. Why would you use 1.2.x to create a new web app, and not 2.0? Even using 1.3.x would be better but I don't see why you wouldn't start with the latest and greatest. Converting your app later to use

Bakery SPAM?

2011-10-28 Thread Thiago Belem
There's something wrong with this post: http://bakery.cakephp.org/articles/peterms/2011/08/11/validation_is_match_cakephp Or it's just me? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.we

Re: Installer CMS like on CakePHP??

2011-10-28 Thread thom
On Sat, Oct 29, 2011 at 12:13 AM, Miles J wrote: > I wrote many installers for Cake and I would highly suggest doing a > shell script. > > https://github.com/milesj/cake-forum/blob/master/vendors/shells/install.php > On Oct 28, 7:31 am, Andras Kende wrote: > > http://cakebaker.42dh.com/2007/04/

find with fields and conditions

2011-10-28 Thread Ricardo
Hello All, I'm getting a weird error here, see I have the following find statement $cond1 = $this->Company->find('all', 'conditions' => array('Company.Departement_dactivite_limitrophes' => $department),

Re: plugins for uploading images/ files in cakephp v2.0

2011-10-28 Thread Điển vũ
https://github.com/jrbasso/MeioUpload All plugin for 2.0 seems not stable .. You try to fix it. -- 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 questi

Re: plugins for uploading images/ files in cakephp v2.0

2011-10-28 Thread Điển vũ
https://github.com/jrbasso/MeioUpload -- 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-p

plugins for uploading images/ files in cakephp v2.0

2011-10-28 Thread Anand Ramamurthy
Hello, I was curious if there are any recommendations for CakePHP v2.0 plugins for uploading, resizing images to the server. I looked at some of the implementations like Uploader and Media Plugins but encountered problems with them. It could be that they were written for v1.3 It would be great

Re: Cache FileEngine

2011-10-28 Thread 0x20h
Hi Sebastien, please read http://book.cakephp.org/2.0/en/contributing/code.html to find out how you can contribute patches. Am 28.10.2011 15:30, schrieb Sandreu: > Hello, > > I made an increment for file engine system. > My problem was that in APC cache, the cache is not shared between CLI > and

FYI: manually logging in a user and acl in cakephp 2.0

2011-10-28 Thread fly2279
If anyone else has problems with getting an Aro node lookup error after manually logging in a user you might check the array that you use to login with. As in the example in the cookbook, the user gets logged in with the array of submitted data from the login form in the format: $this->request->d

Re: Having a hard time with getting overwrite to work

2011-10-28 Thread Yves S. Garret
a linux machine (Ubuntu 11.04). I >>>>> got the database connection to work fine, tmp is readable/writable, etc. >>>>> >>>>> But there is still no CSS in the default cake page. I looked at what >>>>> the book said and I'm pretty sure t

Re: Having a hard time with getting overwrite to work

2011-10-28 Thread Justin Edwards
hat I set the correct settings, but no >>>> go. Here is my httpd.conf: >>>> <http://bin.cakephp.org/view/914367831> >>>> http://bin.cakephp.org/view/914367831 >>>> >>>> >>>> -- >>>> Our newest site for the com

Re: Having a hard time with getting overwrite to work

2011-10-28 Thread Yves S. Garret
cakephp.org>http://tv.cakephp.org >>> Check out the new CakePHP Questions site <http://ask.cakephp.org> >>> http://ask.cakephp.org and help others with their CakePHP related >>> questions. >>> >>> >>> To unsubscribe from this group, send

Re: Installer CMS like on CakePHP??

2011-10-28 Thread Miles J
I wrote many installers for Cake and I would highly suggest doing a shell script. https://github.com/milesj/cake-forum/blob/master/vendors/shells/install.php On Oct 28, 7:31 am, Andras Kende wrote: > http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-ca... > > Andras Kende > > On

Re: Overriding form helper error messages in CakePHP 2.0

2011-10-28 Thread Jeremy Burns | Class Outfit
Just did some testing. It worked for a rule 'notempty' but is ignored for the rule 'unique' (or isUnique). Jeremy Burns Class Outfit http://www.classoutfit.com On 28 Oct 2011, at 16:43, Richard@Home wrote: > Shamless bump! > > On Oct 24, 3:44 pm, "Richard@Home" wrote: >> Hi all. >> >> I hav

Re: Having a hard time with getting overwrite to work

2011-10-28 Thread Yves S. Garret
Was that on line 350? If so, I just tried that and it didn't work. Yes, I restarted apache after making the change. On Fri, Oct 28, 2011 at 12:39 PM, Thiago Belem wrote: > Maybe your > > AllowOverride None > > ? > -- > ***Thiago Belem* > Desenvolvedor > Rio de Janeiro - RJ - Brasil > > +55 (21)

Re: Having a hard time with getting overwrite to work

2011-10-28 Thread Thiago Belem
Maybe your AllowOverride None ? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com

Re: Having a hard time with getting overwrite to work

2011-10-28 Thread Yves S. Garret
If you look at line #120 in my post of httpd.conf, it's displayed there. And here is the contents of my /opt/lampp/modules directory: http://bin.cakephp.org/view/1838304409 <- on line 64 On Fri, Oct 28, 2011 at 10:42 AM, Yves S. Garret wrote: > Ok, so I'm trying to setup cake on a linux machi

Re: FormHelper field names for related model

2011-10-28 Thread handsofaten
This was a bug that is resolved in the latest version on github. See the ticket for more information. On Oct 28, 10:22 am, handsofaten wrote: > I went ahead and submitted a ticket for this, I guess I'll stop using > FormHelper for these fields until I get some resolution on this issue. > > http:/

Re: Having a hard time with getting overwrite to work

2011-10-28 Thread Stephen Latham
Have you installed and enabled mod_rewrite ? On 28 Oct 2011, at 15:42, "Yves S. Garret" wrote: > Ok, so I'm trying to setup cake on a linux machine (Ubuntu 11.04). I got the > database connection to work fine, tmp is readable/writable, etc. > > But there is still no CSS in the default cake p

Re: Overriding form helper error messages in CakePHP 2.0

2011-10-28 Thread Richard@Home
Shamless bump! On Oct 24, 3:44 pm, "Richard@Home" wrote: > Hi all. > > I have the following $validate in my User model: > >         var $validate = array( >                 'email'=>array( >                         'required'=>array( >                                 'rule'=>'notEmpty', >        

Re: Meio Image Upload in CakePhp 2.0 fail plz help

2011-10-28 Thread driss
thanks it works now just fine thank you -- 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

Re: FormHelper field names for related model

2011-10-28 Thread handsofaten
I went ahead and submitted a ticket for this, I guess I'll stop using FormHelper for these fields until I get some resolution on this issue. http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2180-formhelper-not-creating-sequential-associated-model-fields On Oct 21, 11:27 am, handsof

Html::scriptStart can't use when requestAction in 2.0

2011-10-28 Thread Điển vũ
Html::scriptStart can't use when requestAction in 2.0 -- 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

Cache FileEngine

2011-10-28 Thread Sandreu
Hello, I made an increment for file engine system. My problem was that in APC cache, the cache is not shared between CLI and the web app... then I did that with fileEngine using flock... it's not workink on windows. settings['isWindows']) throw new CacheException(__d('cake_dev', 'Files cannot

Having a hard time with getting overwrite to work

2011-10-28 Thread Yves S. Garret
Ok, so I'm trying to setup cake on a linux machine (Ubuntu 11.04). I got the database connection to work fine, tmp is readable/writable, etc. But there is still no CSS in the default cake page. I looked at what the book said and I'm pretty sure that I set the correct settings, but no go. Here is

Re: [Ask] Installer CMS like on CakePHP??

2011-10-28 Thread Andras Kende
http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/ Andras Kende On Oct 28, 2011, at 8:59 AM, thom wrote: > On Fri, Oct 28, 2011 at 5:39 PM, Simon Males wrote: > Croogo has an installer, and its an open source CMS. > > http://croogo.org/ > > Haven't only lo

2.0 Cookbook's Simple Acl controlled app not working

2011-10-28 Thread fly2279
I'm having trouble with the cookbook's acl app. I followed the tutorial EXACTLY and after assigning permissions, I can't access any of the acl protected (not explicitly allowed in beforeFilter) actions when logged in with a user that belongs to group 1 in the initDB method. Is there a piece missin

Re: [Ask] Installer CMS like on CakePHP??

2011-10-28 Thread thom
On Fri, Oct 28, 2011 at 5:39 PM, Simon Males wrote: > Croogo has an installer, and its an open source CMS. > > http://croogo.org/ > > Haven't only looked at it briefly the installer seems to be a plugin. > > Hmm.. looks like complex enough in croogo. Are there any 'easy' (simple) way to do it? I

Re: Multiply foreign keys in one table.

2011-10-28 Thread WebbedIT
I don't know if this can be done with HABTM (doubt it as HABTM is an automagic feature meant to join two tables only) but I for one would modelise the join and have something like: Staff hasMany PositionSchoolStaff School hasMany PositionSchoolStaff Position hasMany PositionSchoolStaff PositionSch

Re: IE8 activate another windows

2011-10-28 Thread WebbedIT
should only happen if target="_blank" have you got a link to the page so we can test it? On Oct 28, 3:46 am, iphone5 wrote: > I am developing web app with cakephp. Recently I noticed that whenever > I click on the link on a page it activate another window for some > reason. > It looks ok but when

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin FF
Thanks for the time and ideas. I continue working on both methods. On Fri, Oct 28, 2011 at 1:47 PM, AD7six wrote: > > > On Oct 28, 12:37 pm, "Constantin.FF" wrote: > > Probably this could work but will be almost impossible to calculate > > the step for moveDown > > _WHY_ would you need to calcu

Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 12:37 pm, "Constantin.FF" wrote: > Probably this could work but will be almost impossible to calculate > the step for moveDown _WHY_ would you need to calculate that? The suspicion arises that you aren't reading much of what I write. > of each post also in this action are involved

Re: [Ask] Installer CMS like on CakePHP??

2011-10-28 Thread Simon Males
Croogo has an installer, and its an open source CMS. http://croogo.org/ Haven't only looked at it briefly the installer seems to be a plugin. On Fri, Oct 28, 2011 at 8:49 PM, thom wrote: > I am curious about making my app to have a 'cms like' installer. I am using > cakephp 1.3.8 for now. Could

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin.FF
Probably this could work but will be almost impossible to calculate the step for moveDown of each post also in this action are involved parents and children so in the $newSort each post is as post_id => order number. So if I do it like you suggested, first I will have to separate posts with same pa

Re: running tests from the command line

2011-10-28 Thread euromark
ah ok and plugins are cake testsuite Tools AllCakeTests i found it here: https://github.com/cakephp/docs/blob/master/en/development/testing.rst On 28 Okt., 12:04, Matteo Landi wrote: > Hi, > > I don't know about plugins but on my machine I am able to run app > tests with `cake testsuite app Al

Re: Returning new value from private function

2011-10-28 Thread euromark
you probably mean "protected" in a framework environment there is no reason to use private classes or private variables. tip: look at 2.0 it does not have any private stuff (anymore). protected _myMethod() lg mark On 28 Okt., 07:23, Jeremy Burns | Class Outfit wrote: > Calling a private funct

Re: running tests from the command line

2011-10-28 Thread Matteo Landi
Hi, I don't know about plugins but on my machine I am able to run app tests with `cake testsuite app AllController' (supposed you have a test inside 'app/Test/Case/AllControllerTest'), or `cake testsuite app Case/PostsController' (supposed you have 'app/Test/Case/Controller/PostsControllerTest').

running tests from the command line

2011-10-28 Thread euromark
how can one run tests from the command line? the core tests are listed with cake testsuite core so far so good but the app tests do not show especially tests in a plugin I cannot get to list or call cake testsuite app Tools.AllCakeTests does not work -- Our newest site for the community

[Ask] Installer CMS like on CakePHP??

2011-10-28 Thread thom
I am curious about making my app to have a 'cms like' installer. I am using cakephp 1.3.8 for now. Could anybody tell me any references for me to be learned? Thank you. -- Regards,,, thom http://mynameisthom.blogspot.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.

Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 11:16 am, Constantin FF wrote: > Is there a better way for doing that? There is something similar in other I haven't written anything that implied/suggested/required changing your existing interface, only your php code. function _sortPosts($newSort){

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin FF
Is there a better way for doing that? There is something similar in other CSM like joomla On Fri, Oct 28, 2011 at 12:11 PM, AD7six wrote: > > > On Oct 28, 10:58 am, Constantin FF wrote: > > Not a deja vu, just decided that will be much more comfortable to use a > > field with an order number an

Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 10:58 am, Constantin FF wrote: > Not a deja vu, just decided that will be much more comfortable to use a > field with an order number and just once to click "Save order" than > continuously clicking the moveDown or moveUp links until the desired > position. Who suggested doing that?

Re: Going back to school: ACL

2011-10-28 Thread alaxos
Hi Jeremy, As far as I know, the core ACL does not support multiple groups per user. Before using ACL, I used myself a home made component that allowed to grant/deny access based on roles membership and action prefixes like you do. It used to work :-) and it also supported many-to-many users- gro

Re: Slow reorder TreeBehaviour

2011-10-28 Thread Constantin FF
Not a deja vu, just decided that will be much more comfortable to use a field with an order number and just once to click "Save order" than continuously clicking the moveDown or moveUp links until the desired position. Will check the queries On Fri, Oct 28, 2011 at 11:46 AM, AD7six wrote: > > >

Re: 2.0 "Testing Controllers" documentation suggestion/correction

2011-10-28 Thread AD7six
On Oct 28, 6:50 am, Thiago Campezzi wrote: > Hi everyone, > > I was taking a look at the documentation for the test suite in CakePHP > 2.0 - more specifically the part about testing controller code: > > http://book.cakephp.org/2.0/en/development/testing.html#testing-contr... > > The code example

Re: Slow reorder TreeBehaviour

2011-10-28 Thread AD7six
On Oct 28, 10:09 am, "Constantin.FF" wrote: > I need my tree sorted by each post sort value. Here is the function > dealing with this. But it is executed extremely slow if some of the > parents has more than 20-30 children > >         function _sortPosts($newSort){ >                         fore

Slow reorder TreeBehaviour

2011-10-28 Thread Constantin.FF
I need my tree sorted by each post sort value. Here is the function dealing with this. But it is executed extremely slow if some of the parents has more than 20-30 children function _sortPosts($newSort){ foreach ($newSort AS $id => $value) {

Re: How to extract the pots files?

2011-10-28 Thread AD7six
On Oct 27, 7:51 pm, santos wrote: > Resolved! :) > Thanks! > > My solution: > I create /vendors/shells/myextract.php : > > class MyextractShell extends Shell { >         var $tasks = array('Extract', 'Myextract'); > >         function main() { >                 $this->Myextract->execute(); >    

2.0 "Testing Controllers" documentation suggestion/correction

2011-10-28 Thread Thiago Campezzi
Hi everyone, I was taking a look at the documentation for the test suite in CakePHP 2.0 - more specifically the part about testing controller code: http://book.cakephp.org/2.0/en/development/testing.html#testing-controllers The code example provided in this heading doesn't include the "public $f