2017 © Pedro Peláez
 

library drago

Extending for Nette Framework.

image

drago-fw/drago

Extending for Nette Framework.

  • Wednesday, August 9, 2017
  • by accgit
  • Repository
  • 1 Watchers
  • 0 Stars
  • 162 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Drago Application

The Drago Extension is a package built on top of the Nette Framework, designed to provide several useful components for your web applications. Below are the classes in the extension and how you can use them., (*1)

License: MIT PHP version Coding Style CodeFactor, (*2)

Technology

  • PHP 8.3 or higher
  • composer

Installation

composer require drago-ex/application

Check if there is a pair signal receiver and name (default is edit).

$this->getSignal();

Is AJAX request?

Shorter method in control., (*3)

$this->isAjax();

Retrieves a form component by its name.

$form = $this['factory'];
$submitButton = $this->getFormComponent($form, 'submit');
$submitButton->setCaption('Edit');

Base template class extending Nette Template.

It is used in the bow of presenters or control, (*4)

/**
 * @property-read Drago\Application\UI\ExtraTemplate $template
 */
class Presenter {}

In Latte, we will use these macros to insert into the template, which will tell us the variables and types that can be used by default in the template., (*5)

{templateType Drago\Application\UI\ExtraTemplate}
{varType Drago\Application\UI\Flashes[] $flashes}



{$flash->message}

Flash message alert type

The Versions