Re: Trouble fetching database information

2009-02-25 Thread Matt
Thank you so much! You can't imagine how much I appreciate your help - I'm sure you remember how hard it was to wrap your head around MVC when you're used to straight PHP!! Thanks again! -Mathieu On Feb 25, 2:13 pm, brian wrote: > On Wed, Feb 25, 2009 at 2:54 PM, Matt wrote: > > > Hello and th

Re: Trouble fetching database information

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 2:54 PM, Matt wrote: > > Hello and thank you so much for your help!! > > Brian, > > I took your advice and added the userid to the session, however, I'm > clearly doing something wrong because in the Supplier controller I > call the session with: > $userid = $this->Session

Re: Trouble fetching database information

2009-02-25 Thread Matt
Hello and thank you so much for your help!! Brian, I took your advice and added the userid to the session, however, I'm clearly doing something wrong because in the Supplier controller I call the session with: $userid = $this->Session->read('userid'); However in the view, I enter echo $userid;

Re: Trouble fetching database information

2009-02-25 Thread Matt
Hello and thank you so much for your help!! Brian, I took your advice and added the userid to the session, however, I'm clearly doing something wrong because in the Supplier controller I call the session with: $userid = $this->Session->read('userid'); However in the view, I enter echo $userid;

Re: Trouble fetching database information

2009-02-25 Thread Matt
Hello and thank you so much for your help!! Brian, I took your advice and added the userid to the session, however, I'm clearly doing something wrong because in the Supplier controller I call the session with: $userid = $this->Session->read('userid'); However in the view, I enter echo $userid;

Re: Trouble fetching database information

2009-02-25 Thread brian
On Wed, Feb 25, 2009 at 9:27 AM, Matt wrote: > > Hi all, > > I'm new to CakePHP (but not PHP) and I have followed the 5 part series > by IBM to get me going on Cake PHP. I'm building a mini CMS for a > client, and I am stuck... here's how the system should work: > > the client logs in and adds a

Re: Trouble fetching database information

2009-02-25 Thread dr. Hannibal Lecter
Obviously, User model is not used in SupplierController, i.e. you're missing the following var $uses = array('User'); In your controller. That's why "Undefined property" error occurs when you do $this->User. Hope that helps! On Feb 25, 3:27 pm, Matt wrote: > Hi all, > > I'm new to CakePHP (bu

Trouble fetching database information

2009-02-25 Thread Matt
Hi all, I'm new to CakePHP (but not PHP) and I have followed the 5 part series by IBM to get me going on Cake PHP. I'm building a mini CMS for a client, and I am stuck... here's how the system should work: the client logs in and adds a supplier. The supplier is added to the database and has a fi