Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 22-06-2007 01:23:06

mohamed
Membre
Date d'inscription: 22-06-2007
Messages: 16

installation de zend sous unix

salut,
j'ai voulu faire un premier essaie avec le framework, mais je n'ai pas réussi, j'ai un problème, il ne trouve pas le fichier Loader.php meme si je lui entre toute l'url requie_once "/var/www/sites/site/library/Zend/Loader.php"

Dans mon fichier .htaccess j'ai:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

le fichier index.php:
define("WEBAPP_DIR","/var/www/sites/site");
define("MODEL_DIR",WEBAPP_DIR."/app");
define("ROOT_URL","http://localhost/sites/site");
define("BASE_URL","/sites/site");
define("INCLUDE_PATH_SEPARATOR",":");
define("ZEND_FRAMEWORK_DIR","/var/www/sites/site/library");

define("DB_SERVER","localhost");
define("DB_PORT","3306");
define("DB_NAME","test");
define("DB_USER","root");
define("DB_PASSWORD","");
define("DB_TYPE","PDO_MYSQL");

set_include_path(
  ".".PATH_SEPARATOR.
  MODEL_DIR.PATH_SEPARATOR.
  ZEND_FRAMEWORK_DIR.PATH_SEPARATOR.
  get_include_path()
);

require_once 'Zend/Loader.php';
............
?>

Erreur:
Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/sites/site/index.php on line 24

Quelqu'un pourrait m'aider?

Dernière modification par mohamed (22-06-2007 01:38:05)

Hors ligne

 

#2 22-06-2007 09:18:21

philippe
Administrateur
Lieu: Grenoble
Date d'inscription: 01-03-2007
Messages: 1624

Re: installation de zend sous unix

Bonjour,

Tu peux utiliser le user qui lance apache et lancer la commande suivante :

Code:

ls -l /var/www/sites/site/library/Zend

et nous renvoyer le résultat ?

J'ai une autre question, est-ce que ton hébergement est en "safe mode" (hébergement free.fr par exemple).

A+, Philippe

Dernière modification par philippe (22-06-2007 09:21:03)


twitter : @plv ; kitpages.fr : Création de sites internet à Grenoble et Paris

Hors ligne

 

#3 22-06-2007 13:08:18

mohamed
Membre
Date d'inscription: 22-06-2007
Messages: 16

Re: installation de zend sous unix

Salut,
Suite à :
ls -l /var/www/sites/site/library/Zend

drwxr-xr-x  5 mohamed mohamed  4096 2007-06-08 20:36 Acl
-rwx------  1 mohamed mohamed 37776 2007-01-16 02:35 Acl.php
drwxr-xr-x  4 mohamed mohamed   4096 2007-06-08 20:36 Auth
-rwx------  1 mohamed mohamed   3847 2007-02-15 23:40 Auth.php
drwxr-xr-x  4 mohamed mohamed   4096 2007-06-08 20:36 Cache
-rwx------  1 mohamed mohamed   3706 2007-03-24 11:20 Cache.php
drwxr-xr-x  2 mohamed mohamed   4096 2007-06-08 20:36 Config
-rwx------  1 mohamed mohamed   7167 2007-05-30 22:26 Config.php
drwxr-xr-x  3 mohamed mohamed   4096 2007-06-08 20:36 Console
drwxr-xr-x  8 mohamed mohamed   4096 2007-06-08 20:36 Controller
drwxr-xr-x  2 mohamed mohamed   4096 2007-06-08 20:37 Date
-rwx------  1 mohamed mohamed 175774 2007-05-23 21:07 Date.php
drwxr-xr-x  7 mohamed mohamed   4096 2007-06-08 20:36 Db
-rwx------  1 mohamed mohamed   6069 2007-06-04 21:02 Db.php
-rwx------  1 mohamed mohamed   2860 2007-04-27 21:26 Debug.php
-rwx------  1 mohamed mohamed    930 2007-01-16 02:42 Exception.php
drwxr-xr-x  4 mohamed mohamed   4096 2007-06-08 20:36 Feed
-rwx------  1 mohamed mohamed  12683 2007-05-06 16:01 Feed.php
drwxr-xr-x  2 mohamed mohamed   4096 2007-06-08 20:36 Filter
-rwx------  1 mohamed mohamed   3319 2007-05-25 23:11 Filter.php
drwxr-xr-x  7 mohamed mohamed   4096 2007-06-08 20:36 Gdata
-rwx------  1 mohamed mohamed   4035 2007-05-27 21:23 Gdata.php
drwxr-xr-x  3 mohamed mohamed   4096 2007-06-08 20:36 Http
drwxr-xr-x  2 mohamed mohamed   4096 2007-06-08 20:37 Json
-rwx------  1 mohamed mohamed   2762 2007-03-24 11:20 Json.php
-rwx------  1 mohamed mohamed   8410 2007-06-01 22:41 Loader.php
drwxr-xr-x  4 mohamed mohamed   4096 2007-06-08 20:36 Locale
-rwx------  1 mohamed mohamed  40345 2007-04-09 15:23 Locale.php
drwxr-xr-x  5 mohamed mohamed   4096 2007-06-08 20:36 Log
-rwx------  1 mohamed mohamed   6261 2007-06-05 01:28 Log.php
drwxr-xr-x  5 mohamed mohamed   4096 2007-06-08 20:36 Mail
-rwx------  1 mohamed mohamed  16308 2007-06-01 22:28 Mail.php
drwxr-xr-x  5 mohamed mohamed   4096 2007-06-08 20:36 Measure
drwxr-xr-x  3 mohamed mohamed   4096 2007-06-08 20:37 Memory
-rwx------  1 mohamed mohamed   2324 2007-04-05 15:36 Memory.php
drwxr-xr-x  2 mohamed mohamed   4096 2007-06-08 20:36 Mime
-rwx------  1 mohamed mohamed   8957 2007-04-19 03:21 Mime.php
drwxr-xr-x 11 mohamed mohamed   4096 2007-06-08 20:36 Pdf
-rwx------  1 mohamed mohamed  21433 2007-05-25 08:44 Pdf.php
-rwx------  1 mohamed mohamed   5632 2007-03-24 11:20 Registry.php
drwxr-xr-x  2 mohamed mohamed   4096 2007-06-08 20:36 Request
drwxr-xr-x  4 mohamed mohamed   4096 2007-06-08 20:37 Rest
drwxr-xr-x  3 mohamed mohamed   4096 2007-06-08 20:36 Search
drwxr-xr-x  3 mohamed mohamed   4096 2007-06-08 20:37 Server
drwxr-xr-x  8 mohamed mohamed   4096 2007-06-08 20:36 Service
drwxr-xr-x  4 mohamed mohamed   4096 2007-06-08 20:36 Session
-rwx------  1 mohamed mohamed  23097 2007-05-09 21:33 Session.php
drwxr-xr-x  3 mohamed mohamed   4096 2007-06-08 20:36 Translate
-rwx------  1 mohamed mohamed   7383 2007-05-28 09:54 Translate.php
drwxr-xr-x  2 mohamed mohamed   4096 2007-06-08 20:36 Uri
-rwx------  1 mohamed mohamed   4780 2007-05-29 21:31 Uri.php
drwxr-xr-x  3 mohamed mohamed   4096 2007-06-08 20:36 Validate
-rwx------  1 mohamed mohamed   4820 2007-05-25 23:11 Validate.php
-rwx------  1 mohamed mohamed   1648 2007-06-04 23:38 Version.php
drwxr-xr-x  4 mohamed mohamed   4096 2007-06-08 20:37 View
-rwx------  1 mohamed mohamed   1306 2007-01-16 02:36 View.php
drwxr-xr-x  7 mohamed mohamed   4096 2007-06-08 20:36 XmlRpc


