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

i want to use webtools

i use phalcon1.3 i have created my project with command create -project webspace --enable-webtools good i had my skeleton project i can access to https://localhost/webspace/webtools.php https://www.dropbox.com/s/ix5wel7u0cjworz/webtool.PNG?dl=0 but when i want to create my models with it i can't i show this error: Adapter is not supported +6 php notices like:Trying to get property of non-object in C:\phalcon-devtools\scripts\Phalcon\Builder\AllModels.php on line 82,Notice: Constant PTOOLS_IP already defined in C:\wamp\www\webspace\public\webtools.config.php on line 30

thank you

You config the database in app/config/config.php?



1.4k

<?php

return new \Phalcon\Config(array( 'database' => array( 'adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'root', 'password' => '', 'dbname' => 'webspace', 'charset' => 'utf8', ), 'application' => array( 'controllersDir' => DIR . '/../../app/controllers/', 'modelsDir' => DIR . '/../../app/models/', 'viewsDir' => DIR . '/../../app/views/', 'pluginsDir' => DIR . '/../../app/plugins/', 'libraryDir' => DIR . '/../../app/library/', 'cacheDir' => DIR . '/../../app/cache/', 'baseUri' => '/webspace/', ) ));



1.4k

'application' => array( 'controllersDir' => DIR . '/../../app/controllers/', 'modelsDir' => DIR . '/../../app/models/', 'viewsDir' => DIR . '/../../app/views/', 'pluginsDir' => DIR . '/../../app/plugins/', 'libraryDir' => DIR . '/../../app/library/', 'cacheDir' => DIR . '/../../app/cache/', 'baseUri' => '/webspace/', )