Skip to content

Instantly share code, notes, and snippets.

@Ikke
Created June 21, 2010 12:28
Show Gist options
  • Save Ikke/446782 to your computer and use it in GitHub Desktop.
Save Ikke/446782 to your computer and use it in GitHub Desktop.
<?php
/**
* Created by IntelliJ IDEA.
* User: Baddy
* Date: 21-jun-2010
* Time: 12:50:02
* To change this template use File | Settings | File Templates.
*/
echo form::open('category/<?=$form_action?>', array('id'=>'form-simple'));
echo form::label('name', 'Your Name');
echo form::input('name', ($form['name']));
echo (empty ($errors['name'])) ? '' : $errors['name'];
echo '<br />';
echo form::submit('submit', 'Send');
echo '<br />';
echo form::close();
?>
function action_add()
{
$view_form = View::factory('categoriesForm')->set('form_action', 'add')
$this->template->content = $view_form->render();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment