R
R
Roman Rakzin2015-02-23 00:52:47
PHP
Roman Rakzin, 2015-02-23 00:52:47

How to work with models in Phalcon?

Good afternoon,
How to work with models in Phalcon. How to connect them in the
PS controller - I've already been here - docs.phalconphp.com/ru/latest/reference/models.html
It turns out that just write require and the path to the model, or what is right?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KIN1991, 2015-02-23
@KIN1991

Why require? Phalcon has an autoloader. You can call the model directly.
for example
$user = User::find();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question