It seems that you are trying to access a class variable from a static call. Make sure that you are using an instance of your InformationsController and not the class itself.
On Aug 24, 8:16 pm, Paulos23 <paulitosthe...@gmail.com> wrote: > Hi people, > I am facing a really wierd problem.I am building my app with cake > since previous September and for 1st time i can't find any solution.In > particular,i am trying to save some data and i am taking this message > ----> > > Notice (8): Undefined property: InformationsController::$Information > [APP\controllers\informations_controller.php, line 79] > > /** saves the input data from user**/ > > $this->Information->saveAll($this->data); > > InformationsController::view() - APP\controllers > \informations_controller.php, line 79 > Object::dispatchMethod() - CORE\cake\libs\object.php, line 117 > Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227 > Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194 > require - APP\webroot\index.php, line 88 > [main] - CORE\index.php, line 61 > > Fatal error: Call to a member function saveAll() on a non-object in C: > \Program Files\xampp\htdocs\voyage~voyage-source\app\controllers > \informations_controller.php on line 79 > > My model is named Information,my controller informations_controller > and the table in database is named informations.I use the same way for > another model (Location) and everything work fine! > Any ideas why this happened to my code? > > Ty in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---