foreach question. |
I have a list of my $positions = array() in array below
PHP Code: $positions = array( In my foreach loop it gets the positions that are set in the database and then loads the view for it. But because a position may not be set in database it throws error like Undefined variable: column_right How can I make it not throw that type of error if can not find position then should be some thing like PHP Code: $data['column_right'] = $this->load->view('column_right', '', TRUE); PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
foreach question. - by wolfgang1983 - 04-16-2017, 02:59 AM
RE: foreach question. - by PaulD - 04-16-2017, 03:49 AM
RE: foreach question. - by wolfgang1983 - 04-16-2017, 03:15 PM
|