Welcome Guest, Not a member yet? Register   Sign In
Design Logic Help Requested
#19

(This post was last modified: 07-14-2016, 11:24 AM by cartalot.)

(07-13-2016, 06:58 PM)mwebdesign Wrote: Hey, can you help clarify this for me? I want to get this "alpha" "beta" structure set up from the get go so I know how it all works down the line. I'm basically going about it exactly as you've mentioned above, but I'm missing something when it comes to making the "alpha" folder with the main index.php inside of it. Is the only thing inside the "alpha" folder the index file....or is the 'alphajuly' application directory in there as well? If I'm moving the main index file...doesn't something else have to point to where that is? is there also a "beta" folder with an index.php file pointing to the "betawhatever" application directory? And is there a reason that I would need multiple systems folders? ie: one for the beta version and another for the alpha version, or am I looking at that all wrong? Oh, and I'm thinking I probably need to have a .htaccess file that matches each of these as well?

so the most secure way, and i think they are finally going to start suggesting this in version 4 - is to have your application and system folders 'above' the public html root folder. so for example (this is messy but hopefully its clear)

Code:
alpha001  /public_html/
betajuly    /public_html/
system306/public_html/
             /public_html/alpha/index.php
             /public_html/beta/index.php
   
and then for example in the index.php file in your alpha folder

PHP Code:
$system_path '../../system306';
$application_folder '../../alpha001';

// you can also set your base url in the index.php file
// this makes it much easier when using different versions
$assign_to_config['base_url'] = 'https://example.com/alpha'

Then if you always use base_url for your css, image, etc links - they will always work.
This is also a reason to always use codeigniter form helper for your form open -
because the url will always be correct . And yes your different application folders can point to the
same system folder. Conversely you can test out a newer version of the system on your alpha, etc.
Reply


Messages In This Thread
Design Logic Help Requested - by mwebdesign - 07-12-2016, 11:27 PM
RE: Design Logic Help Requested - by InsiteFX - 07-13-2016, 10:11 AM
RE: Design Logic Help Requested - by cartalot - 07-13-2016, 11:09 AM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 11:25 AM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 01:00 PM
RE: Design Logic Help Requested - by cartalot - 07-13-2016, 03:52 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 05:22 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 06:58 PM
RE: Design Logic Help Requested - by cartalot - 07-14-2016, 11:20 AM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 12:03 PM
RE: Design Logic Help Requested - by PaulD - 07-13-2016, 01:01 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 04:42 PM
RE: Design Logic Help Requested - by mwebdesign - 07-20-2016, 07:10 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 05:11 PM
RE: Design Logic Help Requested - by mwebdesign - 07-13-2016, 05:12 PM
RE: Design Logic Help Requested - by PaulD - 07-13-2016, 03:09 PM
RE: Design Logic Help Requested - by InsiteFX - 07-13-2016, 07:05 PM
RE: Design Logic Help Requested - by mwhitney - 07-14-2016, 10:48 AM
RE: Design Logic Help Requested - by PaulD - 07-21-2016, 03:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB