Carry out the following steps:
Create another file named
controller.php
in our new add-on directory.Add the following content in it:
<?php defined('C5_EXECUTE') or die('Access Denied. '); class ProductInformationBlockController extends BlockController { protected $btTable = 'btProductInformation'; protected $btInterfaceWidth = "590"; protected $btInterfaceHeight = "450"; protected $btCacheBlockRecord = true; protected $btCacheBlockOutput = true; protected $btCacheBlockOutputOnPost = true; protected $btCacheBlockOutputForRegisteredUsers = true; protected $btCacheBlockOutputLifetime = CACHE_LIFETIME; public function getBlockTypeDescription() { return t("Embeds Product Information in your web page."); } public function getBlockTypeName() { return t("Product Information"); } public function view(){ $this->set('bID', $this->bID); $this->set('picture', $this...