Welcome Guest, Not a member yet? Register   Sign In
How do you relocate a C.I. app from local host to a webserver?
#3

[eluser]stuffradio[/eluser]
I point all my file stuff in the headers to base_url, that way if I was changing to a new host... all I have to change is the path in one spot and it works globally!

An example situation is a css file.

In the header for the file path I'd go

Code:
<?php echo base_url(); ?>system/application/views/css/style.css

I do that because there is already a trailing slash in the base_url.


Messages In This Thread
How do you relocate a C.I. app from local host to a webserver? - by El Forum - 12-04-2009, 05:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB