Passing two arrays into a view (codeigniter)

Here is a post which will show you how to pass two arrays into a view in codeigniter: Controller: function dashboard(){ $this->load->model(‘golf_db’); $user_id = $this->session->userdata(‘user_id’); $data['last_round'] = $this->golf_db->get_last_round($user_id); $data['leaderboard'] = $this->golf_db->get_leaderboard(); $this->load->view(‘dashboard’,$data); } View: < ?php echo $last_round[0]->round_week; //echo $round_week; ?> < ?php echo $last_round[0]->round_course; ?> < ?php echo $last_round[0]->round_score; ?> The Fix Instead of [...]



Gravity Form do_shortcode not working, the instant fix!

I was recently messing around with gravity forms for a form in my footer. I was bugged by the annoying function do_shortcode. For the life of me I could not figure out why the form would not show up. Finally I figured out that in order to use the do_shortcode function you have to echo the [...]





Google’s New Navigation Bar

Recently Google added a new way of navigating the different modules of the Goog network. Previously Google had it’s site navigation at the top of all the pages with a nicely designed bar. Like so: This navigation was perfect, no matter where you are on the Google network you can easily go to the navigation [...]