Location: PHPKode > projects > SOA For Virtuemart (WebServices) > com_vm_soa/admin/controllers/config.php
<?php

/**
 * @package    	com_vm_soa (WebServices for virtuemart)
 * @author		Mickael Cabanas (cabanas.mickael|at|gmail.com)
 * @link 		http://sourceforge.net/projects/soa-virtuemart/
 * @license    	GNU/GPL
*/


class vm_soaControllerconfig extends vm_soaController{
function config() {
	JRequest::getVar('trace')->trace_it(__FILE__." config d�but", 1, 1);

	// On appelle le mod�le pour lire la configuration
	$model = $this->getModel('vm_soa');
	switch(JRequest::getVar('task', ''))
	{
		case 'save':
			$conf = $model->save_conf();
			JRequest::setVar( 'layout', 'ack'  );
		// On selectionne la vue config
			JRequest::setVar( 'view', 'config' );
		$this->display();
		case 'cancel':
		break;
		default:
	$conf = $model->read_conf();
	//$this->assignRef( 'conf', $conf );
	JRequest::setVar( 'conf', $conf );
	// On appelle la vue en demandant d'afficher le formulaire
		JRequest::setVar( 'layout', 'form_conf'  );
		JRequest::setVar('hidemainmenu', 1);
	// On selectionne la vue config
		JRequest::setVar( 'view', 'config' );
		$this->display();
		break;
	}
  //parent::display();
	JRequest::getVar('trace')->trace_it(__FILE__." config fin", 1, -1);
}
}
?>
Return current item: SOA For Virtuemart (WebServices)