Robert Marshall 9 anos atrás
pai
commit
a2c3893229
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      base/Application.php

+ 2 - 1
base/Application.php

@@ -68,10 +68,11 @@ class Application{
 	
 	private function ActualLoadPage($page,$action,$params){
 		$this->_controller=$this->LoadController($page);
+		$controller=get_class($this->_controller);
 		if (!method_exists($this->_controller, $action))
 			$action="Index";
 		
-		$rm=new ReflectionMethod($page, $action);
+		$rm=new ReflectionMethod($controller, $action);
 		$methodParams=$rm->getParameters();
 		
 		//Old behaviour detection, please seek to remove