Welcome Guest, Not a member yet? Register   Sign In
Form and URL Helper Libraries not loading
#1

[eluser]Unknown[/eluser]
Code:
function signup()
    {
      $this->load->library('url');
      $this->load->library('form_validation');
    $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[5]|max_length[12]|xss_clean|callback_username_check');
    $this->form_validation->set_rules('password', 'Password', 'trim|required|matches[passwordConfim]|md5');
    $this->form_validation->set_rules('passwordConfirm', 'Password Confirmation', 'trim|required');
    $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
    if($this->form_validation->run() == FALSE)
    {
      $this->load->view('user_signup');
    }
    else
    {
      $this->load->view('user_signedup');
    }
    }
I am getting this error: An Error Was Encountered
Unable to load the requested class: url

Same happens if I try to load in the form helper. I actually was using an array from the Form validations. I'm doing the development on my local machine. It's a MBP running 10.6.3. PHP info: PHP Version 5.3.2.

Any ideas why I cannot load my helper libraries?
#2

[eluser]InsiteFX[/eluser]
May be becuase you are loading the url helper wrong!

Code:
$this->load->helper('url');

InsiteFX
#3

[eluser]Unknown[/eluser]
Wow... I can't believe I did that wrong. Makes sense. I thought I copied and pasted what was in the form tutorial into my page? Thanks for helping me catch that.
#4

[eluser]Unknown[/eluser]
really.. the same problem with me also, i could not understand how it has happened.
by the way INSITEFX for your time and helping us out.
May God bless you Smile




Theme © iAndrew 2016 - Forum software by © MyBB