08/10
2013
This form component just for practice, (*1)
for simple way, try using composer, add this on your composer.json file in require tag, (*2)
"pieter/form-component": "dev-master"
and run from terminal, (*3)
~/php composer.phar update "pieter/form-component"
after that, add this code on app/config/app.php, (*4)
array( 'providers' => array ( other providers, 'Pieter\FormComponent\FormComponentServiceProvider', ), 'aliases' => array ( other aliases, 'CForm' => 'Pieter\FormComponent\Facades\CDate', ) ), )
just call the cForm from [your-view].blade.php, (*5)
{{ CForm::custom_year('tahun', array(2008, 2013)) }}
enjoy it !, (*6)