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

Webtools - no configuration menu

Hi guys,

I have try to follow this tutorial: https://player.vimeo.com/video/42367665 . So like it is in the tutorial i have created a project using the command: phalcon create-project invo --enable-webtools , and then i have open the web page: https://localhost/invo/webtools.php , but i can not find the Configuration menu like i have it in the video tutorial? Can someone help me about this, because i can not use this webtools, i get error messages when i want to create controler like this one: "Create Controller

Sorry, WebTools doesn't know where the controllers directory is. Please add the valid path for controllersDir in the application section."

ScreenShot



81.2k
Accepted
answer

That's config.php file in the folder config app, try this

<?php
defined('APP_PATH') || define('APP_PATH', realpath('.'));
return new \Phalcon\Config(array(
'database' => array(
    'adapter'     => 'Mysql',
    'host'        => 'localhost',
    'username'    => 'root',
    'password'    => 'sys',
    'dbname'      => 'mep',
    'charset'     => 'utf8',
),
'application' => array(
     'controllersDir' => __DIR__ . '/../../app/controllers/',
    'modelsDir'      => __DIR__ . '/../../app/models/',
    'migrationsDir'  => __DIR__ . '/../../app/migrations/',
    'viewsDir'       => __DIR__ . '/../../app/views/',
    'pluginsDir'     => __DIR__ . '/../../app/plugins/',
    'libraryDir'     => __DIR__ . '/../../app/library/',
    'cacheDir'       => __DIR__ . '/../../app/cache/',
    'baseUri'        => '/mep/',
)
));

This worked, thank you @jeiel

That's config.php file in the folder config app, try this

<?php defined('APP_PATH') || define('APP_PATH', realpath('.')); return new \Phalcon\Config(array( 'database' => array( 'adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'root', 'password' => 'sys', 'dbname' => 'mep', 'charset' => 'utf8', ), 'application' => array( 'controllersDir' => DIR . '/../../app/controllers/', 'modelsDir' => DIR . '/../../app/models/', 'migrationsDir' => DIR . '/../../app/migrations/', 'viewsDir' => DIR . '/../../app/views/', 'pluginsDir' => DIR . '/../../app/plugins/', 'libraryDir' => DIR . '/../../app/library/', 'cacheDir' => DIR . '/../../app/cache/', 'baseUri' => '/mep/', ) ));