[eluser]phpgeek[/eluser]
Hello everyone, is it possible to load multiple views from an array of filenames? I've tried it but i had no luck, here is the code:
Code:
//I'd like to do this
$pages= array('header', 'instrucciones_base', 'welcome_message', 'form_base', 'footer');
$this->load->view($pages);
//Rather than this
$this->load->view('header');
$this->load->view('instrucciones_base');
$this->load->view('welcome_message');
$this->load->view('form_base');
The error that shows is:
A PHP Error was encountered
Severity: Warning
Message: pathinfo() expects parameter 1 to be string, array given
Filename: libraries/Loader.php
Line Number: 608