PHP code example of vtr / mvc
1. Go to this page and download the library: Download vtr/mvc library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vtr / mvc example snippets
$url = isset($_GET["_url"]) ? $_GET["_url"] : ""; // URL passing by .htaccess
$app = new VTRMVC\Core\App();
$app->start("../public/app.json", $url);
}catch (Exception $ex) {
VTRMVC\Util\Util::varzx($ex->getMessage());
}
App Folder/
|
├── Controller/ # Controllers folder
| ├── AppController.php
| └── HomeController.php
├── Model/ # Models folder
| ├── AppModel.php
| └── HomeModel.php
└── View/ # Views folder
└── Home/
└── index.php