Search code examples
command-linemodelphalcondevtools

PhalconPHP: I have an error in create model by devtools


I'm using windows and my table name is "products"!

Command:

phalcon create-model --table-name products

Error:

Error: Unknow parameter 'table-name'

What is the problem?!


Solution

  • It must be:

    phalcon model --name products
    

    Or:

    phalcon model products
    

    If you need to check what options are available in certain command, type:

    phalcon model