I am a little new to cakephp 3 and i am trying to figure out how you call this simple model/table in my index controller so that i can get the values to show up on my webpage. this
Solution 1:
at the top of controller include the below code for accessing the models
use Cake\ORM\TableRegistry;
and you add the in before filter function or in initialize function
or you can use it inside any function where you have indeed
$this->loadModel('UpdatedTranscripts');
Share
Post a Comment
for "Database Views And Models Being Called In My Controller"
Post a Comment for "Database Views And Models Being Called In My Controller"