Welcome Guest, Not a member yet? Register   Sign In
Optional Default Value
#6

(03-01-2015, 06:08 AM)miiikkeyyyy Wrote: Thank you, mate. I used your method, slightly differently.
I'm trying to keep the as much if/else statements out of the view files so I added to the controller.

Adding the if/else to the controller is definitely the right way to do go. Just added it above you HTML for simplicity in showing how to do it Smile
Reply


Messages In This Thread
Optional Default Value - by miiikkeyyyy - 02-28-2015, 09:24 AM
RE: Optional Default Value - by silentium - 02-28-2015, 01:00 PM
RE: Optional Default Value - by miiikkeyyyy - 03-01-2015, 06:08 AM
RE: Optional Default Value - by silentium - 03-01-2015, 04:11 PM
RE: Optional Default Value - by RobertSF - 02-28-2015, 04:49 PM
RE: Optional Default Value - by SomeGuy - 02-28-2015, 07:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB