PHP code example of natanaelsimoes / zeus-framework
1. Go to this page and download the library: Download natanaelsimoes/zeus-framework 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/ */
natanaelsimoes / zeus-framework example snippets
namespace MyBlog;
class Post
{
/** @Route("post/show/$id") */
public static function show($id)
{
// code goes here
}
/** @Route("post/create") */
public static function create()
{
// code goes here
}
/** @Route("post/edit/$id") */
public static function edit($id)
{
// code goes here
}
}
amework::start();
/** @Route("post/create") */
public static function create()
{
Zeus\Cache::getInstance()->getCache();
// code goes here
Zeus\Cache::getInstance()->setCache();
}