neodev3/yii2-iframe-viewer

This will render website in iframe and auto resize according to the content.

Installs: 254

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0 2021-02-07 10:35 UTC

This package is auto-updated.

Last update: 2024-09-07 18:31:20 UTC


README

This will render website in iframe and auto resize according to the content.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist neodev3/yii2-iframe-viewer "*"

or add

"neodev3/yii2-iframe-viewer": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

use neo\iframeviewer\IframeWidget;
<?=  IframeWidget::widget([
                    'options' => [
                       'src' => 'http://127.0.0.1/your-website/survey/default/link?id=14&isIframe=1'
                    ],
                ]); ?>```