phabion
            (Trinhduyhung1985)
          
          
          
              
              
          1
          
         
        
          Hi there!
I’m trying to put my logo into the TbNavBar so I put this code
$this->widget('bootstrap.widgets.TbNavbar', array(                       
      'brand' => '<img src =" <?php echo Yii::app()->request->baseUrl; ?>/images/logo.jpg" />',
      ...
But the image doesn’t appear as expected.
4115
Capture.PNG
Any suggestion would be appreciated!
Cheers.
         
        
          
        
           
           
           
         
         
            
            
          
       
      
        
          
          
            softark
            (Softark)
          
          
          
              
              
          2
          
         
        
          Hi Trinh,
I think "echo" is causing the trouble. Try instead:
$this->widget('bootstrap.widgets.TbNavbar', array(                       
      'brand' => '<img src ="' . Yii::app()->request->baseUrl . '/images/logo.jpg" />',
      ...
         
        
        
           
           
           
         
         
            
            
          
       
      
        
          
          
            andy_s
            (Arekandrei)
          
          
          
              
              
          4
          
         
        
          Yii way 
'brand'=>CHtml::image(Yii::app()->getBaseUrl().'/images/logo.jpg'),
Generates missing alt="" for free 