src/Ultra/Router/Route.php
private static function loadController($pointer)
    {
        // Get the Class/Method to use
        $controllerData = $pointer['uses'];
        $parts = explode('@', $controllerData);
        $controller = "UltraPress\\Controllers\\$parts[0]";
        $method = $parts[1];
        $obj = new $controller;

        // Execute the method
        $obj->$method();
    }
private static function loadController($pointer)
    {
        // Get the Class/Method to use
        $controllerData = $pointer['uses'];
        $parts = explode('@', $controllerData);
        $controller = "UltraPress\\Controllers\\$parts[0]";
        $method = $parts[1];
        $obj = new $controller;

        // Execute the method
        $obj->$method();
    }
private static function loadController ( $ pointer ) { // Get the Class/Method to use $ controllerData = $ pointer [ 'uses' ] ; $ parts = explode ( '@' , $ controllerData ) ; $ controller = "UltraPress\\Controllers\\$parts[0]" ; $ method = $ parts [ 1 ] ; $ obj = new $ controller ; // Execute the method $ obj -> $ method ( ) ; }
Get a controller action
from the supplied string.

@param string $pointer The 'controller@action string
Get a controller action from the supplied string .