• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Foreach loop Not Working

#3
(06-04-2016, 04:26 AM)pdthinh Wrote: You can try this:
PHP Code:
<?php

 
public function index() {

 
// Bootstrap
 
$csslinks[] = array( // add new element to $csslinks array
 
       'href'  => 'app/modules/admin/plugins/bootstrap/dist/css/bootstrap.css',
 
       'rel'   => 'stylesheet',
 
       'type'  => 'text/css',
 );

 
// Custom
 
$csslinks[] = array( // add another element to $csslinks array
 
       'href'  => 'app/modules/admin/stylesheets/custom.css',
 
       'rel'   => 'stylesheet',
 
       'type'  => 'text/css',
 );

 
$data['csslinks'] = $csslinks;

 return 
$this->load->view('common/header_view'$data);
 } 


Worked
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
RE: Foreach loop Not Working - by pdthinh - 06-04-2016, 04:26 AM
RE: Foreach loop Not Working - by wolfgang1983 - 06-04-2016, 04:46 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.