Friday, December 11, 2009

Re: Guide on creating first application

Hi Bernardo,

Working with the command it's easy to  figure that out.

I realized that I had to create a View for all the related tables of utilizadores in order to see the form for adding new record on utilizadores.

Where can I get a complete application made with cakephp, really complete, customized with it's own css, login, etc

For now that's all thank you


2009/12/10 Bernardo Vieira <bvieira.lists@gmail.com>
What's your model name for the utilizadores table? My guess is CakePhp's inflector is not dealing very well with the portuguese plural rules Utilizador <-> Utilizadores. You could get the portuguese inflections maintened by the portuguese/brazilian cakephp community http://groups.google.com/group/cake-php-pt


On Thu, Dec 10, 2009 at 10:50 AM, Délsio Cabá <delsio@gmail.com> wrote:
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

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

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


Real Estate