{"action":"created","issue":{"url":"https://api.github.com/repos/bzick/fenom/issues/128","labels_url":"https://api.github.com/repos/bzick/fenom/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/bzick/fenom/issues/128/comments","events_url":"https://api.github.com/repos/bzick/fenom/issues/128/events","html_url":"https://github.com/bzick/fenom/issues/128","id":53336138,"number":128,"title":"Ошибка в Render при использовании дополнительного провайдера","user":{"login":"Sleuthhound","id":1821565,"avatar_url":"https://avatars.githubusercontent.com/u/1821565?v=3","gravatar_id":"","url":"https://api.github.com/users/Sleuthhound","html_url":"https://github.com/Sleuthhound","followers_url":"https://api.github.com/users/Sleuthhound/followers","following_url":"https://api.github.com/users/Sleuthhound/following{/other_user}","gists_url":"https://api.github.com/users/Sleuthhound/gists{/gist_id}","starred_url":"https://api.github.com/users/Sleuthhound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sleuthhound/subscriptions","organizations_url":"https://api.github.com/users/Sleuthhound/orgs","repos_url":"https://api.github.com/users/Sleuthhound/repos","events_url":"https://api.github.com/users/Sleuthhound/events{/privacy}","received_events_url":"https://api.github.com/users/Sleuthhound/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-04T13:18:10Z","updated_at":"2015-01-08T08:19:34Z","closed_at":"2015-01-06T21:57:07Z","body":"Попробовал работу с дополнительными провайдерами. Заметил, что при использовании флага Fenom::AUTO_RELOAD возникает ошибка в методе isValid() класса Render:\r\nNotice:  Undefined offset: 0 in Fenom/Render.php on line 179\r\n\r\nПример кода:\r\n```php\r\nrequire 'src/Fenom.php';\r\nFenom::registerAutoload('src');\r\n\r\n$view = new Fenom(new Fenom\\Provider('view'));\r\n$view->setCompileDir('cache');\r\n$view->setOptions(Fenom::AUTO_RELOAD);\r\n\r\n$view->addProvider('test', new Fenom\\Provider('test'));\r\n$view->display('test:test.tpl', array());\r\n```\r\nЗначение при выполнении:\r\n```php\r\n[_depends:protected] => Array (\r\n    [test] => Array (\r\n        [test:test.tpl] => 1420376538\r\n    )\r\n)\r\n```"},"comment":{"url":"https://api.github.com/repos/bzick/fenom/issues/comments/69148818","html_url":"https://github.com/bzick/fenom/issues/128#issuecomment-69148818","issue_url":"https://api.github.com/repos/bzick/fenom/issues/128","id":69148818,"user":{"login":"Sleuthhound","id":1821565,"avatar_url":"https://avatars.githubusercontent.com/u/1821565?v=3","gravatar_id":"","url":"https://api.github.com/users/Sleuthhound","html_url":"https://github.com/Sleuthhound","followers_url":"https://api.github.com/users/Sleuthhound/followers","following_url":"https://api.github.com/users/Sleuthhound/following{/other_user}","gists_url":"https://api.github.com/users/Sleuthhound/gists{/gist_id}","starred_url":"https://api.github.com/users/Sleuthhound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sleuthhound/subscriptions","organizations_url":"https://api.github.com/users/Sleuthhound/orgs","repos_url":"https://api.github.com/users/Sleuthhound/repos","events_url":"https://api.github.com/users/Sleuthhound/events{/privacy}","received_events_url":"https://api.github.com/users/Sleuthhound/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T08:19:34Z","updated_at":"2015-01-08T08:19:34Z","body":"Версия 2.4.2\r\nНаблюдается ошибка Render::isValid() -> Provider::getLastModified() -> Provider::getTemplatePath()\r\n\r\nИз класса Render\r\n```php\r\n...\r\n$provider->getLastModified(key($templates))\r\n...\r\n```\r\nkey($templates) принимает например значение test:test.tpl, как следствие Provider::getTemplatePath() вызывает исключение 'Template test:test.tpl not found'\r\n"}}