Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/application/modules/admin/controllers/BlogController.php
2010-10-30 13:48:46 +02:00

26 lines
No EOL
662 B
PHP

<?php
class Admin_BlogController extends Fiktiv_Controller_Action
{
public function indexAction()
{
$form = $this->view->form = $this->_getCreateForm();
if ($this->_request->isPost() && $form->isValid($this->_request->getPost())) {
$this->_savePost($form);
}
}
private function _savePost($form)
{
$post = new BlogPost($form->getValues());
//$this->dataService->BlogPost->save($post);
Zend_Debug::dump($post);
}
protected function _getCreateForm()
{
require_once APPLICATION_PATH . '/forms/Admin_BlogCreate.php';
return new Admin_BlogCreate();
}
}