Loading multiple VIEWS in Codeiniter

Asked

Viewed 28 times

0

Since Header and Footer will be the same on all pages, there is a downside to calling them in the same Controller?

EX:

$this->load->view('v_header', $variaveis);
$this->load->view('v_index', $variaveis);
$this->load->view('v_footer', $variaveis);

Since some pages will have files JavaScript that others don’t need, inserting all in the footer file would slow down the application?

  • For shipment on demand, I have a helper which only loads the scripts used in the active method. It is worth asking another question...

  • Use that link to remedy the first doubt in relation to JAVASCRIPT everything depends on a larger context, maybe working with compressed javascript (min.js) can be a good ... everything depends... gets a little difficult without seeing what happens without testing ... etc ...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.