{"action":"created","issue":{"url":"https://api.github.com/repos/laruence/php-yaf/issues/147","labels_url":"https://api.github.com/repos/laruence/php-yaf/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/laruence/php-yaf/issues/147/comments","events_url":"https://api.github.com/repos/laruence/php-yaf/issues/147/events","html_url":"https://github.com/laruence/php-yaf/pull/147","id":53600685,"number":147,"title":"Update yaf_controller.c","user":{"login":"lilj","id":2168382,"avatar_url":"https://avatars.githubusercontent.com/u/2168382?v=3","gravatar_id":"","url":"https://api.github.com/users/lilj","html_url":"https://github.com/lilj","followers_url":"https://api.github.com/users/lilj/followers","following_url":"https://api.github.com/users/lilj/following{/other_user}","gists_url":"https://api.github.com/users/lilj/gists{/gist_id}","starred_url":"https://api.github.com/users/lilj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilj/subscriptions","organizations_url":"https://api.github.com/users/lilj/orgs","repos_url":"https://api.github.com/users/lilj/repos","events_url":"https://api.github.com/users/lilj/events{/privacy}","received_events_url":"https://api.github.com/users/lilj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-07T06:00:39Z","updated_at":"2015-01-08T06:57:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laruence/php-yaf/pulls/147","html_url":"https://github.com/laruence/php-yaf/pull/147","diff_url":"https://github.com/laruence/php-yaf/pull/147.diff","patch_url":"https://github.com/laruence/php-yaf/pull/147.patch"},"body":"比对了一下display 和 render ,让这哥俩更像一点 \r\n\r\n\r\n---------------------------以下只是问一下,没有改动-----------------------------\r\n\r\n没学过c, 不是很明白那个\r\n\r\nzend_read_property(yaf_controller_ce, instance, ZEND_STRL(YAF_CONTROLLER_PROPERTY_NAME_VIEW), 1 TSRMLS_CC);\r\n\r\n参数 1和0 的区别"},"comment":{"url":"https://api.github.com/repos/laruence/php-yaf/issues/comments/69143131","html_url":"https://github.com/laruence/php-yaf/pull/147#issuecomment-69143131","issue_url":"https://api.github.com/repos/laruence/php-yaf/issues/147","id":69143131,"user":{"login":"lilj","id":2168382,"avatar_url":"https://avatars.githubusercontent.com/u/2168382?v=3","gravatar_id":"","url":"https://api.github.com/users/lilj","html_url":"https://github.com/lilj","followers_url":"https://api.github.com/users/lilj/followers","following_url":"https://api.github.com/users/lilj/following{/other_user}","gists_url":"https://api.github.com/users/lilj/gists{/gist_id}","starred_url":"https://api.github.com/users/lilj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilj/subscriptions","organizations_url":"https://api.github.com/users/lilj/orgs","repos_url":"https://api.github.com/users/lilj/repos","events_url":"https://api.github.com/users/lilj/events{/privacy}","received_events_url":"https://api.github.com/users/lilj/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T06:57:28Z","updated_at":"2015-01-08T06:57:28Z","body":"哇, 终于引鸟哥出山了.\r\n\r\n不是一样, yaf_controller_display和yaf_controller_render 90%一样, 因此我让他们91%一样. 我承认这很无聊变态. 请无视我吧\r\n\r\n我的需求是这样, 为同一个项目的各个Controller 指定不同的 View, (目前View似乎只能在Bootstrap里面设置了才有效)\r\n\r\n测试流程\r\n在Controller 里面设置\r\n$view = new Smarty_View; // 或其他\r\nYaf_Dispatcher::getInstance()->setView($view);\r\n调用 $this->getView(); 还是 Yaf_View_Simple.\r\n\r\n语言有点乱, 不知能否表述明白. 谢谢.\r\n\r\n\r\n"}}