Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
Salut a tous ,
j'ai un gros problème,
j'ai une application qui a été installé sous ubuntu , je voulais transfert l'application vers un autre serveur ubuntu localhost aussi ,donc j'ai copier tous les fichier de dossier sous /var/www , je travaille avec script relier avec l'application
le script sous /var/www
l'application sous /var/application
voilà le fichier boostrap.php
error_reporting(0);
// Define path to application directory
defined ( 'APPLICATION_PATH' ) ||
define ( 'APPLICATION_PATH', realpath ( '/var/application' ) );
defined ( 'UPLOAD_PATH' ) ||
define ( 'UPLOAD_PATH', realpath ( 'perso_img' ) );
// Define application environment
defined ( 'APPLICATION_ENV' ) ||
define ( 'APPLICATION_ENV', (getenv ( 'APPLICATION_ENV' ) ? getenv ( 'APPLICATION_ENV' ) : 'production') );
set_include_path ( implode ( PATH_SEPARATOR,
array (
realpath (APPLICATION_PATH.'/library' ),
realpath (APPLICATION_PATH.'/models'),
realpath (APPLICATION_PATH.'/controllers'),
realpath (APPLICATION_PATH.'/App'),
realpath (APPLICATION_PATH.'/App/Helpers'),
realpath (APPLICATION_PATH ),
get_include_path ()
)));
fichier Index.php
<?php
require 'bootstrap.php';
$layout->setLayoutPath(APPLICATION_PATH.'/views/layout/admin');
$myView->error="";
if (!empty($_POST) ) {
if(empty($_POST['login']) || empty($_POST['password'])){
$myView->error = 'حقل فارغ، نرجو تعبئته لتتمكن من المتابعة. ';
}else{
$_loginServices = new App_LoginServices();
$myView->error = $_loginServices->loginAction($_POST['login'], $_POST['password']);
}
}
$myView->headTitle()->append($commune_title);
$layout->myViewPath = 'index/index.phtml';
echo $layout->render();
?>
j'ai configuré httpd.con avec hosts
mais quand je lance l'application rien ne s'affiche page blanc, j'ai configurer aussi .htaccess sans aucune résultat
est ce vous pouvez m aidez
merci d'avance.
Dernière modification par redone147 (21-07-2012 01:54:47)
Hors ligne