Welcome Guest, Not a member yet? Register   Sign In
[Thanks All For Advice] Checking if isset is correct?
#7

If you (auto)load the array helper, you could also use the element() function.
Usage:

PHP Code:
$navbar element('navbar',$view,FALSE);
if ( 
$navbar$this->load->view($navbar);
//Explanation: if the array element $view['navbar'] exists, it returns it's value; otherwise it returns FALSE. 
Reply


Messages In This Thread
RE: Checking if isset is correct? - by JayAdra - 09-09-2016, 04:39 AM
RE: Checking if isset is correct? - by InsiteFX - 09-09-2016, 04:55 AM
RE: Checking if isset is correct? - by PaulD - 09-10-2016, 11:50 AM
RE: Checking if isset is correct? - by Wouter60 - 09-11-2016, 10:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB