Re: [Cppcms-users] ERROR: There is no such skin
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2011-03-29 20:40:38
|
When you have more then one skin you need to either specify its name explicitly as parameter to application::render function http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1application.html#a68b4c88d0e81a41474933043690aa1a or you need to set the configuration value views.default_skin See http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_config#views.default_skin (I forgot to document this specific option, I have just added it to the wiki) What is important to understand that if you have different skins you need to select one somehow. Artyom ----- Original Message ---- > From: Renato Forti <re....@ay...> > To: cpp...@li... > Sent: Tue, March 29, 2011 9:31:30 PM > Subject: [Cppcms-users] ERROR: There is no such skin > > Hi All, > > What is this error: > > "There is no such skin:" > > I have 2 templates: > >----------------------------------------------------------------------------------------------------------- >- > > <% c++ #include "HomeContent.h" %> > <% skin Home %> > <% view home uses Content::HomeContent %> > <% template render() %> > > // HTML ... > > <% end template %> > <% end view %> > <% end skin %> > >------------------------------------------------------------------------------------------------------------ >- > > <% c++ #include "PortalContent.h" %> > <% skin Portal %> > <% view portal uses Content::PortalContent %> > <% template render() %> > > // HTML ... > > <% end template %> > <% end view %> > <% end skin %> > >------------------------------------------------------------------------------------------------------------ >- > > If I access: Home, al lis ok, but if i call Portal I receive: "There is no >such skin:" (no name in the end) > and if I remove "HomeSkin.cpp" of my project; Portal work!!! > > I am confused What is the problem? > > PS: All files is attached. > > Thanks > |