On 1 Feb 2009, at 16:25, Veikko Mäkinen wrote:
> Sounds like you have renamed the template variable in  
> output_types.xml.
> The default configs for new projects nowadays rename the variable to
> "$t" instead of the core default "$template".
>
> Check your app/config/output_types.xml and/or rename the template
> variable in your templates.
Thanks: this has got rid of the undefined variable error, but the  
actual dummy data post doesn't show (jut the empty template with "by"  
and "in" showing).

What I've done to investigate:

- Manually ran the SQL query from Public_PostsModel::findPostById  
through SQL (but with a fixed ID). The SQL query returns the correct  
record. (So I don't think it's an issue with the dummy data)
- In Public_ShowPostSuccessView::executeHtml I've replaced $rd- 
 >getParameter('post_id') by the literal "1". The page 'blog/1' (and  
blog/2, blog/3...) shows the blog entry with ID 1 correctly parsed  
through the template. (So I don't think it's an issue with the Model  
code)
- In Public_ShowPostSuccessView::executeHtm I've added the line

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

to see if "getParameter" returns the correct value. It does not: it  
does not appear to return anything. Somehow when the URL is blog/ 
[idOfPost] the idOfPost get lost somewhere...

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

Reply via email to