> If the code you pasted is the exact code you are using you are missing > the '>'. > > Code should be: > > if ($this->User->save($this->params['form')) Oh and you are also missing the ']' for accessing the params array, so try this:
if ($this->User->save($this->params['form'])) -- Felix -------------------------- My Blog: http://www.thinkingphp.org My Business: http://www.fg-webdesign.de Larry E. Masters aka PhpNut wrote: > If the code you pasted is the exact code you are using you are missing > the '>'. > > Code should be: > > if ($this->User->save($this->params['form')) > > -- > /** > * @author Larry E. Masters > * @var string $userName > * @param string $realName > * @returns string aka PhpNut > * @access public > */ > > On 9/15/07, * CakeONaut* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi! > > I was using : > > if ($this-User->save($this->params['form')) > > and getting back > > Parse error: syntax error, unexpected T_OBJECT_OPERATOR in > > /home/hgi/public_html/tst/wwwroot/cake/app/controllers/users_controller.php > on line 10 > > My host is using a pre-5.0 version of PHP. Is that my problem? > I'm thinking it is, and that I'll have to write some code to > connect to the database and add records, etc.. If I must do this, > I'm wondering if I should write a helper to do it and then I'll > have to call it whenever I do changes to the database? > > Thanks for any input! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
