Welcome to OctoMS
A self-documenting MVC PHP framework with a tiny footprint
A self-documenting MVC PHP framework with a tiny footprint
| main model: index() | |||||||
|---|---|---|---|---|---|---|---|
Description |
|||||||
About OctoMSThis is a light-weight PHP framework inspired by CodeIgniter. If the app is in development mode this wizard interface will be shown for uncaught exceptions and on-demand. This interface contains a debugging window (with routing rules, arguments, source code, request headers and other information) and a search window. You can search through the entire application or specify a search location:
|
|||||||
|
|||||||
Examples |
|||||||
|
⇑
How to deploy.
No examples provided.
|
|||||||
| D:\Server\www\app\stages\main\controllers\main.inc |
| Routing Rule | Routing Path |
|---|
| Script information | |
|---|---|
| Stage | main |
| Controller | main |
| Method | index |
| Arguments | [] |
| Full path | D:\Server\www\app\stages\main\controllers\main.inc |
| 1 | function index($arg = null) { |
| 2 | /* @var $view view_cl*/ |
| 3 | $view = $this->_('view'); |
| 4 | |
| 5 | // Uncaught exception |
| 6 | if ('error' === $arg) { |
| 7 | throw new Exception('Something went wrong', 13); |
| 8 | } |
| 9 | |
| 10 | // Display the template |
| 11 | $view->display( |
| 12 | 'index.tpl', |
| 13 | array('args' => func_get_args()) |
| 14 | ); |
| 15 | }// end |
| Available tools | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Objects | view(core library) error(core library) input(core library) | ||||||||||
| Helpers | encrypt(core helper) recursion(core helper) html(core helper) | ||||||||||
| Functions | flag, lang, debugging, help, octoms, blowfish_encrypt, blowfish_decrypt, tiny, untiny, ago, array_depth, array_flat, array_is_assoc, array_structure, array_to_object, array_to_xml, ini, object_to_array, remove_dir, typeof, a, baseurl, button, cdata, css, form, highlight, highlight_line, i18n_baseurl, img, input, js, l, label, lang_select, lnk, radio, rule, select, submit, t, tag, textarea, validate | ||||||||||
| Performance | |||||||||||
| Execution time | 0.001888037 seconds | ||||||||||
| Memory (peak) | 0.66 MB (688,440 Bytes) | ||||||||||
| Memory (average) | 0.65 MB (686,816 Bytes) | ||||||||||
| Variables | |||||||||||
|
⇑
GET
|
|||||||||||
|
⇑
POST
|
|||||||||||
| Output | |||||||||||
|
⇑
Headers
X-Powered-By: PHP/7.3.21
Host: localhost Accept: */* User_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
⇑
Content
<!DOCTYPE HTML>
<html> ... |
|||||||||||