Custom Validate for search - security question

2007-11-25 Thread cronet
Hi, I'm performing a search the following way function searchform() { // Displays searchform } function search_redirect() { // redirect to get values $this->redirect("/results/".$this->data['Search']['searchvalue1']."/". $this->data['Search']['searchvalue2']."/".$this->d

Any Server Settings Known to Prevent RequestAction() From Working?

2007-11-25 Thread Tom.Maiaroto
Like the subject says... I had an issue when putting my cake app online on a new web host (so only cake app i've put up on this particular server). My requestAction() wasn't working...while it was working perfectly fine on my local machine. I'm assuming it's differences in the server settings, bu

Re: Bindable behavior, new expects version for CakePHP 1.2

2007-11-25 Thread Dr. Tarique Sani
On Nov 26, 2007 6:45 AM, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > Yeah, two: > > 1) I'm a moron > 2) I needed the web space > Suspected as much ;) Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz

Re: AJAX form submission with jQuery

2007-11-25 Thread Sergei
Of course error messages wont appear, because form html needs to be updated somehow. Just do javascript validation in your case. On Nov 25, 10:40 pm, Action <[EMAIL PROTECTED]> wrote: > I'm kind of at a loss why posting the form data using ajax to the > controller method is resulting in it not s

Re: Validating Password: Newbie Question

2007-11-25 Thread Sergei
Just a note 'password' => VALID_NOT_EMPTY, is wrong. You need something like: 'password' => '/^[a-z0-9]{6,30}$/i', that means minimum 6 symbols, maximum 30, only letters and digits. On Nov 26, 2:22 am, oracle411 <[EMAIL PROTECTED]> wrote: > 'password' =>

RE: Bindable behavior, new expects version for CakePHP 1.2

2007-11-25 Thread Mariano Iglesias
Yeah, two: 1) I'm a moron 2) I needed the web space -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIgle

AclBehavior: Create an Aco and an Aro

2007-11-25 Thread mike
Heyo, I'm messing around with the all of the lovely 1.2 (1.2.0.5875 pre- beta) Acl stuff and have stumbled upon a question that all my readings through the blogs and the source can not answer. Is it possible and/ or does it make sense to have the AclBehavior create both an Aco and an Aro for all

Re: Cake API documentation

2007-11-25 Thread tig12
Tank you, I didn't see that. it would be helpul to put a link to http://cakeforge.org/projects/cakedocs/ from api.cake.org. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, se

Re: Arrays in Sessions

2007-11-25 Thread Grant Cox
// get the current basket $basket = $this->Session->read('basket'); if ( empty($basket) ){ $basket = array(); } // modify it how you like $basket[] = $new_product; // save back to session $this->Session->write( 'basket', $basket ); On Nov 26, 8:08 am, ohneworte <[EMAIL PROTECTED]> wrote: >

Arrays in Sessions

2007-11-25 Thread ohneworte
Good Evening! I want to create a "basket" for a simple shop. The chosen product should be stored into a session-variable until the checkout procedure. I am asking if it (and how!) it is possible to store an array in a cake-session? As an Example: the user puts the first object into his basket: $

Re: Checkboxes instead of multiple select

2007-11-25 Thread nate
This feature is only available in the latest SVN version of Cake. On Nov 25, 2:51 pm, mbavio <[EMAIL PROTECTED]> wrote: > Gwoo, the "multiple" => "checkbox" is not working for me... I have > Cake 1.2 pre-beta revision 5875... Do I have to upgrade to make this > technique work? Thanks! > > Martin

Re: Checkboxes instead of multiple select

2007-11-25 Thread mbavio
Gwoo, the "multiple" => "checkbox" is not working for me... I have Cake 1.2 pre-beta revision 5875... Do I have to upgrade to make this technique work? Thanks! Martin On Nov 22, 3:10 pm, Gwoo <[EMAIL PROTECTED]> wrote: > This thread was highjacked by Mr. Gould. Please do not reply to a > messag

Re: Validating Password: Newbie Question

2007-11-25 Thread majna
Some Snipp for user model: function beforeValidate() { if ( isset($this->data[$this->name]['password']) && isset($this- >data[$this->name]['password2']) ) { # invalidate empty password2 if ( empty($thi

Validating Password: Newbie Question

2007-11-25 Thread oracle411
I want users to enter their password twice to validate it, and I do so with the code below. But it seems that I need to have two field in my DB table in order to have this work (password and confirm_password). Since I only will use the confirm_password field once, I rather not store it in my DB.

Re: isMultiRecord?

2007-11-25 Thread releod
Yup, updated to the latest 1.2 and it worked. Thanks. On Nov 24, 1:08 pm, Gwoo <[EMAIL PROTECTED]> wrote: > if you are using the latest 1.2 > > $form->input('Model.0.field'); > > or > > $form->input('0.field'); > > or > > for($i = 0, $i < 5; $i++): > $form->input("{$i}.field"); > endfor; > >

Re: AJAX form submission with jQuery

2007-11-25 Thread Action
I'm kind of at a loss why posting the form data using ajax to the controller method is resulting in it not showing validation error messages. How do I use the model's validation when submitting the form using ajax in jquery? The validation works (it won't submit invalid data), but the error messag

Re: Bindable behavior, new expects version for CakePHP 1.2

2007-11-25 Thread Dr. Tarique Sani
Really cool stuff! will definitely be using it... BTW any particular reasons that Cake Syrup is on Sourceforge and not Cakeforge? Cheers Tarique On Nov 25, 2007 4:28 AM, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > > I'd like to inform the release of Bindable Behavior 1.

Re: baking and scaffolding

2007-11-25 Thread Indian Baker
Hi, Check out the CakePHP articles on the IBM site.. http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html Lesson 2 contains the info on bake and scaffolding Also in case you are using veriosion 1.2 then this screen cast will help you. http://cakephp.org/screencasts/view/6 Also check