Phalcon Devtools (2.0.0) PHP 5.5 Mysql 5.5.34 Apache 2.2.27 I installed with compose I created a project Created models with the phalcon models commands, it works. When I want to scaffold, the only answer I have is
Error: Parameter 'index' must be a string. Like that: [~/public_html/xxxxxxxxxxxxxxx.com/etht]# phalcon scaffold Membre
Phalcon DevTools (2.0.0) Error: Parameter 'index' must be a string
If I create Controller first with the command phalcon controller, it goes a little bit furthe, it create 2 files:
[~/public_html/xxxxxxxxxxxxxxx.com/etht]# ../phalcon-devtools/phalcon controller Membre
Phalcon DevTools (2.0.0) Success: Controller "Membre" was successfully created.
[~/public_html/xxxxxxxxxxxxxxx.com/etht]# ../phalcon-devtools/phalcon scaffold Membre
Phalcon DevTools (2.0.0) /home/wdiqcca/public_html/xxxxxxxxxxxxxxx.com/etht/app/views/layouts/membre.phtml /home/wdiqcca/public_html/xxxxxxxxxxxxxxx.com/etht/app/views/membre/index.phtml Error: Parameter 'index' must be a string
After that I tried webtools, but I don't have the Config choice, and even if my config file is setup I'm getting:
Sorry, WebTools doesn't know where is the controllers directory. Please add to application section controllersDir param with valid path. Sorry, WebTools doesn't know where is the models directory. Please add to application section modelsDir param with valid path.
My config file:
defined('APP_PATH') || define('APP_PATH', realpath('.')); return new \Phalcon\Config(array( 'database' => array( 'adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'myusername', 'password' => 'mypassword', 'dbname' => 'mydb', 'charset' => 'utf8' ), 'application' => array( 'controllersDir' => APP_PATH . '/app/controllers/', 'modelsDir' => APP_PATH . '/app/models/', 'migrationsDir' => APP_PATH . '/app/migrations/', 'viewsDir' => APP_PATH . '/app/views/', 'pluginsDir' => APP_PATH . '/app/plugins/', 'libraryDir' => APP_PATH . '/app/library/', 'cacheDir' => APP_PATH . '/app/cache/', 'baseUri' => '/etht/', )
Is there anyplace where I can see troubleshooting or is there someone who can help me?