Welcome Guest, Not a member yet? Register   Sign In
new to MVC
#5

[eluser]jochemvn[/eluser]
Thanks again for your quick response...

You last remark is exactly what I was thinking...

[quote author="sofwan" date="1278076345"]
But for another example, getting an array of a table, it results 2 different kind values, one is array (Data is exist) another is a single variable (No data inside). You can add if .. else in your view to display the value.[/quote]

However I wasn't sure if that was correct in the MVC structure, but aparanteley it is, right?

Check if the variable is an array. If it isn't then display some message (no data available) otherwise loop throught the array and display the data


Messages In This Thread
new to MVC - by El Forum - 07-01-2010, 11:56 PM
new to MVC - by El Forum - 07-02-2010, 01:21 AM
new to MVC - by El Forum - 07-02-2010, 01:34 AM
new to MVC - by El Forum - 07-02-2010, 02:12 AM
new to MVC - by El Forum - 07-02-2010, 03:05 AM
new to MVC - by El Forum - 07-02-2010, 10:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB