final public function file($_) {
        $args = func_get_args();

        if (count($args) > 3) {
            for ($i = 3; $i < count($args); $i++) {
                unset($args[$i]);
            }
        }

        switch (count($args)) {
            case 1:
                $this->viewFile[2] = Util::camelToHyphen($args[0]);
                break;
            case 2:
                $this->viewFile[1] = Util::camelToHyphen($args[0]);
                $this->viewFile[2] = Util::camelToHyphen($args[1]);
                break;
            case 3:
                $this->viewFile[0] = ucfirst(Util::hyphenToCamel($args[0]));
                $this->viewFile[1] = Util::camelToHyphen($args[1]);
                $this->viewFile[2] = Util::camelToHyphen($args[2]);
                break;
        }

        return $this;
    }
final public function file($_) {
        $args = func_get_args();

        if (count($args) > 3) {
            for ($i = 3; $i < count($args); $i++) {
                unset($args[$i]);
            }
        }

        switch (count($args)) {
            case 1:
                $this->viewFile[2] = Util::camelToHyphen($args[0]);
                break;
            case 2:
                $this->viewFile[1] = Util::camelToHyphen($args[0]);
                $this->viewFile[2] = Util::camelToHyphen($args[1]);
                break;
            case 3:
                $this->viewFile[0] = ucfirst(Util::hyphenToCamel($args[0]));
                $this->viewFile[1] = Util::camelToHyphen($args[1]);
                $this->viewFile[2] = Util::camelToHyphen($args[2]);
                break;
        }

        return $this;
    }
final public function file ( $ _ ) { $ args = func_get_args ( ) ; if ( count ( $ args ) > 3 ) { for ( $ i = 3 ; $ i < count ( $ args ) ; $ i ++ ) { unset ( $ args [ $ i ] ) ; } } switch ( count ( $ args ) ) { case 1 : $ this -> viewFile [ 2 ] = Util :: camelToHyphen ( $ args [ 0 ] ) ; break ; case 2 : $ this -> viewFile [ 1 ] = Util :: camelToHyphen ( $ args [ 0 ] ) ; $ this -> viewFile [ 2 ] = Util :: camelToHyphen ( $ args [ 1 ] ) ; break ; case 3 : $ this -> viewFile [ 0 ] = ucfirst ( Util :: hyphenToCamel ( $ args [ 0 ] ) ) ; $ this -> viewFile [ 1 ] = Util :: camelToHyphen ( $ args [ 1 ] ) ; $ this -> viewFile [ 2 ] = Util :: camelToHyphen ( $ args [ 2 ] ) ; break ; } return $ this ; }
Determines which action's view to use instead of current's
@param string $_ You may pass 1 to 3 parameters as [module],[controller],action
@return View
Determines which action s view to use instead of current s