php - How do I `use` a namespace in Yii and HAML? -


i'm using mthaml , yii. have following lines.

-use yii\helpers\url %a{:href => url::toroute(['shopping/ping', 'id' => (string)$item->productid, 'category' => (string)$item->primarycategory->categoryid])} test 

however gives error.

syntax error, unexpected 'use' (t_use)

<?php  function __mthamltemplate_65307eb071e28021db686cb46d491c8faae477235051858b05f212731637dd40($__variables) {     extract($__variables); ?><?php use yii\helpers\url; ?> 

i fixed bug today.
update package running:

composer update 

or download latest release 0.1.3 github


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -