>________________________________
> From: Christian Gmeiner <chr...@gm...>
>To: cpp...@li...
>Sent: Wednesday, October 24, 2012 3:18 PM
>Subject: [Cppcms-users] Different ways to display the same model
>
>Hi all
>
>I have a working cppcms based application and would like to extend it to display
>the same model's in a completely different way.
>
>At the moment I have a touch optimized administration GUI. Is it
>possible to create
>an PC browser optimized version (with twitters bootstrap) to display
>the same models?
>Should this be the a different skin?
>
You need to create a different `<% view ... %> that uses the same model.
It is generally good idea to create two different skins that each
one of them contains the code this way you can switch
only the skin name and use the same "view" name according to logic/model.
Also if you have some 100% shared parts you can put them to "unnamed"
skin and provide a name at compilation stage.
>thanks
>--
>Christian Gmeiner, MSc
>
Regards,
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
|