class AppController extends \vendor\core\base\Controller{
public static $App;
public function __construct(){
self::$App = App::$App;
}
}
self::$App->NameClass->Method
var data = form.serialize();
$.ajax({
type: "POST",
async: true,
url: 'http://mySite/api/users/?action=create',
cache: false,
data: data,
success: function(data){
// обрабатываем ответ
}
});