Skip to the content
Documentation

Warnings

No ratings yet

It's a little too bad there's no way to avoid a warning when the variable we're fetching is not set ...

Comments (5 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: Warnings

    James Robertson ·

    You only recieve a warning? I get see an error. Most annoying!

    1. Re: Re: Warnings

      Patrick Kaiser ·

      using 3.7.4 and getting an error as well. even testing for the existence fo a get/post var throws an error:
      {if ezhttp( 'myvar', 'get' ) } => returns false, but throws error
      the same with {if is_set( ezhttp( 'myvar', 'get' ) )}
      its a bug in my opinion..

  2. Re: Warnings

    VaL ·

    you can use in 3.9 (trunk) like:
    ezhttp_hasvariable( 'getVar','get' )
    or
    ezhttp( 'getVar','get','hasVariable' )

    1. Re: Re: Warnings

      Vids ·

      Yap this works perfectly! I'm not getting error anymore!
      Thanks

    2. Re: Re: Warnings

      muro ·

      Hi I use in 4.3
      I'm troubling use ezhttp_hasvariable( 'getVar','get' )
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      {set $search_text = ezhttp( 'searchtext' ,'get' ,'hasVariable')}
      <form>
      <input id="searchtext" name="searchtext" type="text" value="{$search_text|wash}" size="35" />
      </form>
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      set 'input tag value' as '1'
      I hope , set 'input tag value' as '$searchtext'
      if i use ezhttp( 'getVar','get' )
      set 'input tag value' as '$searchtext'