PHP code example of stateless / cms
1. Go to this page and download the library: Download stateless/cms 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/ */
stateless / cms example snippets
namespace Stateless;
namespace Stateless;
)) {
case "/":
echo "Home";
break;
case "/about":
echo "Read all about us!";
break;
case "/contact":
echo "Contact us.";
break;
default:
Response::header(404);
echo "Page not found.";
break;
}
|- app
|- Controller
|- Form
|- FormInput
|- Layout
|- Menu
|- Model
|- View
|- app.php
|- functions.php
|- conf
|- app.conf.php
|- public
|- css
|- js
|- .htaccess
|- index.php
|- vendor
|- stateless