1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
<?php
namespace hji\construction\front\controllers;
use hji\construction\core\Controller;
use hji\construction\models\listings\ListingsModel;
class ListingsController extends Controller
{
private $model;
public function __construct(ListingsModel $listingsModel)
{
$this->model = $listingsModel;
}
public function Action_Search($params)
{
$this->model->setSearchParams($params);
$this->model->setMethod('search');
}
public function Action_Get($params)
{
$this->model->setGetParams($params);
$this->model->setMethod('get');
}
public function Action_ShowListing($params)
{
$this->model->setGetParams($params);
$this->model->setMethod('get');
}
}