pieter/form-component

There is no license information available for the latest version (dev-master) of this package.

dev-master 2013-10-08 08:50 UTC

This package is not auto-updated.

Last update: 2024-12-17 07:43:51 UTC


README

This form component just for practice

installing

for simple way, try using composer, add this on your composer.json file in require tag

"pieter/form-component": "dev-master"

and run from terminal

~/php composer.phar update "pieter/form-component"

after that, add this code on app/config/app.php

array(
  'providers' => array (
        other providers,
        'Pieter\FormComponent\FormComponentServiceProvider',
    ),
  'aliases' => array (
        other aliases,
        'CForm'           => 'Pieter\FormComponent\Facades\CDate',
    )
  ),
)

How to use

just call the cForm from [your-view].blade.php

{{ CForm::custom_year('tahun', array(2008, 2013)) }}

enjoy it !