models/Customers.php
class Customers extends Model {
function getSource(){
return 'person';
}
models/Employee.php
class Employee extends Model {
function getSource(){
return 'person';
}
}
However this seems wrong, you should have 1 model per table, i dont see how making 2 mdoels of a same table can be worth it.
$customer = new Models/Customer();
$cutomer->is_employee = 1;
$cusotmer->save();
$next_customer = new Models/Customer();
$cutomer->is_employee = 0;
//create a basket id or whatever
$customer->save();
?
//edit
How to create two views at the same model
inside the controller action you can do
public function indexAction(){
$this->view->pick('index/customer');
//or
$this->view->pick('common/employee')
...
//you get the idea
}
https://docs.phalcon.io/en/latest/reference/views.html#picking-views