Open GiseleFerreiraLima opened 9 years ago
I had the same problem since I load a header, content, then footer so what I did was remove the <?php echo $map['js']; ?>
from my header and added in to the content view where I have the <?php echo $map['html']; ?>
. Problem resolved for me on CodeIgniter 3.
Solution not working
How are you going to come in 2 years after I comment and thumbs down my solution? Lol
Have you found any other solution for that?
Message: Undefined variable: map
How to solve this?
Controller Map.php
defined('BASEPATH') OR exit('No direct script access allowed');
class Map extends CI_Controller {
}
I put before the closing tag in the file view header.php:
<?php echo $map['js']; ?>
In the view home.php
<?php echo $map['html']; ?>
I need to config up something of REST?