Location: PHPKode > projects > SOA For Virtuemart (WebServices) > com_vm_soa/admin/controllers/orders.php
<?php
/**
 * Controleur controleur secondaire
 */
defined('_JEXEC') or die();
class vm_soaControllerorders extends vm_soaController{
	function orders() {
		JRequest::getVar('trace')->trace_it(__FILE__." clients 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', 'orders' );
		$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_ord'  );
		JRequest::setVar('hidemainmenu', 1);
	// On selectionne la vue config
		JRequest::setVar( 'view', 'orders' );
		$this->display();
		break;
	}
  //parent::display();
	JRequest::getVar('trace')->trace_it(__FILE__." config fin", 1, -1);
}
}
?>
Return current item: SOA For Virtuemart (WebServices)