[Cppcms-users] Bad dynamic_cast! (http_context.cpp:150)
Brought to you by:
artyom-beilis
|
From: sergey l. <ccp...@gm...> - 2012-01-21 22:11:45
|
lib: cppcms-0.99.11
os: windows 7 x86_64
compiler: msvc 2010
Dear All!
I have strange error with my application when calling function
render("myapp", "about", content); from controller:
2012-01-22 01:57:30; cppcms, error: Caught exception [Bad dynamic_cast!]
(http_context.cpp:150)
I don't have error if I call render() function with another template
name render("myapp", "index", content) from the same controller .
about.tmpl:
<% c++ #include "../../include/data/about.h" %>
<% skin myapp %>
<% view about uses data::about extends master %>
<% template body() %>
<h2>about::index == <%= text %></h2>
<% end template%>
<% end view %>
<% end skin %>
index.tmpl:
<% c++ #include "../../include/data/index .h" %>
<% skin myapp %>
<% view index uses data::index extends master %>
<% template body() %>
<h2>index::index == <%= text %></h2>
<% end template%>
<% end view %>
<% end skin %>
Please help.
Thanks in advance.
|