Created
June 21, 2010 12:28
-
-
Save Ikke/446782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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