Welcome Guest, Not a member yet? Register   Sign In
Parser and if statement
#15

(04-15-2016, 07:25 PM)kilishan Wrote: I don't know exactly what your client has requested, but PHP still works inside the parser, IIRC. So you could do the if statement with straight PHP, keeping the rest of it to using the parser.

But I can't use this in view:

PHP Code:
<?php if($var==1)
{
echo 
"active";
}
esle
{
echo 
"disabled";
}
?>

I have to use without any php.
Reply


Messages In This Thread
Parser and if statement - by sasatozovic - 04-15-2016, 08:22 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 08:32 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 08:41 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 08:46 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 08:53 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 09:04 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 09:10 AM
RE: Parser and if statement - by PaulD - 04-15-2016, 09:52 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 10:16 AM
RE: Parser and if statement - by albertleao - 04-15-2016, 11:36 AM
RE: Parser and if statement - by dmyers - 04-15-2016, 11:03 AM
RE: Parser and if statement - by ivantcholakov - 04-15-2016, 11:35 AM
RE: Parser and if statement - by InsiteFX - 04-15-2016, 06:41 PM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 04:22 AM
RE: Parser and if statement - by kilishan - 04-15-2016, 07:25 PM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 04:07 AM
RE: Parser and if statement - by Tpojka - 04-16-2016, 06:45 AM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 07:08 AM
RE: Parser and if statement - by InsiteFX - 04-16-2016, 10:53 AM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB