wCMF Wiki : ProgrammingViews

HomePage :: Categories :: PageIndex :: RecentChanges :: Login/Register

Revision [406]

Last edited on 2007-12-26 10:00:40 by GiuseppePlatania
Additions:
Views are implemented as HTML pages (defined in the view templates), which typically contain a form, which [[DisplayingData displays the data]] to be modified. For programming dynamic parts and to access application data the Smarty template language is used.
Deletions:
Views are implemented as HTML pages (defined in the view templates), which typically contain a form, which displays the data to be modified. For programming dynamic parts and to access application data the Smarty template language is used.


Revision [63]

Edited on 2007-03-03 10:16:38 by GiuseppePlatania
Additions:
By default the views are stored as .tpl files in the directory /application/inlcude/views (see [[smarty]]). In the directory /wcmf/application/views those views are stored, which the framework uses for its standard application. These are the basis for the programming of custom views.
In the view templates all data, which was passed to the view instance is accessible (see ProgrammingControllers). In the simplest case these can be displayed via {$variable}. In addition object data can be accessed by using {$object->getValue(...)}. By setting debugView = 1 (see [[cms]]) in the ConfigurationFile Smarty will display the data, which is available in the template, in an external window.
Deletions:
By default the views are stored as .tpl files in the directory /application/inlcude/views (see [smarty]). In the directory /wcmf/application/views those views are stored, which the framework uses for its standard application. These are the basis for the programming of custom views.
In the view templates all data, which was passed to the view instance is accessible (see ProgrammingControllers). In the simplest case these can be displayed via {$variable}. In addition object data can be accessed by using {$object->getValue(...)}. By setting debugView = 1 (see [cms]) in the ConfigurationFile Smarty will display the data, which is available in the template, in an external window.


Revision [62]

Edited on 2007-03-03 10:15:47 by GiuseppePlatania
Additions:
In the view templates all data, which was passed to the view instance is accessible (see ProgrammingControllers). In the simplest case these can be displayed via {$variable}. In addition object data can be accessed by using {$object->getValue(...)}. By setting debugView = 1 (see [cms]) in the ConfigurationFile Smarty will display the data, which is available in the template, in an external window.
* Function [[translate]] for localization of strings
* Function SessionValue to get a session variable
Deletions:
In the view templates all data, which was passed to the view instance is accessible (see ProgrammingControllers). In the simplest case these can be displayed via {$variable}. In addition object data can be accessed by using {$object->getValue(...)}. By setting debugView = 1 (see [cms]) in the configuration file Smarty will display the data, which is available in the template, in an external window.
* Function translate for localization of strings
* Function sessionvalue to get a session variable


Revision [61]

The oldest known version of this page was created on 2007-03-03 10:14:24 by GiuseppePlatania
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1012 seconds