[FLOW3-general] Beginner issue with FLOW3's Blog Tutorial : createAction()
SethYs
sethys at laposte.net
Sun Dec 27 14:14:25 CET 2009
Hello,
I'm getting start with the FLOW3's Blog tutorial and have an issue with
createAction() in BlogController.
I followed the tutorial (createAction with one Blog parameter called
from blog/blog/new page) but when I go to my local controller address
(trough the new blog filled page) I have a blank page.
Normally, createAction persists the new Blog instance and redirect to
'index' action which lists all blogs but it seems not work.
I tried an echo('TEST'); from createAction function but nothing is
printed in my navigator (source is also empty).
When I display the index page http://flow3.imac.local/blog/blog, source
contains the empty list of blogs '<ul></ul>'.
/**
* Create action
*
* @return void
*/
public function createAction(\F3\Blog\Domain\Model\Blog $newBlog) {
$this->blogRepository->add($newBlog);
$this->flashMessageContainer->add('Your new blog was created');
$this->redirect('index');
}*
Please, do you have any idea about my issue?*
Thanks,
--
SethYs
More information about the FLOW3-general
mailing list