public function getLinkedProductsDataProvider($typeCode = null) { return new CActiveDataProvider(get_class($this), ['criteria' => $this->getLinkedProductsCriteria($typeCode)]); }
public function run() { if (!$this->product) { return; } $this->render($this->view, ['dataProvider' => $this->product->getLinkedProductsDataProvider($this->code)]); }