Skip to content

xandrkat/yii2-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Extended Helpers for Yii2 Framework

Extended Helpers for Yii2 Framework

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist xandrkat/yii2-helpers "*"

*************

composer require xandrkat/yii2-helpers 

or add

"xandrkat/yii2-helpers": "*"

to the require section of your composer.json file.

Usage

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

<?= \xandrkat\helpers\Html::beginDiv(['class' => 'sample-class']); ?>
<?= \xandrkat\helpers\Html::beginP(['class' => 'sample-class']); ?>
<?= \xandrkat\helpers\Html::begin<any>(['class' => 'sample-class']); ?>

// content/any ***

<?= \xandrkat\helpers\Bootstrap::endDiv(); ?>
<?= \xandrkat\helpers\Bootstrap::endP(); ?>
<?= \xandrkat\helpers\Bootstrap::end<any>(); ?>

//or

<?= \xandrkat\helpers\Html::div($content, $attribs); ?>
<?= \xandrkat\helpers\Html::<any>($content, $attribs); ?>

About

Extended Helpers for Yii2 Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages