PHP code example of mtoolkit / mtoolkit-controller
1. Go to this page and download the library: Download mtoolkit/mtoolkit-controller library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mtoolkit / mtoolkit-controller example snippets
MToolkit\Controller\MPageController;
class Index extends MAbstractPageController
{
private $masterPage;
public function __construct()
{
parent::__construct(__DIR__.'/Index.view');
}
public function helloWorld()
{
return "Hello World";
}
}
/* @var $this Index */