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

Cannot load model

Hi, i'm beginner use Phalcon. i uploaded all files to live server, but it is not worked. the log is, cannot load model.

$row = new ahdata();
$br = ahdata::find(array("c_status = 1"));

I found this 2 line script above, make it not work. if i remove this script or i hide it. then the page will work. What i need to do here?

edited Nov '18

Try like this:

$br = ahdata::find("c_status = 1");

or this:

$br = ahdata::find([
    'conditions' = 'c_status = :status:',
    'bind' => ['status' => 1]
]);

in my local computer it is work. when upload it, its not working.