<?php

namespace app\packages\services\widgets;

use yii\base\Widget;
use yii\helpers\ArrayHelper;
use app\packages\services\models\ServicesForm;
use Yii;

class Services extends Widget{

    public $_params = [];

    public function init(){
        parent::init();
    }

    public function run(){
    	$view = ArrayHelper::getValue($this->_params, 'view', 'services');
    	$slug = ArrayHelper::getValue($this->_params, 'slug', null);

    	$model = new ServicesForm;
        return $this->render($view, ['model' => $model, 'slug' => $slug]);
    }

}
<?php

namespace app\packages\services\widgets;

use yii\base\Widget;
use yii\helpers\ArrayHelper;
use app\packages\services\models\ServicesForm;
use Yii;

class Services extends Widget{

    public $_params = [];

    public function init(){
        parent::init();
    }

    public function run(){
    	$view = ArrayHelper::getValue($this->_params, 'view', 'services');
    	$slug = ArrayHelper::getValue($this->_params, 'slug', null);

    	$model = new ServicesForm;
        $model->scenario = 'borrow';
        return $this->render($view, ['model' => $model, 'slug' => $slug]);
    }

}
Add widget search, change form check bank, remove index.php for url
Add widget search, change form check bank, remove index.php for url
