Alors voilà j'essaye d'installer ACL sous Mac en suivant la doc de CakePhp 2 mais à un moment il dise qu'il faut la console pour exécuter le plugin de création des Acos bref je lance ma console en fesant:

cd Users/nomutilisateur/Sites/cakephp/lib/Cake/Console

Ensuite je fais:

./cake bake

Et là erreur:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_fileinfo.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_fileinfo.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_gd2.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_gd2.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysqli.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysqli.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_zip.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_zip.dll, 9): image not found in Unknown on line 0

Ensuite il me demande ou est mon dossier app et mon Console/Template je fais:

Welcome to CakePHP v2.1.1 Console
---------------------------------------------------------------
App : Console
Path: /Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/
---------------------------------------------------------------
What is the path to the project you want to bake?  
[/Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/myapp] > /Users/nomutilisateur/Sites/cakephp/app 
What is the path to the directory layout you wish to copy?  
[/Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/Templates/skel] > /Users/nomutilisateur/Sites/cakephp/app/Console/Templates 
Skel Directory: /Users/nomutilisateur/Sites/cakephp/app/Console/Templates
Will be copied to: /Users/nomutilisateur/Sites/cakephp/app
---------------------------------------------------------------
Look okay? (y/n/q) 
[y] > y
---------------------------------------------------------------
Created: app in /Users/nomutilisateur/Sites/cakephp/app
---------------------------------------------------------------
File `/Users/nomutilisateur/Sites/cakephp/app/View/Pages/home.ctp` exists
Do you want to overwrite? (y/n/q) 
[n] > n
Skip `/Users/nomutilisateur/Sites/cakephp/app/View/Pages/home.ctp`

Et ensuite il me demande de configurer ma BDD hors qu'elle est déjà configurer car j'avais déjà commencé à créer sans la console:

The Welcome page was NOT created
 * Random hash key created for 'Security.salt'
 * Random seed created for 'Security.cipherSeed'
Unable to set console path for app/Console.
CakePHP is on your `include_path`. CAKE_CORE_INCLUDE_PATH will be set, but commented out.
Unable to set CAKE_CORE_INCLUDE_PATH, you should change it in /Users/nomutilisateur/Sites/cakephp/app/webroot/index.php
Project baked but with some issues..
Your database configuration was not found. Take a moment to create one.
---------------------------------------------------------------
Database Configuration:
---------------------------------------------------------------
Name:  
[default] > 
Datasource: (Mysql/Postgres/Sqlite/Sqlserver) 
[Mysql] > 
Persistent Connection? (y/n) 
[n] > 
Database Host:  
[localhost] > 
Port?  
[n] > 
User:  
[root] > 
Password:  
> root
Database Name:  
[cake] > cookery
Table Prefix?  
[n] > 
Table encoding?  
[n] > utf8
---------------------------------------------------------------
The following database configuration will be created:
---------------------------------------------------------------
Name: default
Datasource: Mysql
Persistent: false
Host: localhost
User: root
Pass: ****
Database: cookery
Encoding: utf8
---------------------------------------------------------------
Look okay? (y/n) 
[y] > y
Do you wish to add another database configuration?  
[n] > n
PHP Fatal error: Class 'DATABASE_CONFIG' not found in /Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/Command/Task/DbConfigTask.php on line 264
Fatal error: Class 'DATABASE_CONFIG' not found in /Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/Command/Task/DbConfigTask.php on line 264

Ensuite je continue quand même et encore une erreur, je fais comme dans la doc je met AclExtras dans app/Plugin puis je met CakePlugin::load('AclExtras'); dans app/Config/boostrap.php et ensuite je fais:

./cake AclExtras.AclExtras aco_sync

Et voici la réponse:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_fileinfo.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_fileinfo.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_gd2.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_gd2.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysql.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysql.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysqli.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_mysqli.dll, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_zip.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_zip.dll, 9): image not found in Unknown on line 0
Error: Plugin AclExtras could not be found.
#0 /Users/nomutilisateur/Sites/cakephp/lib/Cake/Core/App.php(364): CakePlugin::path('AclExtras')
#1 /Users/nomutilisateur/Sites/cakephp/lib/Cake/Core/App.php(225): App::pluginPath('AclExtras')
#2 /Users/nomutilisateur/Sites/cakephp/lib/Cake/Core/App.php(542): App::path('Console/Command', 'AclExtras')
#3 [internal function]: App::load('AclExtrasShell')
#4 [internal function]: spl_autoload_call('AclExtrasShell')
#5 /Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/ShellDispatcher.php(216): class_exists('AclExtrasShell')
#6 /Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/ShellDispatcher.php(167): ShellDispatcher->_getShell('AclExtras.AclEx...')
#7 /Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#8 /Users/nomutilisateur/Sites/cakephp/lib/Cake/Console/cake.php(41): ShellDispatcher::run(Array)
#9 {main}

Donc si vous avez une idée car là je suis complètement bloqué et je voudrais pas tout recommencer depuis le depuis.

Merci d'avance.......

2 réponses


djtec
Auteur

Personne peut m'aider???

djtec
Auteur

Et ben n'ayant aucune réponse et vu que le nouveau cakephp nous oblige à passer par la console qui ne fonctionne pas chez moi et ben je vais arrêter l'acl et continuer mon site et je verrais bien si cakephp change leur truc ou je verrais si je fais autrement.

++