Pattert PageController PHP

Simple PageControlle class

abstract class PageController
{
    private $request;

    public function __construct()
    {
        $this->request = Registry;
    }

    abstract function process();

    public function forward($resource)
    {
        include ($resource);
        exit(0);
    }

    public function getRequest()
    {
        return $this->request;
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *