PHP code example of junkins / tongue
1. Go to this page and download the library: Download junkins/tongue 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/ */
junkins / tongue example snippets
// PostsController.php
public $components = [
'Tongue.Tongue'
];
public function view(TNumeric $id) { // <= TypeHinting!!!
$post = $this->Post->findById($id);
$this->set(compact('post'));
}