Weird CodeIgniter errors |
[eluser]CroNiX[/eluser]
Are these located in the root of your site, or in a subdirectory?
[eluser]CroNiX[/eluser]
That doesn't tell me if your directory is the site root or a subdirectory. The reason I keep asking is because you keep using relative paths, like "../index.php/form/login", and when I, and others, try to get you to use base_url() it doesn't work for you. This is a problem. If you ever change servers, or move the structure of your site, it probably won't work with your relative paths and you will have a lot of fixing to do. Same if you ever to decide to remove index.php from the url. You would have to recode everything. Ideally, you would set something like this in the <head> of your document: Code: <skript type="text/javascript"> Code: site_url + 'form/login http://yoursite.com/index.php/form/login
[eluser]ibnclaudius[/eluser]
-var --www ---mysite ----application ----assets ----system ----index.php Is this? ... I added your script to <head> and I'm calling the .post(), but is not working: Code: $.post(site_url + 'form/login', { data: $('#form-login').serialize() }, And what about the problem loading externals?
[eluser]limit[/eluser]
What url does base_url() output when you echo it? Are you using views for your HTML?
[eluser]ibnclaudius[/eluser]
Echo: http://localhost/mysite/ I load this view file: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[eluser]ibnclaudius[/eluser]
I fixed the js problem. Code: var data = { But the weird problem of loading the library persist... |
Welcome Guest, Not a member yet? Register Sign In |