2017 © Pedro Peláez
 

yii2-extension yii2-urlasset

Url Asset for Yii2 just like AssetBundle except it will work for creating menu for site module dynamically.

image

mithun12000/yii2-urlasset

Url Asset for Yii2 just like AssetBundle except it will work for creating menu for site module dynamically.

  • Friday, February 9, 2018
  • by mithun12000
  • Repository
  • 2 Watchers
  • 1 Stars
  • 620 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2-UrlAsset

Url Asset for Yii2 just like AssetBundle except it will work for creating menu for site module dynamically., (*1)

Installation

Using composer, (*2)

"require": {
    ...other dependency...  
    "mithun12000/yii2-urlasset":"*"
},

Add as extension. Code:, (*3)


'UrlAsset' => [ 'name' => 'UrlAsset', 'version' => '1.0', 'alias' => [ '@yii/UrlAsset/' => [EXTENSION_PATH] '/UrlAsset', ], ],

Configure

In Layout / view file., (*4)

use Yii\UrlAsset\component\UrlAsset;
$urls = new UrlAsset(['assetFile'=>'AppUrlAsset']); //default file for search is AppUrlAsset.php with namespace can be configurable. 
$urls->registerAll($this);
$urls->setParams($this);

//to get all menu item.
$menuitems = $this->params['urls'];

The Versions

09/02 2018

dev-master

9999999-dev

Url Asset for Yii2 just like AssetBundle except it will work for creating menu for site module dynamically.

  Sources   Download

MIT GPLv2

The Requires

 

url yii2 helper asset view

12/11 2014

1.0.0

1.0.0.0

Url Asset for Yii2 just like AssetBundle except it will work for creating menu for site module dynamically.

  Sources   Download

GPLv2

The Requires

 

url yii2 helper asset view