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

how I can pass an argument in a model when created instantiate any class?

i want pass values for a model in specific.

for example

in a IndexController


<?php 

class IndexController extends \Phalcon\Mvc\Controller
{
    public function indexAction(){
        $person = new Person('Mary');
    }

it's duplicated post!

Original post