PHP code example of dersonsena / yii2-skeleton
1. Go to this page and download the library: Download dersonsena/yii2-skeleton 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/ */
dersonsena / yii2-skeleton example snippets
return [
// other routes...
'specific/route/to/cohesive/a/controller' => 'cohesive-xpto-routine'
];
namespace App\Controllers;
use App\Core\Controller\CohesiveController;
class CohesiveXptoRoutineController extends CohesiveController
{
public function handle()
{
// your cohesive and specific implementation here =)
}
}
php composer.phar create-project dersonsena/yii2-skeleton skeleton