פתיחת קובץ app/bootstrap.php
לשים בהערה את השורת קוד :
if (in_array('phar', \stream_get_wrappers())) {
// stream_wrapper_unregister('phar');
}
להכניס את הקבצים לתקיה
lib/internal/kint/kint.phar
לדרוש את הקובץ בראש המודול
<?php
namespace Anagal\SlickSliderDebug\Block;
use Magento\Framework\App\Config\ScopeConfigInterface;
require_once('lib/internal/kint/kint.phar');
class SlickSliderDebug extends \Magento\Framework\View\Element\Template{
public function getConfigValue($value){
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$scopeConfig = $objectManager->get(ScopeConfigInterface::class);
d($scopeConfig);
return $scopeConfig->getValue($value);
}
public function isEnabled(){
return $this->getConfigValue('newblocktab/general/enable');
}
public function getDisplayText($filed){
return $this->getConfigValue($filed);
}
}