This commit is contained in:
2024-05-20 15:37:46 +03:00
commit 00b7dbd0b7
10404 changed files with 3285853 additions and 0 deletions

View File

@ -0,0 +1,42 @@
<?php
namespace Nextend\Framework\View;
use Nextend\Framework\Controller\AbstractController;
use Nextend\Framework\Pattern\GetPathTrait;
use Nextend\Framework\Pattern\MVCHelperTrait;
abstract class AbstractViewAjax {
use GetPathTrait;
use MVCHelperTrait;
/** @var AbstractController */
protected $controller;
/**
* AbstractViewAjax constructor.
*
* @param AbstractController $controller
*
*/
public function __construct($controller) {
$this->controller = $controller;
$this->setMVCHelper($controller);
}
protected function render($templateName) {
ob_start();
include self::getPath() . '/Template/' . $templateName . '.php';
return ob_get_clean();
}
/**
* @return string
*/
public abstract function display();
}