Welcome to laravel

Standard

laravel

Welcoming 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.

Iklan-kerja.com

Standard

Just bought iklan-kerja.com last week . Just some experiment I want to do with wordpress + SEO. Most of the time people like to complain there is not enough job out there and I believe there is job for those who try harder.

I still remember when I decide to purse IT as my career .. at that time there is too many “graduan IT” menganggur so I tend to look for IT / Programming jobs. Most the posts I take from lowyat.net and paste it there ( with backlinks off course ) .