Guide on creating first application
Hi all,
I am about to create my first application with cakephp.
Actuallly I'm an experienced php programmer.
I already went to the guide on creating the blog application.
Find attached my database structure.
As you can see I have many relationships.
I tried through the console creating the forms, but for some reason I can't get them to work, I get this error when I try to add a new record:
Notice (8): Undefined property: Utilizadore::$Utilizadorescategoria [APP/controllers/utilizadores_controller.php, line 51]Code | Context$this->data = $this->Utilizadore->read(null, $id);
}
$utilizadorescategorias = $this->Utilizadore->Utilizadorescategoria->find('list');
$id = "1"UtilizadoresController::edit() - APP/controllers/utilizadores_controller.php, line 51
Object::dispatchMethod() - CORE/cake/libs/object.php, line 125
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 240
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 206
[main] - APP/webroot/index.php, line 83
Fatal error: Call to a member function find() on a non-object in /home/webmasters/domains/sioas/public_html/app/controllers/utilizadores_controller.php on line 51
All I need to now is to have forms to fill all those tables.
Regards
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home