Just one tip: From your tables I can see you have a data_registo which implies you're probably Portuguese and want these to be populated when creating a new row on the table. As I said before, I believe CakePHP understands English better: modify all of them to 'created', and they'll be automagically populated.
On Mon, Dec 14, 2009 at 05:17, Pedro Nascimento <[email protected]>wrote: > You can find /many/ applications on GitHub. Just be careful when adapting > your code according to them; it seems a lot of coding are not done the right > way, so you might learn things wrong. > > As a Brazilian, I always try to write my apps in English, and then just > change the views to Portuguese. I haven't got much into Internationalization > as most of my apps are meant to be used by Portuguese-speakers only. But I > /do/ find coding in English better when comparing to developing an > application with Portuguese inflections. It feels CakePHP talks in English > rather in Portuguese. :) > > > On Fri, Dec 11, 2009 at 15:17, Délsio Cabá <[email protected]> wrote: > >> 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 <[email protected]> >> >> 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á <[email protected]> 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 [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected]<cake-php%[email protected]>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 [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<cake-php%[email protected]>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 [email protected] >> To unsubscribe from this group, send email to >> [email protected]<cake-php%[email protected]>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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
