Welcome Guest, Not a member yet? Register   Sign In
Template Parser, if statement?
#1

[eluser]mikepuerto[/eluser]
Hello,

Let me start out by saying I'm new here Wink I've recently started learning CI and have had some fun with it so far... Anyhow...

I'm using the template parser with data from mysql. Some columns may or may not be null... My question is, is there a way to check if the var is empty without using regular php? for example, with foreach I know I can use:

Code:
{result}
{some_column}
{/result}

I'm trying to get around outputting a bunch of empty html tags for columns that are null, while keeping the view files as clean as possible.

Thanks,
Mike


Messages In This Thread
Template Parser, if statement? - by El Forum - 12-15-2009, 05:44 PM
Template Parser, if statement? - by El Forum - 12-15-2009, 11:55 PM
Template Parser, if statement? - by El Forum - 12-16-2009, 05:14 AM
Template Parser, if statement? - by El Forum - 12-16-2009, 06:54 AM
Template Parser, if statement? - by El Forum - 12-16-2009, 08:48 AM
Template Parser, if statement? - by El Forum - 12-16-2009, 01:02 PM
Template Parser, if statement? - by El Forum - 12-17-2009, 04:55 AM
Template Parser, if statement? - by El Forum - 12-18-2009, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB