Exemple #1
0
 function save()
 {
     //echo "save control";
     //exit;
     //print_r($this->_controllerUrl);
     //	exit;
     // Check for request forgeries
     // JRequest::checkToken() or die( 'Invalid Token' );
     //$this->laydulieuBDS();
     U_reModelProperties::save();
     $this->_setDefaultRedirect();
     /*
     if ( false ===  $this->_model->save() )
     {
         $this->edit();
     }
     else
     {
     	/*
     	$row =& $this->_model->getRow();
     	
       	if ( 'apply' == $this->getTask() )
       	{
       		$this->_controllerUrl .= '&task=edit&id=' . $row->id ;
       	}
       
       	$msg = JText::sprintf( 'Successfully saved property', $row->ref ) ;
         $this->setRedirect( $this->_controllerUrl  , $msg );
     }
     */
 }
Exemple #2
0
 function save()
 {
     //	echo "save555";
     //exit();
     U_reModelProperties::save();
     // tam thoi tro ve trang chu
     //$this->setRedirect( 'index.php' );
     $this->setRedirect('index.php?option=com_u_re&view=manage&Itemid=8');
     //	$this->_setDefaultRedirect();
     /*
     if ( false ===  $this->_model->save() )
     {
         $this->edit();
     }
     else
     {
     	/*
     	$row =& $this->_model->getRow();
     	
       	if ( 'apply' == $this->getTask() )
       	{
       		$this->_controllerUrl .= '&task=edit&id=' . $row->id ;
       	}
       
       	$msg = JText::sprintf( 'Successfully saved property', $row->ref ) ;
         $this->setRedirect( $this->_controllerUrl  , $msg );
     }
     */
 }