{"action":"created","issue":{"url":"https://api.github.com/repos/WyriHaximus/TwigView/issues/14","repository_url":"https://api.github.com/repos/WyriHaximus/TwigView","labels_url":"https://api.github.com/repos/WyriHaximus/TwigView/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/WyriHaximus/TwigView/issues/14/comments","events_url":"https://api.github.com/repos/WyriHaximus/TwigView/issues/14/events","html_url":"https://github.com/WyriHaximus/TwigView/issues/14","id":116859172,"number":14,"title":"How does it work on cakephp3 ?","user":{"login":"y4nn0ff","id":4608353,"avatar_url":"https://avatars.githubusercontent.com/u/4608353?v=3","gravatar_id":"","url":"https://api.github.com/users/y4nn0ff","html_url":"https://github.com/y4nn0ff","followers_url":"https://api.github.com/users/y4nn0ff/followers","following_url":"https://api.github.com/users/y4nn0ff/following{/other_user}","gists_url":"https://api.github.com/users/y4nn0ff/gists{/gist_id}","starred_url":"https://api.github.com/users/y4nn0ff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y4nn0ff/subscriptions","organizations_url":"https://api.github.com/users/y4nn0ff/orgs","repos_url":"https://api.github.com/users/y4nn0ff/repos","events_url":"https://api.github.com/users/y4nn0ff/events{/privacy}","received_events_url":"https://api.github.com/users/y4nn0ff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-11-13T21:45:44Z","updated_at":"2016-04-07T07:00:03Z","closed_at":"2015-12-16T16:01:44Z","body":"Hi,\r\n\r\nHere what i did : \r\nInstall via twigview via composer\r\n```\r\ncomposer require wyrihaximus/twig-view \r\nUsing version dev-master for wyrihaximus/twig-view\r\n./composer.json has been updated\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\n  - Installing twig/twig (v1.23.1)\r\n    Downloading: 100%         \r\n\r\n  - Installing asm89/twig-cache-extension (1.1.0)\r\n    Downloading: 100%         \r\n\r\n  - Installing wyrihaximus/twig-view (dev-master ac044a2)\r\n    Cloning ac044a256c9cc29a30c402fcbd3c2cd1d214729e\r\n\r\nWriting lock file\r\nGenerating autoload files\r\n```\r\n\r\nLoad plugin in boostrap:\r\n```\r\nPlugin::load('Migrations');\r\nPlugin::load('WyriHaximus/TwigView', [\r\n\t'bootstrap' => true,\r\n]);\r\n```\r\n\r\nInitialise $viewClass : \r\n```\r\nsrc/Controller/AppController.php\r\nclass AppController extends Controller\r\n{\r\n\r\n\tpublic $viewClass = '\\WyriHaximus\\TwigView\\View\\TwigView';\r\n        .....\r\n}\r\n```\r\n\r\nFirst little issue, these lines stop working\r\n```\r\nsrc/Template/Layout/default.ctp\r\n<?= $this->fetch('meta') ?>\r\n    <?= $this->fetch('css') ?>\r\n    <?= $this->fetch('script') ?>\r\n```\r\n\r\nBut the real probleme is assign variable and use it in template, I did:\r\n```\r\nsrc/Controller/AppController.php\r\nclass AppController extends Controller\r\n{\r\n\r\n\tpublic function initialize()\r\n    {\r\n        parent::initialize();\r\n\r\n        $this->loadComponent('RequestHandler');\r\n        $this->loadComponent('Flash');\r\n\t\t\r\n\t\t$this->set('title',\"test twig\");\r\n\t\r\n    }\r\n}\r\n```\r\n\r\n```\r\nsrc/Template/Layout/default.ctp\r\n{{ title }}\r\n<?= $this->fetch('content') ?>\r\n```\r\n\r\nAnd the render of variable is `{{ title }}` instead of `test twig` when i load the page on a browser.\r\n\r\nWhere is the mistake ? could you help me ?\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/WyriHaximus/TwigView/issues/comments/206723806","html_url":"https://github.com/WyriHaximus/TwigView/issues/14#issuecomment-206723806","issue_url":"https://api.github.com/repos/WyriHaximus/TwigView/issues/14","id":206723806,"user":{"login":"ozee31","id":5025797,"avatar_url":"https://avatars.githubusercontent.com/u/5025797?v=3","gravatar_id":"","url":"https://api.github.com/users/ozee31","html_url":"https://github.com/ozee31","followers_url":"https://api.github.com/users/ozee31/followers","following_url":"https://api.github.com/users/ozee31/following{/other_user}","gists_url":"https://api.github.com/users/ozee31/gists{/gist_id}","starred_url":"https://api.github.com/users/ozee31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozee31/subscriptions","organizations_url":"https://api.github.com/users/ozee31/orgs","repos_url":"https://api.github.com/users/ozee31/repos","events_url":"https://api.github.com/users/ozee31/events{/privacy}","received_events_url":"https://api.github.com/users/ozee31/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T07:00:03Z","updated_at":"2016-04-07T07:00:03Z","body":"Or use concatenation : \r\n\r\n```twig\r\n{'action': 'delete/' ~ user.id}\r\n```"}}