• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error message link_tag

#1
[eluser]protanqcreator[/eluser]
Hi,

I'm trying to code my personal website for the first time wirh CI. So excuse me please if my question is stupid.

I've this error message :
Quote:Fatal error: Call to undefined function link_tag() in C:\Program Files\wamp\www\monsiteV1\system\libraries\Loader.php(673) : eval()'d code on line 6
.

This is my controller :

Code:
<?php
class Sitesperso extends Controller {
    
    
    function Sitesperso(){
        parent::Controller();
        
        $this->load->helper('url');
        $this->load->helper('form');
                
                
    }
    
    

    function index(){
        
        $data['cssfile'] = base_url().'system/layout/css/style.css';
        $data['title'] = "Dillaerts Bart";
        $data['query']= $this->db->get('contenu');        
        $this->load->view('sitesperso_view', $data);    
    }
    
    }

?>

I hope that somebody can help me.

Thanks

#2
[eluser]gstjohn[/eluser]
Are you using link_tag() in your view? It doesn't seem that you have the HTML helper loaded.

#3
[eluser]protanqcreator[/eluser]
Your right! I've correct the problem.

Thanks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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