Saving a model from a different controller

2006-12-04 Thread Symen Timmermans
Hello, I'm quite new to CakePHP but there is something very simple I want to do, and I can't get it right. I'm building a website that shows trips people can book. The trip index page is /packages/index I want to log every time someone clicks on a trip in a table called Packagesclicks. So I

Re: Saving a model from a different controller

2006-12-04 Thread Symen Timmermans
Nevermind, I found the solution to my problem using Debug level 2. Because there was no userID in the session, $this-Session-read(usersID) returned null, and the database didn't like inserting null in the packagesclicks table. Sorry. --~--~-~--~~~---~--~~ You