Welcome Guest, Not a member yet? Register   Sign In
Defining FCPATH
#1

Hello, 

I am setting project in way I'd like to have two directories available: `public_html` and `app`. 
Directory public_html would be root of domain so I would keep application, system, vendor and composer.json in app directory 
outside of http approach. So far so good. I am setting $application_folder and $system_path variables to fit new locations of respective 
directories (i.e. '../app/application'). Also I was checking other constants to see if those are affected by this change and to be sure everything is well.
I ended up with FCPATH link. 
Since I am working on Windows / wamp, FCPATH is represented as "C:\wamp\www\ci302stable\public_html/" 
and as you can see with slashes mixing.
But when I check BASEPATH there is used str_replace() function to make same case slashes in link 
("define('BASEPATH', str_replace('\\', '/', $system_path));").
I was wondering why such a function is not used for FCPATH.

Regards,
Reply


Messages In This Thread
Defining FCPATH - by Tpojka - 10-26-2015, 10:08 AM
RE: Defining FCPATH - by Avenirer - 10-27-2015, 06:19 AM
RE: Defining FCPATH - by Tpojka - 10-27-2015, 06:58 AM
RE: Defining FCPATH - by mwhitney - 10-27-2015, 09:13 AM
RE: Defining FCPATH - by Tpojka - 10-27-2015, 10:35 AM
RE: Defining FCPATH - by InsiteFX - 10-28-2015, 04:30 AM
RE: Defining FCPATH - by mwhitney - 10-28-2015, 09:29 AM
RE: Defining FCPATH - by Tpojka - 10-28-2015, 04:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB