Recent Posts
- (12/26) CakePHP 3 - Getting List of Column Definitions from a Table (like schema())TAGS:CakephpCake3
- (09/14) Change Order of Loaded Behaviors in CakePHP 3TAGS:Cake3CakephpWeb ProgrammingPhp
- (05/29) CakePHP 3 - Accept JSON Header Only Working When Debug FalseTAGS:Web ProgrammingCakephpCake3
- (05/23) Remove All Events from Google Calendar (Reset Calendar)TAGS:Web ProgrammingPhp
- (11/08) Google Tag Manager (GTM) Not Firing Default PageView EventTAGS:Web ProgrammingJavascriptGoogle Tag Manager
- (10/13) In PHP, how do you get __toString() Magic Method Result without calling echo?TAGS:CakephpCake3Cakephp 13PhpWeb Programming
- (11/14) Getting output from shell_exec() at all timesTAGS:Web ProgrammingWeb Server Admin
- (10/11) CORS Middleware in Cakephp 3TAGS:CakephpCake3Web ProgrammingJavascriptExample
Subscribe to my feed
MainelyDesign.com Blog
Loading Model/Table Anywhere in Cake3
Posted on 01/13/2016 at 03:56 pm by Kevin Wentworth
Viewed 5,057 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!)
- use Cake\ORM\TableRegistry;
- $this->Articles = TableRegistry::get('Articles');

Tags for Loading Model/Table Anywhere in Cake3
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!