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.

How created models and controllers in multi-modules site

Hi All,

I try to develop multi-module site with frontend and backend module

Initially I created project starting command in Pholcon Development Tool (see

phalcon create-project store —type=modules and got next structure

  • .phalcon
  • apps
  • /frondend
  • //config
  • //controllers
  • //models
  • //views
  • /Module.php
  • config
  • nbproject
  • public
  • .htaccess
  • index.html

After that I manually created

  • /backend
  • //config
  • //controllers
  • //models
  • //views
  • /Module.php

and added in apps directory.

I have two question I don’t find in —help command:

How I can create right module for instant with name “admin” but phalcon dev tool generate only “frontend” module.

How I can create model in necessary directory (choose right module). When I start command phalcon create-model --name=users --doc model created in /backend but I need in /frontend, how can I choose it. I use Phalcon DevTools (1.3.1) .

With best regards, Alexey

edited Jun '14

maybe, while invoking "phalcon model" command, use the


(or something like that) switch


Hi le51, Thank you for you unswer.

When I try command

phalcon scaffold --help

I get message unknown command.

Controller also created only in backend module.

With best regards, Alexey



Anybody know about devision?