: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\View;
use Nextend\Framework\Controller\AbstractController;
use Nextend\Framework\Pattern\GetPathTrait;
use Nextend\Framework\Pattern\MVCHelperTrait;
abstract class AbstractView {
/** @var AbstractController */
/** @var AbstractLayout */
* AbstractView constructor.
* @param AbstractController $controller
public function __construct($controller) {
$this->controller = $controller;
$this->setMVCHelper($controller);
* @return false|string output is a safe file, so nothing to escape.
protected function render($templateName) {
include self::getPath() . '/Template/' . $templateName . '.php';
* @return AbstractController
public function getController() {
return $this->controller;
public abstract function display();