|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Lord Yggdrasill Smarty Rookie
Joined: 31 Mar 2012 Posts: 21
|
Posted: Sat Nov 24, 2012 2:02 am Post subject: Smarty problem: Cannot assign variables to .tpl if... |
|
|
Well I have been able to resolve the blank page problem I brought up before, it seems that suhosin is blocking the include path if it is an absolute path or an external source.
This really becomes a problem when I am trying to assign a variable that contains url to an external site. I have a credits page that displays some info, which includes links to the site of each contributors. Nonetheless, as soon s I use $smarty->assign("credits", $credits) to the template.tpl file, it shows blank page. If I remove or comment out that line, it works perfectly.
I was wondering though, is there a way to fix this problem? Why is it happening in the first place? Is Smarty security system the cause of the issue? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Nov 24, 2012 5:26 am Post subject: |
|
|
This promblem must also be realted to suhosin |
|
Back to top |
|
Lord Yggdrasill Smarty Rookie
Joined: 31 Mar 2012 Posts: 21
|
Posted: Mon Nov 26, 2012 5:38 am Post subject: |
|
|
U.Tews wrote: | This promblem must also be realted to suhosin |
Yeah I figured, I am using the other path starting with /home/public_html and it works well this way lol. Unfortunately this does not apply to stylesheet and css inclusion in header section, will post a thread about it since its a separate topic. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|