{"action":"opened","issue":{"url":"https://api.github.com/repos/fex-team/fis3-smarty/issues/17","repository_url":"https://api.github.com/repos/fex-team/fis3-smarty","labels_url":"https://api.github.com/repos/fex-team/fis3-smarty/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/fis3-smarty/issues/17/comments","events_url":"https://api.github.com/repos/fex-team/fis3-smarty/issues/17/events","html_url":"https://github.com/fex-team/fis3-smarty/issues/17","id":155032893,"number":17,"title":"问：不知道为什么我的html framework似乎不起作用","user":{"login":"jemmyzheng","id":1635800,"avatar_url":"https://avatars.githubusercontent.com/u/1635800?v=3","gravatar_id":"","url":"https://api.github.com/users/jemmyzheng","html_url":"https://github.com/jemmyzheng","followers_url":"https://api.github.com/users/jemmyzheng/followers","following_url":"https://api.github.com/users/jemmyzheng/following{/other_user}","gists_url":"https://api.github.com/users/jemmyzheng/gists{/gist_id}","starred_url":"https://api.github.com/users/jemmyzheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemmyzheng/subscriptions","organizations_url":"https://api.github.com/users/jemmyzheng/orgs","repos_url":"https://api.github.com/users/jemmyzheng/repos","events_url":"https://api.github.com/users/jemmyzheng/events{/privacy}","received_events_url":"https://api.github.com/users/jemmyzheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-16T13:48:28Z","updated_at":"2016-05-16T13:48:28Z","closed_at":null,"body":"{html framework=\"common:static/mod.js\"}\r\n{head}\r\n<meta charset='utf-8'>\r\n<title>测试</title>\r\n{require name=\"common:static/reset.css\"}\r\n{require name=\"common:static/layout.less\"}\r\n{/head}\r\n{body id=\"screen\"}\r\n<div id=\"container\">\r\n    <div class=\"main\">\r\n        {block name=\"main\"}{/block}\r\n    </div>\r\n</div>\r\n{require name='common:page/layout.tpl'}{/body}\r\n{/html}\r\n\r\n这是layout的代码\r\n\r\n以下是浏览器上输出的html\r\ncommon:static/mod.js<html>\r\n<head>\r\n<meta charset='utf-8'>\r\n<title>测试</title>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/static/common/reset_f4172e1.css\"/><link rel=\"stylesheet\" type=\"text/css\" href=\"/static/common/layout_9967cf4.css\"/></head>\r\n<body id=\"screen\">\r\n<div id=\"container\">\r\n\r\n    <div class=\"main\">\r\n        \r\n    </div>\r\n</div>\r\n</body></html>\r\n\r\n我后端的smarty版本是3.1.29 配置如下\r\n'cache_lifetime' => 120,\r\n        'caching' => false,\r\n        'template_dir' => APPPATH . 'views',\r\n        'config_dir' => APPPATH . 'config',\r\n        'compile_dir' => DOCROOT . 'cache' . DS . 'smarty_compile',\r\n        'cache_dir' => DOCROOT . 'cache' . DS. 'smarty_cache'\r\n\r\n追加一个问题 当我用 {widget name=\"common:widget/header/header.tpl\"} 这个时 就会报错\r\nSmartyException [ 0 ]: property 'sub_template' does not exist. \r\n是不是我用的方式不对 还是跟smarty的版本有关？"}}