We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon problem --enable-webtools in LAMP (Ubuntu)

Good morning, excuse my English,

when I create a project with

$ phalcon project invo --enable-webtools,

-> not generated webtools files ,

on the other hand when I create a project with

phalcon project invo multi-module, msj error

-> Error: Type "multi-module" is not supported yet

NOTE: (Phalcon DevTools (1.2.3), Ubuntu 13.04).

thanks

Note: $ phalcon commads :

Phalcon DevTools (1.2.3)

Available commands: commands (alias of: list, enumerate) controller (alias of: create-controller) model (alias of: create-model) all-models (alias of: create-all-models) project (alias of: create-project) scaffold migration webtools

$ phalcon project --help

Phalcon DevTools (1.2.3)

Help: Creates a project

Usage: project [name] [type] [directory] [enable-webtools]

Arguments: help Shows this help text

Example phalcon project store simple

Options: --name Name of the new project --enable-webtools Determines if webtools should be enabled [optional] --directory=s Base path on which project will be created [optional] --type=s Type of the application to be generated (micro, simple, multi-module) --template-path Specify a template path [optional] --use-config-ini Use a ini file as configuration file [optional] --trace Shows the trace of the framework in case of exception. [optional] --help Shows this help

please help



98.9k

Hi Marco, it must be:

phalcon project test --type modules
edited Oct '14

Thanks, I have a problem with webtools

$ phalcon project store --type=modules  --trace

$ cd store

$ phalcon webtools enable

------------------------------------

Phalcon DevTools (1.2.3)

PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/bootstrap/js/bootstrap.min.js): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/TBootstrap.php on line 34
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\TBootstrap::install() /usr/share/php/Phalcon/Web/Tools.php:286
PHP   7. copy() /usr/share/php/Phalcon/Web/TBootstrap.php:34
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/bootstrap/css/bootstrap.min.css): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/TBootstrap.php on line 41
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\TBootstrap::install() /usr/share/php/Phalcon/Web/Tools.php:286
PHP   7. copy() /usr/share/php/Phalcon/Web/TBootstrap.php:41
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/bootstrap/img/glyphicons-halflings.png): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/TBootstrap.php on line 49
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\TBootstrap::install() /usr/share/php/Phalcon/Web/Tools.php:286
PHP   7. copy() /usr/share/php/Phalcon/Web/TBootstrap.php:49
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/lib/codemirror.js): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 49
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:49
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/lib/codephalcon.js): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 50
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:50
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/mode/php/php.js): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 53
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:53
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/mode/css/css.js): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 57
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:57
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/mode/clike/clike.js): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 61
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:61
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/mode/xml/xml.js): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 65
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:65
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/lib/codemirror.css): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 73
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:73
PHP Warning:  copy(/usr/share/php/Phalcon/Web/Tools/resources/codemirror/lib/codephalcon.css): failed to open stream: No such file or directory in /usr/share/php/Phalcon/Web/CodeMirror.php on line 74
PHP Stack trace:
PHP   1. {main}() /usr/bin/phalcon:0
PHP   2. Phalcon\Script->run() /usr/bin/phalcon:84
PHP   3. Phalcon\Script->dispatch() /usr/share/php/Phalcon/Script.php:138
PHP   4. Phalcon\Commands\Builtin\Webtools->run() /usr/share/php/Phalcon/Script.php:115
PHP   5. Phalcon\Web\Tools::install() /usr/share/php/Phalcon/Commands/Builtin/Webtools.php:55
PHP   6. Phalcon\Web\CodeMirror::install() /usr/share/php/Phalcon/Web/Tools.php:287
PHP   7. copy() /usr/share/php/Phalcon/Web/CodeMirror.php:74
-------------------------------------------------

-browser --> https://store.vh/webtools.php

 Warning: require(Phalcon/Web/Tools.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/intervlan/vhosts/store/public/webtools.php on line 27

thanks

NOTE: phalcon install via PEAR...



98.9k
Accepted
answer

Can you install devtools via composer or clone the repo from Github, it seems the pear installation is quite old

good -->via composer

thanks