php - get a image for yii array -


i new 1 yii framework.i created menu way

array('class' => 'bootstrap.widgets.tbmenu',                              'items' => array(                                  array('label' => 'home', 'url' => array('/site')),                                  array('label' => 'display menu', 'url' => array('/admin/displaymenu')),                                 array('label' => 'reports', 'url' => array('/admin/reports')), ),                           ), 

this working.but need replace home, display menu, reports images.i using chtml::image also.but not working.please can me solving problem.thank prompt support.

along using chtml::image try setting encodelabel false,

... 'encodelabel'=>false, 

or try doing

array('class' => 'bootstrap.widgets.tbmenu',      'encodelabel'=>false,     'items' => array(          array('label' => '<img src="'.yii::app()->request->baseurl.'/your_image.png" />', 'url' => array('/site')),          .....     ), ), 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -