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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -