souci comment intégrer plusieurs application

3 views
Skip to first unread message

php

unread,
Apr 18, 2011, 6:09:43 AM4/18/11
to Pluf Users
salut tous le monde,
je veux générer 3 applications ,exple MCMS et MForum et
Admin,,comment je peux installer ces 3 applications dans tous d'un
coup??? dans le fichier index.php
require dirname(__FILE__).'/path.php';
require 'Pluf.php';

Pluf::start(ADMIN_CONFIG_FILE);
Pluf::start(RS_CONFIG_FILE);
Pluf::start(MForum_CONFIG_FILE);

Pluf_Dispatcher::loadControllers(Pluf::f('admin_urls'));
Pluf_Dispatcher::loadControllers(Pluf::f('rs_urls'));
Pluf_Dispatcher::loadControllers(Pluf::f('mforum_urls'));
Pluf_Dispatcher::dispatch(Pluf_HTTP_URL::getAction());
dans le fichier path.php
$path_to_Pluf = '/var/www/admin-master/pluf';
$path_to_Admin = dirname(__FILE__).'/../src';
$path_to_RS = dirname(__FILE__).'/var/www/admin-master/src';
$path_to_MForum = dirname(__FILE__).'/var/www/admin-master/src';
// $path_to_yourapp = '/path/to/your/app/src';

set_include_path(get_include_path()
.PATH_SEPARATOR.$path_to_Pluf
.PATH_SEPARATOR.$path_to_Admin
.PATH_SEPARATOR.$path_to_RS
.PATH_SEPARATOR.$path_to_MForum);

// Where is your configuration file?
define('ADMIN_CONFIG_FILE', $path_to_Admin.'/Admin/conf/admin.php');
define('MAIN_CONFIG_FILE', $path_to_RS.'/RS/conf/rs.php');
define('MAIN_CONFIG_FILE', $path_to_MForum.'/MForum/conf/mforum.php');
dans le fichier admin.php
$cfg['installed_apps'] = array('Pluf', 'Admin','RS','MForum');
comment faire pour intégrer ces 3 applications???
s'il vous plaît j'ai besoin de votre aide
merci bcq

php

unread,
Apr 22, 2011, 5:38:53 AM4/22/11
to Pluf Users
c 'est réglé avec succé
dans conf/app.php
$cfg['installed_apps'] = array('Pluf', 'Admin','RS','MForum');

$cfg['template_folders'] = array(dirname(__FILE__).'/../
Templates',dirname(__FILE__).'/../Admin/
templates',dirname(__FILE__).'/../RS/templates',dirname(__FILE__).'/../
MForum/templates' );
conf/urls.php
$ctl[] = array('regex' => '#^/admin/$#',

'sub' => include dirname(__FILE__).'/../Admin/conf/urls.php',

);
$ctl[] = array('regex' => '#^/topic$#',

'sub' => include dirname(__FILE__).'/../MForum/conf/urls.php',

);
$ctl[] = array('regex' => '#^/editor/$#',

'sub' => include dirname(__FILE__).'/../RS/conf/urls.php',
Reply all
Reply to author
Forward
0 new messages