Hi,

I'm following the tutorial, and have got stuck at the "Runninig  
Bloggie" stage. If I try to view a post at:

blog/1

I get:

Notice: Undefined variable: template in /Users/Michal/bloggie/app/ 
modules/Public/templates/ShowPostSuccess.php on line 6

error, and my dummy data does not appear.

I have tried to investigate this: I have put the line:

exit('ID: ' . $rd->getParameter('post_id'));

into Public_ShowPostSuccessView::executeHtml, but it just outputs 'ID:  
' with no value after it. So I would guess it's an issue with the  
routing somehow. As per the instructions, I have placed

<route pattern="^/$" module="Public" action="Index"/>
<route pattern="^/blog/(post_id:\d+)$" module="Public"  
action="ShowPost" name="ShowPost"/>

into routing.xml. It must be working 'a bit' as it does seem the  
action/view code is running when it should, but it's just that the  
'post_id' parameter is not available.

I wonder if it is something to do with the fact that I did not put the  
app into the root of the website, but in it's own 'blog' directory. So  
the absolute path to the post is /blog/blog/1 .

Any suggestions?

Michal.

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to