Welcome Guest, Not a member yet? Register   Sign In
view params alternative value if not set
#1

[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.
#2

[eluser]danmontgomery[/eluser]
if you're using form_validation, you can use set_value(). If not:

Code:
echo (isset($param) ? $param : 'hello world');




Theme © iAndrew 2016 - Forum software by © MyBB