Lyels
            
          
          
          
              
              
          1
          
         
        
          I’d like to redirect after an action is completed. But I want to do as a post request. I know in CHtml, I can use:
CHtml::link('CLICK ME","#", array("submit"=>array("controller/action", 'id'=>$model->id)));
But how do I do this in a controller?
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array("controller/action));

         
        
          
        
           
           
           
         
         
            
            
          
       
      
        
          
          
            perochak
            (Amjad Mughal)
          
          
          
              
              
          2
          
         
        
          I think this is not possible as docs says
Docs
         
        
        
           
           
           
         
         
            
            
          
       
      
        
          
          
            elbek
            (Elbek Kamoliddinov)
          
          
          
              
              
          3
          
         
        
          Just include the page in your controller, don’t make any request sending. I think you can not forward request in php.
         
        
        
           
           
           
         
         
            
            
          
       
      
        
          
          
            Lyels
            
          
          
          
              
              
          4
          
         
        
          It was worth a try, thanks.