Re: [Cppcms-users] How to store/manipulate dates?
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-02-10 12:25:03
|
> >Hi, > >> a) you can create a variable called first_name that you set in the >> controller >> that remains empty if the user is not logged in >> >> <%if not empty first_name %> >> <% gt "Hello {1}" using first_name%> >> <%else%> >> Please login below: >> <%end%> > >In the controller? > >Using this method I get > >view/blog.tmpl:21: error: 'class data::Blog' has no member named 'first_name' > > >> b) You can create a variable or callback in the content called >> "is_logged_in" > >In the "content", do you mean in the template or in the data model? > >Cheers, >Petr > > > Maybe RTFM? http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello_templates http://cppcms.com/wikipp/en/page/cppcms_1x_templates Artyom |