{"action":"created","issue":{"url":"https://api.github.com/repos/piotr-cz/Twig-extensions-Joomla/issues/3","labels_url":"https://api.github.com/repos/piotr-cz/Twig-extensions-Joomla/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/piotr-cz/Twig-extensions-Joomla/issues/3/comments","events_url":"https://api.github.com/repos/piotr-cz/Twig-extensions-Joomla/issues/3/events","html_url":"https://github.com/piotr-cz/Twig-extensions-Joomla/issues/3","id":57291282,"number":3,"title":"Using twig extension in jooma cms","user":{"login":"vladotesanovic","id":738638,"avatar_url":"https://avatars.githubusercontent.com/u/738638?v=3","gravatar_id":"","url":"https://api.github.com/users/vladotesanovic","html_url":"https://github.com/vladotesanovic","followers_url":"https://api.github.com/users/vladotesanovic/followers","following_url":"https://api.github.com/users/vladotesanovic/following{/other_user}","gists_url":"https://api.github.com/users/vladotesanovic/gists{/gist_id}","starred_url":"https://api.github.com/users/vladotesanovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladotesanovic/subscriptions","organizations_url":"https://api.github.com/users/vladotesanovic/orgs","repos_url":"https://api.github.com/users/vladotesanovic/repos","events_url":"https://api.github.com/users/vladotesanovic/events{/privacy}","received_events_url":"https://api.github.com/users/vladotesanovic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-11T09:08:41Z","updated_at":"2015-02-11T12:12:00Z","closed_at":null,"body":"Thanks for building this extension.\r\n\r\nMy problem was to implement this in current Joomla installation ( 3.3 ).\r\n\r\nWhat I did ( just to get it work ):\r\n\\joomla\\language\\src\\Language.php\r\n\r\nin __construct() functio\r\nBefore everything.\r\n```\r\n$this->lang = \\JFactory::getLanguage()->getTag();\r\n```\r\n\r\nin loadLanguage() function\r\n\r\n```\r\n/*\r\nif (file_exists($filename))\r\n{\r\n\t$strings = $this->parse($filename);\r\n}\r\n*/\r\n\r\n$strings = array();\r\n\r\n\t\tforeach(\\JFactory::getLanguage()->getPaths() AS $key => $languages)\r\n\t\t{\r\n\t\t\tforeach (array_keys($languages) as $lng) {\r\n\r\n\t\t\t\tif(file_exists($lng))\r\n\t\t\t\t{\r\n\t\t\t\t\t$strings = array_merge($this->parse($lng), $strings);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/piotr-cz/Twig-extensions-Joomla/issues/comments/73871801","html_url":"https://github.com/piotr-cz/Twig-extensions-Joomla/issues/3#issuecomment-73871801","issue_url":"https://api.github.com/repos/piotr-cz/Twig-extensions-Joomla/issues/3","id":73871801,"user":{"login":"vladotesanovic","id":738638,"avatar_url":"https://avatars.githubusercontent.com/u/738638?v=3","gravatar_id":"","url":"https://api.github.com/users/vladotesanovic","html_url":"https://github.com/vladotesanovic","followers_url":"https://api.github.com/users/vladotesanovic/followers","following_url":"https://api.github.com/users/vladotesanovic/following{/other_user}","gists_url":"https://api.github.com/users/vladotesanovic/gists{/gist_id}","starred_url":"https://api.github.com/users/vladotesanovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladotesanovic/subscriptions","organizations_url":"https://api.github.com/users/vladotesanovic/orgs","repos_url":"https://api.github.com/users/vladotesanovic/repos","events_url":"https://api.github.com/users/vladotesanovic/events{/privacy}","received_events_url":"https://api.github.com/users/vladotesanovic/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T12:12:00Z","updated_at":"2015-02-11T12:12:00Z","body":"yes, I understand.\r\n\r\nWhat I did:\r\nI created new View class that extend JViewLegacy, but in display method it implement your Twig exension.\r\n\r\nInstead of extending JViewLegacy i extend MyTwigView and in view component/view/myview/twig/ i store all twig templates.\r\n\r\nNo problem so far.  \r\n\r\n\r\n"}}