Hello,
Not long ago I was having issues with sessions, where the session
information wasn't being saved. In my case the problem is that the
controller file (users_controller.php) had extra lines after the PHP
closing tag (?>). Once I removed those lines the problem was gone and
the information wa
I agree with that. And since Cake uses CamelCased for class names, and
lower_cased_underscored for filenames, database names, and foreign
keys, it makes sense to use this for all database fields.
--~--~-~--~~~---~--~~
You received this message because you are sub
>From my experience (limited) case is VERY important no matter what OS
you are on, and you are ok with whatever naming you want (ie: lastName,
last_name, lastname) as long as you make VERY sure you always use the
exact same scheme
--~--~-~--~~~---~--~~
You receive
I don't see it specifically in the Cake Conventions (
http://manual.cakephp.org/chapter/22 ), but I think you should stick to
lowercase underscore separated titles for your field names - it can
prevent issues like this.
--~--~-~--~~~---~--~~
You received this mess
Do you have anything in your Login::validate array? If so, perhaps it
isn't passing the model validation, and hence not saving. You should
have $html->tagErrorMsg() calls inside your view to display any
validation errors. An easy mistake to make is to have the 'id'
attribute in the validation,
A Finally
What it was is that my database fields were named:
firstName
lastName
but in my form I called the inputs firstname and lastname.
Dont see the difference? Its the caps in the name!
Even though I am on a windows server I still had issues with cases.
--~--~-~--~~--
Hello all.
I am using the following:
if ($this->Login->save($this->params['data']))
and having some issues. Basicaly its not saving, so its never going
into the if but instead the else. Is there anyway I can find out why
its not saving? Any suggestions on how to figure this out?
Thanks!!
--~-