Call to a member function save() on a non-object cakephp

call to a member function save() on a non-object cakephp

Search everywhere only in this topic. Call to a member function find on a non-object" for newbie. As the title said "I'm newbie" so don't kill me XD jajaja, so here is my problem.

PHP Fatal error: Call to a member function save() on a non-object in registration/umisifuy.web.fc2.coml on line [#] | umisifuy.web.fc2.com

I have two tables with a relation between them. The first table "countries" have this Model definition:.

I use bake to generate all this code and the add function at InformationController. The classic "Fatal error: It's because the item Country does not exist on Information.

CakePHP で Call to a member function save() on null - Qiita

Models are always singular, so where you have Countries defined in your Information belongsTo you should have Country instead. CakePHP Video Tutorials http: To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http: Ohhh thanks I miss this part now it works. On Thu, Feb 23, at 5: Sometimes it helps to have another person look at it: The first table "countries" have this Model definition: Free forum by Nabble.

Rating 4,6 stars - 489 reviews
inserted by FC2 system