-
-
Save inoas/c306493a63ccffca9e6ced0bec07f22f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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