2017 © Pedro Peláez
 

library dialogcomponent

Simple Dialog Component for Yii2

image

ctrl937q/dialogcomponent

Simple Dialog Component for Yii2

  • Monday, September 4, 2017
  • by Ctrl937q
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Dialog

This is Dialog component for Yii2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either add:

"require": {  
    "ctrl937q/dialogcomponent": "dev-master"  
}  

of your composer.json file, and this to web.php:, (*3)

$config = [
    'components' => [
        'DialogComponent' => [
            'class' => 'ctrl937q\dialogcomponent\DialogComponent',
        ],

    ]
];

Usage

add this on top your php document:, (*4)

<?php
Yii::$app->DialogComponent->registerDialog($this);
?>

and this on bottom:, (*5)

<?php 
Yii::$app->DialogComponent->addJSFunc();
?>

Example:

DialogComponent->registerDialog($this);
?>
<body>


Body Dialog

some text
</body> <?php Yii::$app->DialogComponent->addJSFunc();

Result:

alt text, (*6)

The Versions

04/09 2017

dev-master

9999999-dev

Simple Dialog Component for Yii2

  Sources   Download

The Requires