-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoiding full URLs #17
Comments
There is the same function as you said in the HTTP Library...for now I have On Sun, Oct 27, 2013 at 4:52 PM, Shivam Dixit [email protected]:
Regards, |
In HTTP Library there is a static protected property Instead of Let's have one function GetBaseURL ? |
In updateaccount.php, full absolute URLs like :
http://localhost/rnj/framework/file/js/jquery.js
are used, which can create huge problem at later stages when the code will have to run on different machines since the URL will NOT be same on each machine. Changing it in every file will waste time . Instead we should implement a function like
site_url
, which will return the present base URL (example http://localhost/rnj/) and we will simply append our relative URL (i.e framework/file/js/jquery.js). It will make code compatible with different machines.The text was updated successfully, but these errors were encountered: