$this - render() not using correct view

2013-12-15 Thread Kristen M
Collection controller, want to use the same view file (display_collection) to display the multiple types of collections. Very basic, no plugins involved. Pretty much like straight out of the book. Problem is that the default view for the action is being rendered. public function

Re: Certain models via $uses cause non-object errors in Controller

2013-12-11 Thread Kristen M
Well, I figured it out. :: facepalm:: Typos are fail. :| On Monday, December 9, 2013 6:55:37 PM UTC-6, Kristen M wrote: I need to include a couple of models in various controllers. However, when I try to put the models in $uses() they invariably throw non-object errors even when

Certain models via $uses cause non-object errors in Controller

2013-12-09 Thread Kristen M
I need to include a couple of models in various controllers. However, when I try to put the models in $uses() they invariably throw non-object errors even when not being called, and even when the model is totally empty. However, ONE model (User) will play nice. There are no relationships

JOIN in belongsTo (but not HABTM)

2013-12-02 Thread Kristen M
Is this possible? Situation: Users have many Items I want to pull a User's total inventory, which sits in the inventory table. But I also need to pull some fields from the master item table (like item name) or to be able to pull items only be their type (this data sits in the master table)

Re: Multiple Models In A Controller

2013-11-17 Thread Kristen M
wrote: Hi Kristen M Please ensure that you are using the correct model name; ensure that the model filename is correct, etc. Also show us the code for Uses including the statements before and after the Uses statements. What error message are you receiving when using Uses? Kind regards

Multiple Models In A Controller

2013-11-16 Thread Kristen M
There are several ways to do this, but in my application, only one seems to work. $this - loadModel(Model); From my reading it seems there are an assortment of ways to include a Model that doesn't require re-loading a Model everytime I need it (assuming I need it multiple times within a

Re: Best Practice Question - Components

2013-11-06 Thread Kristen M
Yeah, the point of the exercise is to do things the Cake Way and take advantage of all things automagical and Cake. ;) After puzzling over the docs for a bit and realizing it's not bad form to have a controller use multiple models, I decided that splitting the existing classes into a model

Best Practice Question - Components

2013-11-05 Thread Kristen M
I'm not a new programmer (I'd say advanced beginner/intermediate) but I'm quite new to Cake and MVC in general. I've decided best way to learn CakePHP and MVC is to take an existing (functional, live) project and port it to Cake for kicks. Get the grand tour of all the basics. In my