Re: form data

2014-05-24 Thread Andrew Barry
what happens is that the form in myform2 displays but the id fields are blank dropdown. These fields are not autoincrement. I submit and I can get the subject field displayed in myform3 but not id or date fields. controller public function myform3() { if($this->request->is('post')) {

RE: form data

2014-05-24 Thread Advantage+
. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Andrew Barry Sent: Saturday, May 24, 2014 6:31 AM To: cake-php@googlegroups.com Subject: Re: form data Ok I was hoping I wouldnt get such a response. I have been looking at this book and you have to

Re: form data

2014-05-24 Thread Andrew Barry
Ok I was hoping I wouldnt get such a response. I have been looking at this book and you have to admit , it just isnt always going to help you do a complete example. data goes back to the controller in a $this->request->data['MyModel']['title']; and this means I can do what and where ? is ther

RE: form data

2014-05-24 Thread Advantage+
I also want to build the next best social media website can you tell me how. I just want you to do it for me and not do any of the work myself J From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Andrew Barry Sent: Saturday, May 24, 2014 6:02 AM To: cake-php

RE: form data

2014-05-24 Thread Advantage+
Perhaps read the Cookbook on data handling and how to access and use it. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Andrew Barry Sent: Saturday, May 24, 2014 6:02 AM To: cake-php@googlegroups.com Subject: form data Hi, I created a form and a submit

Re: Form data will not save in DB!

2009-05-07 Thread arif hossen
Please follow this code: if your model name Tax (Model name must be table names singular number) $this->data['Tax']['feildname']; $this->Tax->save($this->data); On Thu, May 7, 2009 at 7:56 AM, Dr. Loboto wrote: > > Key in data array should be same as model alias. If your model named > Tax i

Re: Form data will not save in DB!

2009-05-06 Thread Dr. Loboto
Key in data array should be same as model alias. If your model named Tax it have same alias Tax by default and require $this->data['Tax'] ['feildname']. On May 7, 2:41 am, "paul...@gmail.com" wrote: > I have a table "taxes" and I'm using the form helper and it is putting > the form data into an

Re: Form data from a view element

2008-09-18 Thread Daniel
Just to add more information: It seems that beforeFilter() is called in my comments controller but something goes wrong before afterFilter() is called... I'm trying to spelunk my way through the cakePHP code to see if I can find a reason for this - Dan On Sep 18, 11:39 am, Daniel <[EMAIL P

Re: Form data from a view element

2008-09-18 Thread Daniel
Hi Luenyar, I changed the form create line to: create('Comment', array('action' => 'add', 'url' => array('controller' => 'comments', 'action' => 'add'))); ?> And when I submit the element form it _does_ send me to the right url, that is /comments/add which is the right controller, but i

Re: Form data from a view element

2008-09-17 Thread Luenyar
$form->create('Comment') associates the form with the 'Comment' model, but not a controller. Presumably because the 'Comments' model could be used in many or all of your controllers with $uses. The 'action' option assumes the current controller, so if you render your element in the Posts control

Re: Form data from a view element

2008-09-16 Thread Daniel
I created the form using the line: $form->create('Comment', array('action' => 'add')); Doesn't this specify that it should use the controller associated with the "Comment" model, i.e. the Comments controller? This is how I've done it with all of my other forms... And yes, I realize the table ba

Re: Form data from a view element

2008-09-16 Thread mark_story
On Sep 16, 9:11 am, Daniel <[EMAIL PROTECTED]> wrote: > Hello, > > I currently have a "comment box" view element that I plan to > embed in various places in my CakePHP application to allow users to > leave comments on various aspects of the site. > > I'm using the form helper inside of t

Re: Form data from a view element

2008-09-16 Thread David C. Zentgraf
It doesn't matter whether your form comes from an element or a view file, it's generating the same HTML in the end, so check that first. If the form/controller doesn't work it's not a problem of the element. I'd guess that one of your problems is that you want to redirect as the final action

Re: Form data not available in controller

2008-04-28 Thread zendrumz
Well, I tried all your suggestions over the weekend, and none of them panned out. count($_POST) tells me the post array is empty, and likewise there is nothing in $this->params['form'] or $this->data. So thanks for the help, but I now suspect the problem lies in my Apache rewrite rules. The site i

Re: Form data not available in controller

2008-04-25 Thread Amit Badkas
- Please debug the $this->params['form'] and $this->data in your controller's action and take a look at it if something is not working properly On Thu, Apr 24, 2008 at 9:49 PM, zendrumz <[EMAIL PROTECTED]> wrote: > > Hey everyone, > > I'm a cakephp newbie putting together my first project. I'm tr

Re: Form data not available in controller

2008-04-25 Thread seb
> Sorry, I just meant the error message I added in my controller (the > flash message in the else clause) i.e. cakephp doesn't think there's > anything in $this->data. In your controller, did you try this : $this->Model->create(); $this->Model->save($this->data); instead of : $this->Model->cre

Re: Form data not available in controller

2008-04-24 Thread zendrumz
On Apr 24, 12:36 pm, seb <[EMAIL PROTECTED]> wrote: > >When I submit the form, the > > > controller branches to display the error message in my view, along > > with the following: > > > 1 query took 2 ms > > Nr Query Error AffectedNum. rows Took (ms) > > 1 DESCRIBE `contacts`

Re: Form data not available in controller

2008-04-24 Thread seb
>When I submit the form, the > controller branches to display the error message in my view, along > with the following: > > 1 query took 2 ms > NrQuery Error AffectedNum. rows Took (ms) > 1 DESCRIBE `contacts` 6 6 2 Well, *which* error message ?

Re: Form Data Validation problem...

2008-01-30 Thread Dardo Sordi Bogado
This: class UserAppModel extends AppModel{ should be: class UserModel extends AppModel{ On Jan 30, 2008 8:04 PM, Pq2son2 <[EMAIL PROTECTED]> wrote: > > Hi, > > First Thanks, I'm a newbaby andI read a lot of manuals and the API but > I don't found the reason because the CakePHP (ve

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-27 Thread Grant Cox
FF2 and WinXP here, and it is working fine - repeated submits (new or same data) always comes through. --~--~-~--~~~---~--~~ 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@

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-27 Thread Claudia
Hi Jon Just quick status report: I have just tried with FF 2 on winXP. If I disable the browser cache it is working fine, if the browser cache is enabled only the first post goes through, all the others not. Unfortunately I don't know why though - my forms have a similar setup and work just fine

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread Jon Hinson
I'm not sure what the trick is. I tried sticking in my , adding the hidden field with a random value, and adding a random number as a parameter to the end of my URL. I'm still getting the same outcome. What's weird, even if $_POST isn't being populated, I can refresh Firefox, and the popup box t

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread [EMAIL PROTECTED]
Okay, I tried using Galeon a few more times. 1) Enter "abc" / "def" 2) Submit 3) Page draws with post 4) Sumbit again. 5) Page draws with no post (clears fields) 6) Enter "abc" / "def" 7) Submit 8) Page draws with post 9) add "d" to the end of "abc" 10) Submit again 11) Page draws with post So m

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread Jon Hinson
Jeff, Thanks for taking your time to help with this. So it's definitely browser based. Could it be a caching issue maybe? Jon On Sep 26, 5:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I typed garbage in the form like 8 times. I just went back and did it > like 8 more times and barri

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread [EMAIL PROTECTED]
I typed garbage in the form like 8 times. I just went back and did it like 8 more times and barring some errors the first time (session expired stuff) it still works like a charm... I used firefox 1.5 on mandrivia 10.2 linux. works without a hitch.. However, I just tried it on Galeon and got

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread Jon Hinson
How many times did you try submitting the form? This is very odd. What browser are you using? I tried to reproduce the problem on my iPhone using Safari, and it took many more submittions, but out of about 20 submittions, $_POST was not populated 3 times. I know that doesn't sound like much, but w

Re: Form data not being posted ( $_POST not being populated ) after first submission - Driving me INSANE

2007-09-26 Thread [EMAIL PROTECTED]
>From what I can tell Jon, $_POST populated as expected. It was only empty when I loaded the page the first time. Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: Form data and Models

2006-07-27 Thread ryanb006
Are you using HtmlHelper's functions to create all your form elements? Check the resulting HTML in your browser and ensure that your form's method is "POST" and that your input field names all are like data[Model][field]. HTH, Ryan --~--~-~--~~~---~--~~ You recei

Re: Form data and Models

2006-07-27 Thread gopher
Well, validating file input fields doesn't work by default, so I was going to this "manually". However I'm still not able to access the data variable in the model: if(empty($this->data)) { $this->render(); } else { if(!$this->Menu->validates($this->data)) { $this->Menu->set('data', $t

Re: Form data and Models

2006-07-25 Thread nate
Most form data that comes from elements created with HtmlHelper or FormHelper are available in the Controller in $this->data. Everything else is in $this->params['form']. As far as validation, if you're calling $Model->save($this->data), then $this->data should be available in the model. Otherw