Skip to content

Instantly share code, notes, and snippets.

@andru255
Created August 5, 2013 01:47
Show Gist options
  • Select an option

  • Save andru255/6152927 to your computer and use it in GitHub Desktop.

Select an option

Save andru255/6152927 to your computer and use it in GitHub Desktop.
En caso se muestre un error al instalar las dependencias del Zend Framework Skeleton aplicar esto:
To install ZF2 Without doctrine ORM run following commands in your working directory
git clone git://github.com/zendframework/ZendSkeletonApplication.git
php composer.phar self-update
php composer.phar require zendframework/zend-developer-tools:dev-master
cp vendor/zendframework/zend-developer-tools/config/zenddevelopertools.local.php.dist config/autoload/zdt.local.php
chmod 777 data/cache/
//enable modules in config/application.config.php file
return array(
'modules' => array(
'ZendDeveloperTools',
'Application',
),
// [...]
);
To install ZF2 With doctrine run following commands in your working directory
git clone git://github.com/zendframework/ZendSkeletonApplication.git
php composer.phar self-update
php composer.phar require doctrine/doctrine-orm-module:0.7.*
php composer.phar require zendframework/zend-developer-tools:dev-master
cp vendor/zendframework/zend-developer-tools/config/zenddevelopertools.local.php.dist config/autoload/zdt.local.php
chmod 777 data/cache/
//enable modules in config/application.config.php file
return array(
'modules' => array(
'ZendDeveloperTools',
'DoctrineModule',
'DoctrineORMModule',
'Application',
),
// [...]
);
Command Line
./vendor/bin/doctrine-module orm:validate-schema
./vendor/bin/doctrine-module orm:schema-tool:create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment