Re: [Cppcms-users] How to store/manipulate dates?
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-02-09 23:08:23
|
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 |