Commit 69102747 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавили свойство, идентифицирующее подписку на блог

parent 1590e296
......@@ -90,6 +90,7 @@ class BidController extends \common\components\BaseController
Yii::$app->response->format = Response::FORMAT_JSON;
$model = new Bid;
$model->blog = true;
$model->scenario = Yii::$app->request->post('scenario');
if(Yii::$app->request->isAjax && $model->load(Yii::$app->request->post()))
{
......
......@@ -19,6 +19,7 @@ use common\modules\sessions\models\Session;
*/
class Bid extends \common\components\ActiveRecordModel
{
public $blog = false;
const SCENARIO_PROJECT = 'project';
const SCENARIO_CALLBACK = 'callback';
const SCENARIO_SUBSCRIBE = 'subscribe';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment