PHP code example of drago-ex / application
1. Go to this page and download the library: Download drago-ex/application 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/ */
drago-ex / application example snippets
$this->getSignal();
$this->isAjax();
$form = $this['factory'];
$submitButton = $this->getFormComponent($form, 'submit');
$submitButton->setCaption('Edit');
/**
* @property-read Drago\Application\UI\ExtraTemplate $template
*/
class Presenter {}
latte
{templateType Drago\Application\UI\ExtraTemplate}
{varType Drago\Application\UI\Flashes[] $flashes}
<div n:foreach="$flashes as $flash" n:class="flash, $flash->type">{$flash->message}</div>