is not equal to update, why do I get a “Trying to get property of a non object on line 3 ?” I mean, yes, I know there’s no object property named like that, but I’m not getting why is Yii checking that line anyway?
I’m not using <? but <?= with is the same as <?php echo.
The issue relies on my bad server side and client side interpretation. The third (3) IF will ALWAYS run, regardless the javascript conditionals, because, it will run BEFORE the javascript arrives to the client for interpretation. Hence, I’m always getting that error.
What would be a proper way to deal with this ? Should we use some sort of intermediary language on this case, like json ?