Error in my CodeIgniter fix

0

structure an array to store the url addresses so that it would be more dynamic when it comes to fetching the urls

  

As before I had it

array(
        'name'  => 'inicio',
        'url'   => 'http://' . $_SERVER['HTTP_HOST'] . '/emprende/admin/index.php/inicio',
        'icon'  => 'gi gi-home'
    )
  

My arrangement

"array(". 
        "'name' => " . "'".$pant["pantallas"][0]->nombre_pantalla."',".
        "'url' => " . "'http://" . $_SERVER["HTTP_HOST"] . "".$pant["pantallas"][0]->url."'".",".
        "'icon' => " . "'".$pant["pantallas"][0]->icono."'". 
        "),"

and that's how it's shown

array ('name' = > 'Guests',' url '= >' link ',' icon '= >' fa fa-user ')

According to me it is practically the same thing but the bad thing is that it does not pull me the url and only sends me the following error

    
asked by Javier fr 12.06.2017 в 19:29
source

0 answers