for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Bedard\Shop\FormWidgets;
use Backend\Classes\FormWidgetBase;
/**
* CartHistory Form Widget.
*/
class CartHistory extends FormWidgetBase
{
* {@inheritdoc}
protected $defaultAlias = 'bedard_shop_cart_history';
public function render()
$this->prepareVars();
return $this->makePartial('carthistory');
}
* Prepares the form widget view data.
public function prepareVars()
$this->vars['statuses'] = $this->model->statuses;
public function loadAssets()
$this->addJs('/plugins/bedard/shop/assets/dist/vendor.min.js', 'Bedard.Shop');
$this->addJs('/plugins/bedard/shop/assets/dist/cart_history.min.js', 'Bedard.Shop');
public function getSaveValue($value)
return $value;