Namespace MvcCore
MvcCore\Ext |
Config | Core configuration: - config files reading: - reading config.ini file by relative path - parsing and typing ini data into stdClass/array by key types - typing ini values into integers, floats, booleans or strings - environment management: - simple environment name detection by comparing server and client ip - environment name detection by config records about computer name or ip |
Controller | Application controller: - template methods: (necessary to call parent at method begin) - Init() - called after controller is created - session start - all internal variables initialized except view - PreDispatch() - called after Init, before every controller action - view initialization - internal actions: - AssetAction() - handling internal MvcCore http request to get assets from packed package - url proxy method, reading request param proxy method - view rendering or no-rendering management - http responses and redirects management - basic error responses rendering - request termination (to write and close session) |
Debug | Core debug tools - printing any value by var_dump(); in fixed bar at browser window right bottom border - timing printing - debuging shortcut functions initialization - exceptions hdd logging or printing in development mode |
Model | Core model - reading 'db' section from system config.ini - database PDO connecting by config settings and index - instance loaded variables initializing - instance initialized values reading - virtual calls/sets and gets handling |
Request | Core request: - linear request url parsing from $_SERVER into local properties describing url sections - params reading from $_GET/$_POST or direct input (in JSON or in query string) - params cleaning by developer rules |
Response | Core response: - http response wrapper carrying response headers and response body - sending response at application terminate process by Send(); method - completing MvcCore performance custom header at response sending |
Route | Core route: - describing request input, url output, controller/action target and default params - required properties to set: - Pattern - classic preg_match() pattern including border '#' characters, containing char groups - Reverse - url form with {%param} replacements where to insert param values from url method - Controller - controller to create and dispatch or view directory name, pascal case - Action - controller action to execute or view name to render, pascal case - Name - 'Controller:Action' or any custom route name how to create url in application by Url() method - Params - default params to set before controller/action dispatching if no params in request |
Router | Core router: - main store for all routes - application request routing process before request dispatching in core - currently matched route store - application url completing - by configured routes into mod_rewrite form - or into query string form, containing controller and action params - params query string building - primitive param value or array value representation possible |
Session | Core session: - session safe starting - session writing and closing - by registered shutdown function - \MvcCore\Session::Close() - how to register the handler - close handler called registered by \MvcCore::Terminate(); - session namespaces management - variables expiration by seconds - variables expiration by request hoops |
Tool | Core tools: - translating cases (with folders support): - dashed-case to PascalCase - PascalCase to dashed-case - unserscore_case to PascalCase - PascalCase to unserscore_case - JSON safe encode/decode |
View | Core view: - static doctype storage - static storage for dir names with view scripts - possible to use for any controller/subcontroller/control/\MvcCore\Ext\Form - view prerender preparing and rendering - direct code evaluation - view helpers management - creating by predefined class names bases - instance storing and calling - views sub scripts relative path solving - Url() proxy method, AssetUrl() proxy method - magic calls: - __call() - helpers handling - __set() - to set anything in controller to get it back in view - __get() - to get anything in view previously completed in controller - no special view language implemented... why to use such stupid things... |