Re: Guide on creating first application

2009-12-13 Thread Pedro Nascimento
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á del...@gmail.com 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 bvieira.li...@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á del...@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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Guide on creating first application

2009-12-13 Thread Pedro Nascimento
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 pnascime...@gmail.comwrote:

 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á del...@gmail.com 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 bvieira.li...@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á del...@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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.com For more 

Re: Guide on creating first application

2009-12-11 Thread Délsio Cabá
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.li...@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á del...@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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Guide on creating first application

2009-12-10 Thread Bernardo Vieira
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á del...@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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en