PHP code example of wallrio / directly
1. Go to this page and download the library: Download wallrio/directly 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/ */
wallrio / directly example snippets
irectly\Directly as Directly;
$directly = new Directly('application');
$directly->run('/');
/your-directory-project
|
|--application/
| |
| |--error
| | |--404
| | |--view.php
| |
| |--global
| | |--header.php
| | |--footer.php
| |
| |--inc
| | |--menu.php
| |
| |--view
| |--home
| |--view.php
| |--about
| |--view.php
| |--contact
| |--view.php
|
|--- .htaccess
|--- index.php