library/core/class.request.php
public function WithControllerMethod($Controller, $Method = NULL, $Args = array()) {
      if (is_a($Controller, 'Gdn_Controller')) {
         // Convert object to string
         $Matches = array();
         preg_match('/^(.*)Controller$/',get_class($Controller),$Matches);
         $Controller = $Matches[1];
      }
      
      $Method = is_null($Method) ? 'index' : $Method;
      $Path = trim(implode('/',array_merge(array($Controller,$Method),$Args)),'/');
      $this->_EnvironmentElement('URI', $Path);
      return $this;
   }
public function WithControllerMethod($Controller, $Method = NULL, $Args = array()) {
      if (is_a($Controller, 'Gdn_Controller')) {
         // Convert object to string
         $Matches = array();
         preg_match('/^(.*)Controller$/',get_class($Controller),$Matches);
         $Controller = $Matches[1];
      }
      
      $Method = is_null($Method) ? 'index' : $Method;
      $Path = trim(implode('/',array_merge(array($Controller,$Method),$Args)),'/');
      $this->_EnvironmentElement('URI', $Path);
      return $this;
   }
public function WithControllerMethod ( $ Controller , $ Method = NULL , $ Args = array ( ) ) { if ( is_a ( $ Controller , 'Gdn_Controller' ) ) { // Convert object to string $ Matches = array ( ) ; preg_match ( '/^(.*)Controller$/' , get_class ( $ Controller ) , $ Matches ) ; $ Controller = $ Matches [ 1 ] ; } $ Method = is_null ( $ Method ) ? 'index' : $ Method ; $ Path = trim ( implode ( '/' , array_merge ( array ( $ Controller , $ Method ) , $ Args ) ) , '/' ) ; $ this -> _EnvironmentElement ( 'URI' , $ Path ) ; return $ this ; }
Chainable URI Setter, source is a controller + method + args list

@param $Controller Gdn_Controller Object or string controller name.
@param $Method Optional name of the method to call. Omit or NULL for default (Index).
@param $Args Optional argument list to forward to the method. Omit for none.
@flow chain
@return Gdn_Request
Chainable URI Setter source is a controller + method + args list