Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 02-09-2012 15:37:50

Surion
Nouveau membre
Lieu: Montréal
Date d'inscription: 29-06-2011
Messages: 5

[résolue]Intégration Doctrine 2.2 et Zend 1.11.11

Bonjour,

Je débute sur Zend et Doctrine. Et j'essais d'intégrer Doctrine 2.2 à Zend 1.11.
J'essais tant bien que mal de configurer Doctrine grâce au différents tuto sur le net, mais quoique je change la commande "php doctrine.php" me renvoie sur une erreur :

PHP Warning:  require_once(Zend/Application.php): failed to open stream: No such
file or directory in C:\wamp\www\maximefrere_zend\application\scripts\doctrine.
php on line 22
PHP Stack trace:
PHP   1. {main}() C:\wamp\www\maximefrere_zend\application\scripts\doctrine.php:
0

Warning: require_once(Zend/Application.php): failed to open stream: No such file
or directory in C:\wamp\www\maximefrere_zend\application\scripts\doctrine.php o
n line 22

Call Stack:
    0.0006     649888   1. {main}() C:\wamp\www\maximefrere_zend\application\scr
ipts\doctrine.php:0

PHP Fatal error:  require_once(): Failed opening required 'Zend/Application.php'
(include_path=';.;C:\php\pear') in C:\wamp\www\maximefrere_zend\application\scr
ipts\doctrine.php on line 22
PHP Stack trace:
PHP   1. {main}() C:\wamp\www\maximefrere_zend\application\scripts\doctrine.php:
0

Fatal error: require_once(): Failed opening required 'Zend/Application.php' (inc
lude_path=';.;C:\php\pear') in C:\wamp\www\maximefrere_zend\application\scripts\
doctrine.php on line 22

Call Stack:
    0.0006     649888   1. {main}() C:\wamp\www\maximefrere_zend\application\scr
ipts\doctrine.php:0

Voici mon arborescence un peu raccourcie :

C:\WAMP\WWW\TESTE
│   .htaccess
│   .zfproject.xml
│   DoctrineORM-2.2.2-full (1).tar.gz
│   index.html

├───application
│   │   Bootstrap.php
│   │
│   ├───configs
│   │       application.ini
│   │
│   ├───controllers
│   │       ErrorController.php
│   │       IndexController.php
│   │
│   ├───layouts
│   │   └───scripts
│   │           header.phtml
│   │           layout.phtml
│   │           meta.phtml
│   │           scripts.phtml
│   │           styles.phtml
│   │
│   ├───models
│   │   ├───Entities
│   │   ├───Proxies
│   │   └───Repositories
│   ├───modules
│   │   └───admin
│   ├───scripts
│   │       doctrine
│   │       doctrine.bat
│   │       doctrine.php
│   │
│   └───views
│       ├───helpers
│       └───scripts
├───docs
│       README.txt

├───library
│   │   doctrine-mapping.xsd
│   │   LICENSE
│   │   package.xml
│   │   UPGRADE_TO_2_0
│   │   UPGRADE_TO_2_1
│   │   UPGRADE_TO_2_2
│   │   UPGRADE_TO_ALPHA3
│   │   UPGRADE_TO_ALPHA4
│   │
│   ├───bin
│   │       doctrine
│   │       doctrine.bat
│   │       doctrine.php
│   │
│   ├───Doctrine
│   │   ├───Common
│   │   ├───DBAL
│   │   ├───ORM
│   │   └───Symfony
│   └───Zend
├───public
│       .htaccess
│       index.php

├───scripts
└───tests
    │   bootstrap.php
    │   phpunit.xml
    │
    ├───application
    │   └───controllers
    │           IndexControllerTest.php
    │
    └───library

Avez vous des suggestions ou des liens qui pourraient m'aider ?
Merci pour votre attention big_smile

Dernière modification par Surion (12-09-2012 00:05:42)

Hors ligne

 

#2 03-09-2012 00:33:33

shadypierre
Membre
Date d'inscription: 24-03-2010
Messages: 617

Re: [résolue]Intégration Doctrine 2.2 et Zend 1.11.11

Perso j'utilise cette librairie et ça roule : https://github.com/guilhermeblanco/Zend … -Doctrine2

Hors ligne

 

#3 10-09-2012 18:44:54

Surion
Nouveau membre
Lieu: Montréal
Date d'inscription: 29-06-2011
Messages: 5

Re: [résolue]Intégration Doctrine 2.2 et Zend 1.11.11

Merci, j'ai essayé mais sans grand succès ^^"
Je me retrouve confronté à un nouvelle erreur :
Pour la commande :" orm:schema-tool:create "

InvalidArgumentException]           
The helper "em" is not defined.

J'ai tenté de définir le chemin de "em" dans le bootstrap ou dans mon fichier ini mais rien n'y fait.
Quelqu'un connaîtrait il une solution ?

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