| [ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/view/view.class.php" ); 4 lt_include( PLOG_CLASS_PATH."class/locale/locales.class.php" ); 5 6 define( "ADMINSIMPLEMESSAGE_TEMPLATE", "simplemessage" ); 7 8 /** 9 * \ingroup View 10 * @private 11 * 12 * The SimpleMessageView class shows messages, but the template does not 13 * include the header or the footer. 14 */ 15 class AdminSimpleMessageView extends View 16 { 17 18 function AdminSimpleErrorView() 19 { 20 $this->View(); 21 } 22 23 function render() 24 { 25 // set the view character set based on the default locale 26 $config =& Config::getConfig(); 27 $locale =& Locales::getLocale( $config->getValue( "default_locale" )); 28 $this->setValue( 'version', Version::getVersion()); 29 $this->setCharset( $locale->getCharset()); 30 31 parent::render(); 32 33 // load the contents into the template context 34 $ts = new TemplateService(); 35 $template = $ts->Template( ADMINSIMPLEMESSAGE_TEMPLATE, "admin" ); 36 $this->setValue( "locale", $locale ); 37 38 39 // and pass the values to the template 40 $template->assign( $this->_params->getAsArray()); 41 42 // finally, send the results 43 print $template->fetch(); 44 } 45 } 46 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
|