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
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
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
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)
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
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
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
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