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

Di Dispacher

i need little help i want create a bundle in project but i didn't know how create this

apps/
    backend/
        config/
        controllers/
            users/ (bundle)
                accountControler.php
                registerControler.php
            newsletter/
                mailController.php
                groupController.php
        views/
        Module.php
    frontend/
    models/

If you use namspaces you can do it like this in your loader:

$loader->registerNamespaces(
    array(
       "Store\\Admin\\Controllers" => "../bundles/admin/controllers/",
       "Store\\Admin\\Models"      => "../bundles/admin/models/"
    )
);