Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Can not see forms dir

Hi everyone!

I have got a weird problem. Well I want add prepared forms to my application so like in the INVO I created a forms directory in the app directory and there I put a LoginForm.php. Like I saw I have to register this directory to use inside forms. So I did this:

loader.php


$loader->registerDirs(
    array(
        $config->application->controllersDir,
        $config->application->modelsDir,
        $config->application->pluginsDir,
        $config->application->formsDir // I'm talking about this line
    )
)->register();

Then I saw this:


Notice: Undefined property: Phalcon\Config::$formsDir in /var/www/html/phalcon/gotei/app/config/loader.php on line 13

And obviously I can't use my LoginForm cause the forms's directory isn't registered properly. What's wrong? I have plugins directory too and I haven't got any troubles with it.

Thanks for answers



31.2k

Hi,

error comes from loader.php Show us that file (and especially line 13 ;-))



33.7k
Accepted
answer

Hi,

error comes from loader.php Show us that file (and especially line 13 ;-))

I shown already, even I added a comment to this line...

Thank you very much Andres, now it's working :)