PHP code example of icanboogie / bind-view
1. Go to this page and download the library: Download icanboogie/bind-view 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/ */
icanboogie / bind-view example snippets
use ICanBoogie\Routing\Controller;
class ArticlesController extends Controller
{
use Controller\ResourceTrait;
protected function index()
{
$this->view->content = $this->model->own->visible->ordered->limit(10);
$this->view['title'] = "Ten last articles";
}
}