Re: Newby: "Undefined index" error

2008-12-29 Thread danwednesday
Thanks Webweave, but I now get 2 'undefined index' errors on the form page when I try to submit. The one positive is that it doesn't truncate my form values now, so it returns what I input. The code I have: login.ctp: check('Message.auth')) $session->flash('auth'); echo $form->create('User

Re: Newby: "Undefined index" error

2008-12-29 Thread danwednesday
Thanks gearvOsh, Adding that snippet to the controller caused an error, so I read through the documentation link you sent through, and that has resolved the errors. However, now, it's just not working. When I submit a username and password, I just get redirected back to the form, with the usern

Newby: "Undefined index" error

2008-12-28 Thread danwednesday
Hi, Following on from an earlier post, I'm receiving an error when trying to log in to a basic password protected admin system. The error is as follows: Notice (8): Undefined index: User [APP\controllers \users_controller.php, line 10] Code if(!empty($this->data)) { /

Re: Newby: Basic file structure for website & CMS

2008-12-28 Thread danwednesday
Okay, I found this example here: http://www.jamesfairhurst.co.uk/posts/view/creating_an_admin_section_with_cakephp/ which talks me through how to create an admin area. It's actually pretty simple, starting by just uncommenting the admin routing line in /app/config/core.php. However, when I'm log

Newby: Basic file structure for website & CMS

2008-12-28 Thread danwednesday
Hi, I'm brand new to php and the MVC style of development. I've read some of the cakephp documentation and it makes sense in theory, so I'm keen to push on. However, the first task I've set myself is to build a simple website and CMS for displaying and administering news articles. I have built