PHP code example of clthck / cakephp-jade
1. Go to this page and download the library: Download clthck/cakephp-jade 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/ */
clthck / cakephp-jade example snippets
Plugin::load('JadeView');
public function initialize()
{
parent::initialize();
$this->viewBuilder()
->className('JadeView.Jade')
->options(['pretty' => false]);
}
...
use JadeView\View\JadeView;
...
class AppView extends JadeView
{
...
public function initialize()
{
$this->viewOptions([
'pretty' => true
]);
parent::initialize();
$this->loadHelper('Form', [
'templates' => 'form_template'
]);
}
}
= $view->Flash->render()