1. Go to this page and download the library: Download tutida/altair 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/ */
tutida / altair example snippets
class AppController extends Controller
{
public function initialize()
{
$this->loadComponent('Altair.Altair');
}
...
}
class UsersController extends AppController
{
public function add()
{
$user = $this->Users->newEntity();
...
$user->escape = false;
$this->set('user', $user);
}
...
}
class UsersController extends AppController
{
public function add()
{
$user = $this->Users->newEntity();
...
// Not escape $viewVars in this action.
$this->Altair->escape(false);
$this->set('user', $user);
}
...
}
<?= h($variable);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.