fuel_var is not working with if condition

edited November 2011 in Bug Reports
Hi,

I am trying to compare if(fuel_var('curr_page') != 'home') But it's not working properly.
I have print the fuel_var('curr_page') and it's printing "home" even though condition becoming true.

Even this kind of condition is also not working. --> if(fuel_var('curr_page') != '')

Comments

  • edited 9:44AM
    In your case, just use $curr_page instead of fuel_var('curr_page'). fuel_var should be used for output only because it will output additional code for the inline editing to work.
  • edited 9:44AM
    thanks, work perfectly
Sign In or Register to comment.