| [ 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( "ADMINSIMPLEERROR_TEMPLATE", "simpleerror" ); 7 8 /** 9 * \ingroup View 10 * @private 11 * 12 * The ErrorView class takes care of showing error messages 13 */ 14 class AdminSimpleErrorView extends View 15 { 16 17 function AdminSimpleErrorView() 18 { 19 $this->View(); 20 } 21 22 function render() 23 { 24 // set the view character set based on the default locale 25 $config =& Config::getConfig(); 26 $locale =& Locales::getLocale( $config->getValue( "default_locale" )); 27 $this->setValue( 'version', Version::getVersion()); 28 $this->setCharset( $locale->getCharset()); 29 30 parent::render(); 31 32 // load the contents into the template context 33 $ts = new TemplateService(); 34 $template = $ts->Template( ADMINSIMPLEERROR_TEMPLATE, "admin" ); 35 $this->setValue( "locale", $locale ); 36 // finally pass the values to the templates 37 $template->assign( $this->_params->getAsArray()); 38 39 // finally, send the results 40 print $template->fetch(); 41 } 42 } 43 ?>
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 |
|