Re: Object not found! error...
Upgraded to v1.2 and everything is ok now. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Object not found! error...
Also good to note that you should be building your form inputs with the cake html and form helpers if you want the forms to work, as in the tutorials. -Mark On Oct 16, 9:22 am, scs <[EMAIL PROTECTED]> wrote: > if your using cake 1.1 like you said above than your view has the > wrong extension. > C:\xampp\htdocs\cake\app\views\users\register.ctp > should be > C:\xampp\htdocs\cake\app\views\users\register.thtml > > On Oct 16, 7:55 am, "Liebermann, Anja Carolin" > > <[EMAIL PROTECTED]> wrote: > > It tells your model in which table it should look for your users. > > > Anja > > > -Ursprüngliche Nachricht- > > Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von > > xelios > > Gesendet: Donnerstag, 16. Oktober 2008 12:29 > > An: CakePHP > > Betreff: Re: Object not found! error... > > > "var $useTable = 'users'; " > > > Wot is the purpose of above line... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Object not found! error...
if your using cake 1.1 like you said above than your view has the wrong extension. C:\xampp\htdocs\cake\app\views\users\register.ctp should be C:\xampp\htdocs\cake\app\views\users\register.thtml On Oct 16, 7:55 am, "Liebermann, Anja Carolin" <[EMAIL PROTECTED]> wrote: > It tells your model in which table it should look for your users. > > Anja > > -Ursprüngliche Nachricht- > Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von xelios > Gesendet: Donnerstag, 16. Oktober 2008 12:29 > An: CakePHP > Betreff: Re: Object not found! error... > > "var $useTable = 'users'; " > > Wot is the purpose of above line... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Object not found! error...
It tells your model in which table it should look for your users. Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von xelios Gesendet: Donnerstag, 16. Oktober 2008 12:29 An: CakePHP Betreff: Re: Object not found! error... "var $useTable = 'users'; " Wot is the purpose of above line... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Object not found! error...
"var $useTable = 'users'; " Wot is the purpose of above line... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Object not found! error...
I am working on v1.1.20 now I have created a new view for displaying the users, its working fi9. But the problem I mentioned in my earlier posts is still there.. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
AW: Object not found! error...
Hi Mohammad, On the first glance everything looks well and your files are at the right place. My user model look like this: class User extends AppModel { var $name = 'User'; var $useTable = 'users'; } My users_controller starts the same as yours. Sorry maybe someone else has an idea what is wrong. Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von xelios Gesendet: Donnerstag, 16. Oktober 2008 10:15 An: CakePHP Betreff: Re: Object not found! error... I didn't find any typo... Following are my files... / */ C:\xampp\htdocs\cake\app\models\user.php / */ / */ C:\xampp\htdocs\cake\app\views\users\register.ctp Please fill out the form below to register an account. Username: Password: Email Address: First Name: Last Name: / */ / */ C:\xampp\htdocs\cake\app\controllers\users_controller.php params['form'])) { if ($this->User->save($this->params['form'])) { $this->flash('Your registration information was accepted.', '/users/ register'); } else { $this->flash('There was a problem with your registration', '/users/ register'); } } } // END - register } // END - class ?> / */ I've a doubt on "users_controller.php", may be it is not in an appropriate place. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Object not found! error...
I am working on v1.1.20 now I have created a new view for displaying the users, its working fi9. But the problem I mentioned in my earlier posts is still there.. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Object not found! error...
I don't see any obvious typo in your classes but one thing popped into my head that I thought I'd ask you. Are you developing in 1.1 or 1.2? IBM had a bunch of tutorials for early Cake 1.1. They do not work as expected on 1.2 because so much has changes in the APIs. /Martin On Oct 16, 10:14 am, xelios <[EMAIL PROTECTED]> wrote: > I didn't find any typo... > > Following are my files... > > / > *** > **/ > C:\xampp\htdocs\cake\app\models\user.php > > class User extends AppModel > { > var $name = 'User';} > > ?> > > / > *** > **/ > > / > *** > **/ > C:\xampp\htdocs\cake\app\views\users\register.ctp > > > Please fill out the form below to register an account. > Username: > > Password: size="40" > /> > > Email Address: maxlength="255" /> > > First Name: > > Last Name: > > > > / > *** > **/ > > / > *** > **/ > C:\xampp\htdocs\cake\app\controllers\users_controller.php > > class UsersController extends AppController > { > var $name = 'Users'; > var $helpers = array('Html', 'Form' ); > > function register() > { > if (!empty($this->params['form'])) > { > if ($this->User->save($this->params['form'])) > { > $this->flash('Your registration information was accepted.', > '/users/ > register'); > } else { > $this->flash('There was a problem with your registration', > '/users/ > register'); > } > } > } // END - register > > } // END - class > > ?> > > / > *** > **/ > > I've a doubt on "users_controller.php", may be it is not in an > appropriate place. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Object not found! error...
I didn't find any typo... Following are my files... / */ C:\xampp\htdocs\cake\app\models\user.php / */ / */ C:\xampp\htdocs\cake\app\views\users\register.ctp Please fill out the form below to register an account. Username: Password: Email Address: First Name: Last Name: / */ / */ C:\xampp\htdocs\cake\app\controllers\users_controller.php params['form'])) { if ($this->User->save($this->params['form'])) { $this->flash('Your registration information was accepted.', '/users/ register'); } else { $this->flash('There was a problem with your registration', '/users/ register'); } } } // END - register } // END - class ?> / */ I've a doubt on "users_controller.php", may be it is not in an appropriate place. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
AW: Object not found! error...
Hi Mohammad, Have you checked on typos in your object/controller/function name? Common typos are e.g. your model is named Foo $this->data['Foos'] instead of $this->data['Foo'] Or the action goes to foo_controller instead of foos_controller Lastly check your model foo.php on typos. Good hunt! Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von xelios Gesendet: Donnerstag, 16. Oktober 2008 09:09 An: CakePHP Betreff: Object not found! error... I am following a tutorial for CakePHP from "https:// www6.software.ibm.com/developerworks/education/os-php-cake1/ section3.html" I created a view for registration, on submitting it should submit values to the database. But it is displaying error "Object not found!". Following is my view code: /***/ Please fill out the form below to register an account. Username: Password: Email Address: First Name: Last Name: /***/ please help me... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Object not found! error...
I am following a tutorial for CakePHP from "https:// www6.software.ibm.com/developerworks/education/os-php-cake1/ section3.html" I created a view for registration, on submitting it should submit values to the database. But it is displaying error "Object not found!". Following is my view code: /***/ Please fill out the form below to register an account. Username: Password: Email Address: First Name: Last Name: /***/ please help me... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---