01-07-2012, 10:12 PM
[eluser]Unknown[/eluser]
Hi, problem:
When i'm here : http://localhost/autozaibas/cars
ajax calls server at this address: http://localhost/autozaibas/ajax/markesmodeliai
But when i'm here: http://localhost/autozaibas/car/39
ajax calls server at this address
http://localhost/autozaibas/car/ajax/markesmodeliai and messes up everything.
Maybe somehow I could solve this problem, without duplicating code and without some sort of finding base_url with js ? .
I'ts car's search view, must be in both controllers.
Thanks in advance.
Hi, problem:
When i'm here : http://localhost/autozaibas/cars
ajax calls server at this address: http://localhost/autozaibas/ajax/markesmodeliai
But when i'm here: http://localhost/autozaibas/car/39
ajax calls server at this address
http://localhost/autozaibas/car/ajax/markesmodeliai and messes up everything.
Maybe somehow I could solve this problem, without duplicating code and without some sort of finding base_url with js ? .
I'ts car's search view, must be in both controllers.
Thanks in advance.