Create blogpost form
This commit is contained in:
parent
469ea99678
commit
36fa5bd01d
1 changed files with 19 additions and 0 deletions
19
application/forms/Admin_BlogCreate.php
Normal file
19
application/forms/Admin_BlogCreate.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class Admin_BlogCreate extends Fiktiv_Form
|
||||
{
|
||||
public function init() {
|
||||
|
||||
$this->addElement('Text', 'title', array(
|
||||
'label' => 'Subject'
|
||||
));
|
||||
|
||||
$this->addElement('Textarea', 'content', array(
|
||||
'label' => 'Post'
|
||||
));
|
||||
|
||||
$this->addElement('Submit', 'Submit', array(
|
||||
'label' => 'Save'
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in a new issue