Hi,
Im using this sample: https://github.com/phalcon/mvc/tree/master/multiple
and i make a model file (Users.php) in models foldet in frontend.
Users.php:
<?php
use Phalcon\Mvc\Model;
use Phalcon\Mvc\Model\Validator\Email as EmailValidator;
use Phalcon\Mvc\Model\Validator\Uniqueness as UniquenessValidator;
class Users extends Model
{
public function getSource() {
return "eb_users";
}
}
and in the IndexController.php (in frontend):
<?php
namespace Multiple\Frontend\Controllers;
use Phalcon\Mvc\Controller;
class IndexController extends Controller
{
public function indexAction()
{
$user = Users::find();
}
}
but i have a this error:
Fatal error: Class 'Multiple\Frontend\Controllers\Users' not found in /var/www/html/xxxx/multi/apps/frontend/controllers/IndexController.php on line 12
why ?
sry for bad type english.