public function setDefaults($defaultController = 'Index', $defaultAction = 'index')
    {
        $this->defaultController = $defaultController;
        $this->defaultAction = $defaultAction;
        
        return $this;
    }
public function setDefaults($defaultController = 'Index', $defaultAction = 'index')
    {
        $this->defaultController = $defaultController;
        $this->defaultAction = $defaultAction;
        
        return $this;
    }
public function setDefaults ( $ defaultController = 'Index' , $ defaultAction = 'index' ) { $ this -> defaultController = $ defaultController ; $ this -> defaultAction = $ defaultAction ; return $ this ; }
Set the default controller and action

@param string $defaultController
The default controller name if nothing is provided by request
@param string $defaultAction
The default action name if nothing is provided by request
@return Application Current application instance
Set the default controller and action