public function getRequestedController($default = null)
	{
		if (property_exists($this, 'app') && is_object($this->app) && property_exists($this->app, 'controller')) {
			return $this->app->controller;
		} elseif (!empty($default)) {
			return $default;
		} else {
			$reflect = new \ReflectionClass($this);
			return strtolower($reflect->getShortName());
		}
	}
public function getRequestedController($default = null)
	{
		if (property_exists($this, 'app') && is_object($this->app) && property_exists($this->app, 'controller')) {
			return $this->app->controller;
		} elseif (!empty($default)) {
			return $default;
		} else {
			$reflect = new \ReflectionClass($this);
			return strtolower($reflect->getShortName());
		}
	}
public function getRequestedController ( $ default = null ) { if ( property_exists ( $ this , 'app' ) && is_object ( $ this -> app ) && property_exists ( $ this -> app , 'controller' ) ) { return $ this -> app -> controller ; } elseif ( ! empty ( $ default ) ) { return $ default ; } else { $ reflect = new \ ReflectionClass ( $ this ) ; return strtolower ( $ reflect -> getShortName ( ) ) ; } }
Which controller was requested?

@param null $default
@return null|string
Which controller was requested?