首页
开发手册
应用中心
工具
用户中心
Ease Template Automatic Resolution of Photo Path
English
中文简体
English
上一篇
下一篇
### Ease Template Path Resolution In the development of php website, the photo path parsing error caused the picture to be unable to be displayed. Ease Template solves these troubles through core technology. #### Custom Catalog ET supports images directory conversion by default. When you turn off AutoImage in the settings, the custom directories will be invalid。 Analysis of the style catalog under the corresponding catalog of the template | Contents| Description | | ------------ | ------------ | | plugin/view/default/foundphp.htm | template file address | | plugin/view/default/**images**/logo.png | the images directory supported by default | | plugin/view/default/**js**/jquery.js | need to specify the js directory | grammar : ``` ``` `When more directories need to be parsed, just use a comma (,) to separate them.` ------------ **Demo Code:** test_2.php ```PHP set_file('test_2'); $tpl->p(); ?> ``` Currently, three contents have been created, namely the default images directory and the manually added test and pic contents. | photo |path | | ------------ | ------------ | | logo.png | plugin/view/default/images | | jquery.js | plugin/view/default/js | | foundphp.jpg | plugin/view/default/pic | view/test_2.htm ``` Define automatic analysis of test and pic directories images contents
js contents
pic contents
```