alekserm555 Posted January 11, 2014 Report Share Posted January 11, 2014 Всем здравствуйте. Помогите решить проблему, заключается в том, хотел сделать include. Выглядит так : {php}if (($_SERVER['REQUEST_URI'])=="/"){include 'slider.tpl';}{/php} Но выдает такую ошибку: Warning: include(slider.tpl) [function.include]: failed to open stream: No such file or directory in /home/h55563/data/www/beri-dari.org/Smarty/libs/plugins/block.php.php(23) : eval()'d code on line 5Warning: include() [function.include]: Failed opening 'slider.tpl' for inclusion (include_path='.:/usr/local/share/pear') in /home/h55563/data/www/beri-dari.org/Smarty/libs/plugins/block.php.php(23) : eval()'d code on line 5 Как это можно исправить? Quote Link to post Share on other sites
Kosjak76 Posted January 11, 2014 Report Share Posted January 11, 2014 {if $module == 'MainView'} {include file='slider.tpl'} {/if} Quote Link to post Share on other sites
Ruslan Kopyl Posted January 11, 2014 Report Share Posted January 11, 2014 {if $module=='MainView'} {include file='slider.tpl'} {/if} Quote Link to post Share on other sites
alekserm555 Posted January 11, 2014 Author Report Share Posted January 11, 2014 А можно где-нибудь включить include? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.