CakePHP'de: Gösterimi ölümcül hata konsoldan denetleyicisi oluşturmak mümkün değildir

0 Cevap php

Ben konsolunu kullanarak CakePHP'de bir kontrolör (1.3) oluşturmak çalışıyorum. Ben Windows XP ve XAMPP kullanıyorum.

Aşağıda benim şimdiki pasta konsol ayarları

C: \ xampp \ htdocs pasta \ \ apressblog \ kek \ konsol> kek

♀ Welcome to CakePHP v1.3.4 Console --------------------------------------------------------------- Current Paths: -app: console -working: C:\xampp\htdocs\cake\apressblog\cake\console -root: C:\xampp\htdocs\cake\apressblog\cake -core: C:\xampp\htdocs\cake\apressblog

Changing Paths: your working path should be the same as your application path to change your path use the '-app' param. Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp

Available Shells: acl [CORE]
i18n [CORE]

api [CORE]
schema [CORE]

bake [CORE]
testsuite [CORE]

konsol [CORE]

To run a command, type 'cake shell_name [args]' To get help on a specific command, type 'cake shell_name help'

C: \ xampp \ htdocs pasta \ \ apressblog \ kek \ konsol>-app c:\xampp '-app' is not recognized as an internal or external command, operable program or batch file.

C: \ xampp \ htdocs pasta \ \ apressblog \ kek \ konsol>

what are the path settings I need to set for creating a controller from console ? I tried to change the app path but, when I type command cake It goes app directory to console,

Eğer bana bu sorunu çözmek için yardım eder misiniz

Ben bir denetleyicisi oluşturmak çalıştığımda aşağıdaki hatayı alıyorum:

C:\xampp\htdocs\cake\apressblog\cake\console>cake bake controller news

♀
Welcome to CakePHP v1.3.4 Console
---------------------------------------------------------------
App : console
Path: C:\xampp\htdocs\cake\apressblog\cake\console
---------------------------------------------------------------

Creating file C:\xampp\htdocs\cake\apressblog\cake\console\controllers\news_cont
roller.php
Wrote `C:\xampp\htdocs\cake\apressblog\cake\console\controllers\news_controller.
php`

You can download SimpleTest from http://simpletest.org
Bake is detecting possible fixtures..

Warning: include_once(C:\xampp\htdocs\cake\apressblog\cake\console\config\databa
se.php): failed to open stream: No such file or directory in C:\xampp\htdocs\cak
e\apressblog\cake\libs\model\connection_manager.php on line 23

Warning: include_once(): Failed opening 'C:\xampp\htdocs\cake\apressblog\cake\co
nsole\config\database.php' for inclusion (include_path='.;\xampp\php\PEAR') in C
:\xampp\htdocs\cake\apressblog\cake\libs\model\connection_manager.php on line 23


Fatal error: ConnectionManager::getDataSource - Non-existent data source default
 in C:\xampp\htdocs\cake\apressblog\cake\libs\model\connection_manager.php on li
ne 102


C:\xampp\htdocs\cake\apressblog\cake\console>

0 Cevap