This is my first run with le wifey. Somehow I manage to finish the run in 1 hour 9 minutes. Better luck next time.
L1F3
Redis for windows
StandardRails 3 MySQL with WAMP and RailsInstaller
Standardgem install mysql2 — ‘–with-mysql-lib=”C:\wamp\bin\mysql\mysql5.5.24\lib” –with-mysql-include=”C:\wamp\bin\mysql\mysql5.5.24\include”‘
Show hide files in external hard disk
StandardAssuming your g drive is your external hard disk .. run a command prompt with administrator privilege
attrib -h -r -s /s /d g:\*.*
Welcome to laravel
StandardWelcoming myself to Laravel framework. Coming from CodeIgniter and CakePHP background makes it easy for someone like me to use Laravel. The MVC concept is the same but the name of the method makes me feel weird sometimes. This post is just for me to make some notes when using Laravel.
- Make sure to add action_ prefix when creating a method in controller
- Or just use public $restful = true; and create a method with prefix get_ , post_
- CakePHP $useTable == public static $table
- CakePHP $primaryKey == public static $key
- In codeigniter this->load->view(‘folder/filename’, $data); == return View::make(‘folder.filename’, $data); Notice the dot (.)
- CakePHP filenameController extends AppController == filename_Controller extends Base_Controller
- In laravel , Fluent is like CodeIgniter Active record and Eloquent is like CakePHP ORM.
- Cakephp cake bake console == Bob the builder bundle using Artisan
- CakePHP hasOne , hasMany , belongsTo == has_one() , has_many() , belongs_to()
- CakePHP containable == Laravel Eager loading
- Laravel 4 cannot use bundle. Since Laravel 4 is using composer , use libraries from Packagist . So use Laravel 3 to use bundles.