I have just started to learn about yii framework. I'm having particular difficulty connecting the dots when it comes to models, modules and controllers.
I have managed to create these pages that work:
from ads table
' ads' folder, AdsController.php
to create a url: yii.dev/index.php/ads
from agency table
' agency' folder, AgencyController.php
to create a url: yii.dev/index.php/agency
However, I am confused as to how I can display specified ads and agency records on the home page
i.e. agency and ads records in two separate sections
on this page yii.dev/index.php
Before in basic php I would include files ie. include('agency.php'); include('ads.php');
Basically how can I add two (or more) separate table displays on one page.
Hope that is clear.