In the Model layer set to return to other data table name

Like my model controller is family but I need to manipulate data table is user I need how to set up in the controller?Also, if set table prefix?



4.3k

Maybe you can overwrite the getSource() method of your model?

Look here: http://docs.phalconphp.com/en/latest/reference/models.html#creating-models