CodeIgniter Forums
error message link_tag - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: error message link_tag (/showthread.php?tid=14019)



error message link_tag - El Forum - 12-15-2008

[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


error message link_tag - El Forum - 12-15-2008

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


error message link_tag - El Forum - 12-15-2008

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

Thanks