PHP code example of mainio / c5-controller-extensions
1. Go to this page and download the library: Download mainio/c5-controller-extensions 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/ */
mainio / c5-controller-extensions example snippets
namespace Concrete\Package\YourPackage\Controller\SinglePage\Dashboard\YourPackage;
defined('C5_EXECUTE') or die("Access Denied.");
// Choose one of these (depending on your use case)
use \Mainio\C5\Twig\Page\Controller\DashboardPageController;
// OR
use \Concrete\Core\Page\Controller\DashboardPageController;
class YourPage extends DashboardPageController
{
use \Mainio\C5\ControllerExtensions\Controller\Extension\WhatEverExtension;
}