Package creation

 

  Multiple domain support

  Ultimix allows to create many sites in one install. It's very easy to do. Follow these steps:

  1. Make install directory to be accessible through different domains, for example domain1.com and domain2.com.
  2. Ultimix automatically defines global constant `DOMAIN` wich can be used in php scripts.
  3. Create additional configs in the directory './packages/cached_multy_fs/conf/' with such names 'domain_name.cf_data_storages'. In our case these files will be domain1.com.cf_data_storages and domain2.com.cf_data_storages.
  4. Set content of created configs appropriate for your purposes.

  The original content of the cf_data_storages config looks like this:

Example:
./packages/_core_data/conf
./packages/_core_data/res/lang
./packages/gui/packages/context_set/res/templates

  Database adapter loads config from one of these directories. Change the directory, and other config (probably to another database) will be loaded. Doing this we separate data for our sites.

2009 © ultimix