view params alternative value if not set |
[eluser]helle[/eluser]
Hi, is there a way to do something like this in that notation? {param|"hallo world"} which means if param is not set, hello world will be displayed in the view instead.
[eluser]danmontgomery[/eluser]
if you're using form_validation, you can use set_value(). If not: Code: echo (isset($param) ? $param : 'hello world'); |
Welcome Guest, Not a member yet? Register Sign In |