Loading Model/Table Anywhere in Cake3

Posted on 01/13/2016 at 03:56 pm by Kevin Wentworth
Viewed 5,555 times | 0 comments

I'm finally off on upgrading to CakePHP 3.0.  I'm sick of typing out CakePHP 3.0, so from now on it's just cake3.  I'm going to post about my experiences upgrading a large application to cake3.

First thing: it's so easy to get access to a model... ANYWHERE (love it!)

  1. use Cake\ORM\TableRegistry;
  2. $this->Articles = TableRegistry::get('Articles');
Bookmark and Share

Tags for Loading Model/Table Anywhere in Cake3

Cake3 | Cakephp

Comments for this Posting

No comments. Be the first to post a reply.

Sorry, comments are closed for this posting.

Please Email Kevin if you have any questions. Thanks!

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design