Can someone shed some light on why this condition ain’t working, the condition never meets. I tried with other attributes but it always chooses the not true.
I tried to put quotes on "1", single, double, I tried with !==1 which prints yes for everything, while ==1 prints no.
Guys thanks for the help, but still no luck, I tried making a method in my model. The quote thing is a mistake while uploading it here (changed it). I tried all the solutions posted. The only new info I have come across is that it actually takes the value of the 1st row and just uses it for the rest. However this ‘value’=>$model->published, displays correctly.