Tinkering Application from REPL. Bringing Psysh to cakePHP 2.x
- cd app/Plugin
- Git clone https://github.com/mahadirz/cakephpTinker.git
- cd cakephpTinker
- composer install
- Add CakePlugin::load('CakephpTinker'); into bootstrap.php
php app/Console/cake.php CakephpTinker.Psy
>> $user = ClassRegistry::init('User');
>> $user->find('first',array('conditions'=>array('User.id'=>1)));
Licensed under The MIT License Redistributions of files must retain the above copyright notice.
Mahadir Ahmad - http://madet.my