Ty very much for your help.Yuo were right about grammatical problem.I had
the same prob with weathers_controller coz weather doesn't have plural.I
thought we keep this name convention even if there is not plural. :)

2009/8/25 Martin Westin <martin.westin...@gmail.com>

>
> I'd say the problem is a grammatical one. (I'm one to talk!)
>
> One Post, Many Posts
> One Location, Many Locations
> One PieceOfInformation, Many PiecesOfInformation
>
> Information is an odd substantive. It does not really have singular or
> plural forms in the normal sense.
>
> At the top of the controller, add:
> var $uses = array('Information');
>
> Or try re-naming the controller InformationController. It is just a
> guess, but Cake possibly likes Information without any plural form.
>
>
>
>
>
> On Aug 24, 8:47 pm, Pixelastic <timcc.pe...@gmail.com> wrote:
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to