<?php /* * This file is part of the Knob-base package. * * (c) José María Valera Reales <*****@*****.**> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Controllers\HomeController; /** * Page. * * @link https://codex.wordpress.org/Page_Templates * @link https://codex.wordpress.org/Theme_Development */ $controller = new HomeController(); echo $controller->getSingle('page');
<?php /* * This file is part of the Knob-base package. * * (c) José María Valera Reales <*****@*****.**> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Controllers\HomeController; /** * Single. * * @link https://codex.wordpress.org/Theme_Development */ $controller = new HomeController(); echo $controller->getSingle('post');