title: CodeIgniter: undefined function
body: <p>Hello I get this error when I try to run my code, I'm just trying to test it out and I got this error, I'm trying to create a account registration and I'm required to use <code>Codeigniter</code> and I saw a similar code in the net and I try to follow it but somehow I got error with this and I don't know what I'm missing sorry I'm new to <code>Codeigniter</code></p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function form_open() in C:\xampp\htdocs\codeigniter_project\application\views\welcome_message.php on line 9</p>
    
    <p>A PHP Error was encountered
    Severity: Error</p>
    
    <p>Message: Call to undefined function form_open()</p>
    
    <p>Filename: views/welcome_message.php</p>
    
    <p>Line Number: 9</p>
    
    <p>Backtrace: </p>
  </blockquote>
  
  <p>Here is my code for view </p>
  
  <pre><code>    &lt;html&gt;
      &lt;head&gt;
      &lt;title&gt;Create Account&lt;/title&gt;
      &lt;/head&gt;
          &lt;body&gt;
            &lt;h3&gt;Create Account&lt;/h3&gt;
            &lt;?php
                  echo form_open(CreateAccount_Controller,submit_data);
  
                  echo form_label('User Name:', 'Vu_name' );
                  $data= array(
                  'name' =&gt; 'u_name',
                  'placeholder' =&gt; 'Please Enter User Name',
                  'class' =&gt; 'input_box'
                  );
                  echo form_input($data);
                  ?&gt;
         &lt;/body&gt;
         &lt;/html&gt;
  </code></pre>
  
  <p>Here is my code for controller </p>
  
  <pre><code>     &lt;?php
         class CreateAccount_Controller extends CI_Controller
         {
             public function _construct ()
             {
                parent::_construct();
             }
             public function create_account ()
             {
                $this-&gt;load-&gt;view(CreateAccount_View);
             }
                public function submit_data ()
             {
                // return hi or something;
             }
         }
       ?&gt;
  </code></pre>