Location: PHPKode > projects > Anahita Social Engine > admin/views/configuration/html.php
<?php
/**
* @version		1.0.0
* @package		Anahita SocialEngine
* @copyright	Copyright (C) 2007 - 2010 rmd Studio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link 		http://www.anahitapolis.com
*/

class ComSocialengineViewConfigurationHtml extends ComSocialengineViewHtml
{

	public function prepareDefaultLayout()
	{				
		$this->getToolbar()
		->reset()
		->append('save')
		->setTitle('Social Engine Configuration')
		->setIcon('config.png')
		;
		
		$params = KFactory::get('admin::com.socialengine.model.configurations')->getParams();
		$meta 	 = new JParameter( $params, JPATH_ADMINISTRATOR.DS.'components'.DS.'com_socialengine'.DS.'config.xml');
		$str	= json_encode($meta->toArray());
		print "<script> params =  $str</script>";
		$this->assign('params', $params);
		$this->assign('meta', $meta);
	}
}
Return current item: Anahita Social Engine