=>C'est la version 1 RC2
Le safe mod est en OFF
Je peux lui demander, mais est ce que c'est possible de configurer ça dans le fichier .htaccess

Hors ligne

 

#4 22-06-2007 13:36:47

mohamed
Membre
Date d'inscription: 22-06-2007
Messages: 16

Re: installation de zend sous unix

Pb résolu, fallait changer les droits d'accès, bref, c la fatigue :s
Maintnant j'ai un autre pb,

Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'index/index.php' not found in path' in /var/www/sites/site/Zend/View/Abstract.php:853 Stack trace: #0 /var/www/sites/site/Zend/View/Abstract.php(764): Zend_View_Abstract->_script('index/index.php') #1 /var/www/sites/site/Zend/Controller/Action/Helper/ViewRenderer.php(702): Zend_View_Abstract->render('index/index.php') #2 /var/www/sites/site/Zend/Controller/Action/Helper/ViewRenderer.php(723): Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/index.php', NULL) #3 /var/www/sites/site/Zend/Controller/Action/Helper/ViewRenderer.php(770): Zend_Controller_Action_Helper_ViewRenderer->render() #4 /var/www/sites/site/Zend/Controller/Action/HelperBroker.php(160): Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #5 /var/www/sites/site/Zend/Controller/Action.php(504): Zend_Controller_Action_HelperBroker->notifyPostDispatch() #6 /var/www/sites/site/Zend/Controller/Dispatcher/Standard.php(230): Zend_Controller_Action->dispatch('indexActi in /var/www/sites/site/Zend/View/Abstract.php on line 8535

a+

Dernière modification par mohamed (22-06-2007 14:18:57)

Hors ligne

 

#5 22-06-2007 15:56:16

haltabush
Membre
Lieu: Saumur
Date d'inscription: 20-04-2007
Messages: 64

Re: installation de zend sous unix

Sauf erreur, c'est le truc qu'il te sort quand tu apsse de la 0.9 à la 1.0... Je te laisse chercher, c'est écrit je ne sais plus trop où dans le forum ^^

Hors ligne

 

#6 22-06-2007 16:08:08

mohamed
Membre
Date d'inscription: 22-06-2007
Messages: 16

Re: installation de zend sous unix

Merci pour ta réponse, j'ai trouvé la solution mais j'ai oublié de poster ici, désolé
le problème c'est que je n'ai travaillé qu'avec la version 0.2.0 et toutes les vues étaient toutes dans le même dossier, mais dans la version 1 , à chaque controlleur on associe un dossier et pour chaque action on associe une vue. Bon pour chaque controleur on associe un dossier, là c'est bien, l'architecture est mieux organisée mais pour chaque action on doit avoir une vue; là je n'arrive pas à digérer ça.

Cordialement

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr

Graphisme réalisé par l'agence Rodolphe Eveilleau
Développement par Kitpages