: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\View;
use Nextend\Framework\Pattern\GetPathTrait;
use Nextend\Framework\Pattern\MVCHelperTrait;
abstract class AbstractBlock {
* AbstractBlock constructor.
* @param MVCHelperTrait $MVCHelper
final public function __construct($MVCHelper) {
$this->setMVCHelper($MVCHelper);
protected function init() {
protected function renderTemplatePart($templateName) {
include self::getPath() . '/' . $templateName . '.php';
* Returns the HTML code of the display method
public function toHTML() {
public abstract function display();