cakephp user login and administration page
Hello, I'm new to cakephp, and i need to create a user registration page which after successful registration an admin user can login in and view the username of registered users, i have tried creating an application but it only displays user id and not username Help would be appreciated. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Notice (8): Undefined variable: user [APP/View/Users/index.ctp, line 12]
i have changed my code as you advised, but now its only showing user id but username is blank On Wednesday, April 23, 2014 12:17:30 PM UTC+3, archie rombo wrote: > > I recieved the errors below when i tried listing registed users, using > this code in /App/View/Users/index.ctp > > > > > Can Anyone help? > > *N**otice* (8): Undefined variable: user [*APP/View/Users/index.ctp*, line > *12*] > > *Warning* (2): Invalid argument supplied for foreach() > [*APP/View/Users/index.ctp*, line *12*] > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Notice (8): Undefined variable: user [APP/View/Users/index.ctp, line 12]
I have changed the code as you suggested and still no change My index.ctp file is shown below <https://lh6.googleusercontent.com/-U3c5-HP5Lig/U1e2OdphZWI/AVQ/beyBUIYCcNM/s1600/Screenshot+from+2014-04-23+15%3A43%3A16.png> and the resulting view is <https://lh6.googleusercontent.com/-x2vyed_8R44/U1e2kiHg1dI/AVY/wNlJ7kpG6LY/s1600/Screenshot+from+2014-04-23+15%3A41%3A34.png> Instead of showing the list of registered users it is only showing the page above, i have attached my ctp files and UsersController in case you have any ideas on how to improve them On Wednesday, 23 April 2014 12:17:30 UTC+3, archie rombo wrote: > > I recieved the errors below when i tried listing registed users, using > this code in /App/View/Users/index.ctp > > > > > Can Anyone help? > > *N**otice* (8): Undefined variable: user [*APP/View/Users/index.ctp*, line > *12*] > > *Warning* (2): Invalid argument supplied for foreach() > [*APP/View/Users/index.ctp*, line *12*] > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. add.ctp Description: Binary data index.ctp Description: Binary data login.ctp Description: Binary data <>
Notice (8): Undefined variable: user [APP/View/Users/index.ctp, line 12]
I recieved the errors below when i tried listing registed users, using this code in /App/View/Users/index.ctp Can Anyone help? *N**otice* (8): Undefined variable: user [*APP/View/Users/index.ctp*, line *12*] *Warning* (2): Invalid argument supplied for foreach() [*APP/View/Users/index.ctp*, line *12*] -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.