Skip to content

Instantly share code, notes, and snippets.

@inoas
Created October 12, 2017 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inoas/c306493a63ccffca9e6ced0bec07f22f to your computer and use it in GitHub Desktop.
Save inoas/c306493a63ccffca9e6ced0bec07f22f to your computer and use it in GitHub Desktop.
<?php declare(strict_types=1);
namespace FlexiCms\Controller\Admin;
use Cake\Core\Configure;
use Cake\Network\Exception\BadRequestException;
use Cake\Network\Exception\InternalErrorException;
use Cake\Network\Exception\NotFoundException;
use Cake\Network\Response;
use FlexiCms\Controller\Admin\AppController;
/**
* CmsTemplates Controller
*
* @property \FlexiCms\Model\Table\CmsTemplatesTable $CmsTemplates
*/
final class CmsTemplatesController extends AppController
{
/**
* Pushes enum variables then executes Crud and returns response;
*
* @return \Cake\Network\Response
*/
public function index() : Response
{
$this->set('kinds', $this->CmsTemplates->enum('kind'));
$this->set('outputContentTypes', $this->CmsTemplates->enum('output_content_type'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment