function execute() { $model = new connectionUserModel(); $user = ConnectionHelper::userLogin(); $model->addFavorite((int) $user['id'], (int) Request::post('user')); return true; }
function execute() { $model = new connectionUserModel(); $model->addFavorite((int) Request::post('user'), (int) Request::post('favorite')); }