Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?php defined('SYSPATH') or die('No direct script access.');
- class About_Controller extends Controller {
- public function __construct(){
- parent::__construct();
- }
- function index()
- {
- $form = new Forge();
- $form->input('name')->label('Name')->rules('required')->class('input-field')->style('width:300px');
- $form->input('company_name')->label('Company Name')->class('input-field')->style('width:300px');
- $form->input('email')->label('Email')->rules('required|valid_email')->class('input-field')->style('width:300px');
- $form->input('phone')->label('Phone Number')->rules('required')->class('input-field')->style('width:300px');
- $form->input('website')->label('Website')->class('input-field')->style('width:300px');
- $form->input('start_date')->label('When would you like to get started?')->rules('required')->class('input-field')->style('width:300px');
- $form->input('budget')->label('What is your estimated budget?')->class('input-field')->style('width:300px');
- $form->textarea('message')->label("Describe your project in detail:")->rules('required')->style('width:750px; height: 100px;')->class('input-field');
- $view = new View('about', array(
- 'form_quote' => $form,
- ));
- $view->header = new View('header', array(
- 'title' => 'Known Gallery :: About',
- 'extra_head_content' => array
- (
- '<script src="' . url::base() . 'media/js/scrollto.js" type="text/javascript"></script>',
- ),
- ));
- $view->footer = new View('footer');
- $view->render(TRUE);
- }
- }
Add Comment
Please, Sign In to add comment