{"action":"closed","issue":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/11839","repository_url":"https://api.github.com/repos/phalcon/cphalcon","labels_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11839/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11839/comments","events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11839/events","html_url":"https://github.com/phalcon/cphalcon/issues/11839","id":157368720,"number":11839,"title":"Phalcon\\Tag::setDefaults() in Partial View","user":{"login":"nkrh","id":5833193,"avatar_url":"https://avatars3.githubusercontent.com/u/5833193?v=4","gravatar_id":"","url":"https://api.github.com/users/nkrh","html_url":"https://github.com/nkrh","followers_url":"https://api.github.com/users/nkrh/followers","following_url":"https://api.github.com/users/nkrh/following{/other_user}","gists_url":"https://api.github.com/users/nkrh/gists{/gist_id}","starred_url":"https://api.github.com/users/nkrh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkrh/subscriptions","organizations_url":"https://api.github.com/users/nkrh/orgs","repos_url":"https://api.github.com/users/nkrh/repos","events_url":"https://api.github.com/users/nkrh/events{/privacy}","received_events_url":"https://api.github.com/users/nkrh/received_events","type":"User","site_admin":false},"labels":[{"id":13573059,"url":"https://api.github.com/repos/phalcon/cphalcon/labels/Bug%20-%20Medium","name":"Bug - Medium","color":"d7e102","default":false},{"id":903580634,"url":"https://api.github.com/repos/phalcon/cphalcon/labels/stale","name":"stale","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":{"login":"sergeyklay","id":1256298,"avatar_url":"https://avatars2.githubusercontent.com/u/1256298?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeyklay","html_url":"https://github.com/sergeyklay","followers_url":"https://api.github.com/users/sergeyklay/followers","following_url":"https://api.github.com/users/sergeyklay/following{/other_user}","gists_url":"https://api.github.com/users/sergeyklay/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyklay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyklay/subscriptions","organizations_url":"https://api.github.com/users/sergeyklay/orgs","repos_url":"https://api.github.com/users/sergeyklay/repos","events_url":"https://api.github.com/users/sergeyklay/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyklay/received_events","type":"User","site_admin":false},"assignees":[{"login":"sergeyklay","id":1256298,"avatar_url":"https://avatars2.githubusercontent.com/u/1256298?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeyklay","html_url":"https://github.com/sergeyklay","followers_url":"https://api.github.com/users/sergeyklay/followers","following_url":"https://api.github.com/users/sergeyklay/following{/other_user}","gists_url":"https://api.github.com/users/sergeyklay/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyklay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyklay/subscriptions","organizations_url":"https://api.github.com/users/sergeyklay/orgs","repos_url":"https://api.github.com/users/sergeyklay/repos","events_url":"https://api.github.com/users/sergeyklay/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyklay/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-05-29T04:32:33Z","updated_at":"2018-04-17T04:41:58Z","closed_at":"2018-04-17T04:41:58Z","author_association":"NONE","body":"Phalcon\\Tag::setDefaults() in partial view overwrites parent view's tag defaults.\n\nmain.phtml\n\n``` php\n<?php \nPhalcon\\Tag::setDefaults(['field1' => 'value1', 'field2' => 'field2']);\n$this->partial('partial', ['data' => ['field3' => 'value3']]);\necho Phalcon\\Tag::textField('field1');\n```\n\npartial.phtml\n\n``` php\n<?php \nPhalcon\\Tag::setDefaults($data);\n```\n\nProduces : \n\n``` html\n<input type=\"text\" id=\"field1\" name=\"field1\" />\n```\n\ntest.php:\n\n``` php\n<?php\nuse Phalcon\\Mvc\\View;\nuse Phalcon\\Mvc\\Application;\nuse Phalcon\\DI\\FactoryDefault;\n\n$di = new FactoryDefault();\n$di->set('view', function () {\n    $view = new View\\Simple();\n    return $view;\n}, true);\n\ntry {\n    $application = new Application($di);\n    echo $application->view->render('main');\n} catch (\\Exception $e) {\n    echo $e->getMessage();\n}\n```\n\nPHP: 5.6.12\nPhalcon: 2.0.8\nOS: Windows 8.1\n"}}
{"actor":{"display_login":"sergeyklay"}}