[pLog-svn] r6075 - plog/trunk/class/view/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Fri Nov 23 10:42:38 EST 2007
Author: mark
Date: 2007-11-23 10:42:38 -0500 (Fri, 23 Nov 2007)
New Revision: 6075
Modified:
plog/trunk/class/view/admin/admindefaultview.class.php
Log:
We should use the adminTemplate() service here instead of Template().
Now, the defaultAction works.
Modified: plog/trunk/class/view/admin/admindefaultview.class.php
===================================================================
--- plog/trunk/class/view/admin/admindefaultview.class.php 2007-11-23 08:24:07 UTC (rev 6074)
+++ plog/trunk/class/view/admin/admindefaultview.class.php 2007-11-23 15:42:38 UTC (rev 6075)
@@ -5,22 +5,22 @@
*/
-
-
-
-
-
+
+
+
+
+
// name of the template we are going to use for this view
define( "DEFAULTADMIN_TEMPLATE", "default" );
/**
* \ingroup View
* @private
- *
+ *
* Default view
*/
- class AdminDefaultView extends View
+ class AdminDefaultView extends View
{
/**
@@ -34,7 +34,7 @@
$config =& Config::getConfig();
$locale =& Locales::getLocale( $config->getValue( "default_locale" ));
$this->setValue( 'version', Version::getVersion());
- $this->setValue( "locale", $locale );
+ $this->setValue( "locale", $locale );
$this->setCharset( $locale->getCharset());
}
@@ -46,10 +46,10 @@
function render()
{
parent::render();
-
+
// to find the template we need, we can use the TemplateService
$ts = new TemplateService();
- $template = $ts->Template( DEFAULTADMIN_TEMPLATE, "admin" );
+ $template = $ts->AdminTemplate( DEFAULTADMIN_TEMPLATE );
// assign all the values
$template->assign( $this->_params->getAsArray());
More information about the pLog-svn
mailing list