I have read through most of the tutorials and have prior experience with other PHP-based frameworks such as CakePHP. I am working on a small simple application in an effort to better understand the Yii framework.
My application is rather simple thus far. I have Users which have one-to-many Listings. My model relations were not auto-generated by the Gii tool likely because I do not have foreign keys defined within my DB structure (MyISAM tables). I manually modified the relations as instructed by the documentation.
Within my database, I have data populated with one User and one Listing belonging to that User. The problem is that when I run a print_r to see what data my User has, the core User data is there but the Listing isn’t. Am I missing something?
As a brand new yii user who has been knocking his head out trying to figure this out, let me ask what seems to be an obvious question to most people: where would you "start with this"? I.e. where would this code go?
As I go through the documentation, the one thing that seems to be missing is where you would but a code snippet like this. In the controller, in a given view (given the <br/>)?