コード例 #1
0
ファイル: frontend.inc.php プロジェクト: magix-cms/magixcms-3
# DISCLAIMER

# Do not edit or add to this file if you wish to upgrade MAGIX CMS to newer
# versions in the future. If you wish to customize MAGIX CMS for your
# needs please refer to http://www.magix-cms.com for more information.
*/
/**
 * Fichier de configuration
 */
$config_in = 'app/init/common.inc.php';
if (file_exists($config_in)) {
    require $config_in;
} else {
    throw new Exception('Error Ini Common Files');
    exit;
}
/**
 * Chargement du Bootsrap
 */
$bootstrap = __DIR__ . '/bootstrap.php';
if (file_exists($bootstrap)) {
    require $bootstrap;
} else {
    throw new Exception('Boostrap is not exist');
}
/**
 * Autoloader registerPrefixes pour les composants du CMS
 */
$loader = new autoloader();
$loader->registerPrefixes(array('component' => 'app', 'frontend' => 'app'));
$loader->register();
コード例 #2
0
ファイル: backend.inc.php プロジェクト: magix-cms/magixcms-3
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# -- END LICENSE BLOCK -----------------------------------

# DISCLAIMER

# Do not edit or add to this file if you wish to upgrade MAGIX CMS to newer
# versions in the future. If you wish to customize MAGIX CMS for your
# needs please refer to http://www.magix-cms.com for more information.
*/
$config_in = '../app/init/common.inc.php';
if (file_exists($config_in)) {
    require $config_in;
} else {
    throw new Exception('Error Ini Common Files');
    exit;
}
$bootstrap = __DIR__ . '/bootstrap.php';
if (file_exists($bootstrap)) {
    require $bootstrap;
}
$loader = new autoloader();
$loader->registerPrefixes(array('component' => '../app', 'backend' => '../app'));
$loader->register();