Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty problem: Cannot assign variables to .tpl if...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Lord Yggdrasill
Smarty Rookie


Joined: 31 Mar 2012
Posts: 21

PostPosted: Sat Nov 24, 2012 2:02 am    Post subject: Smarty problem: Cannot assign variables to .tpl if... Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sat Nov 24, 2012 5:26 am    Post subject: Reply with quote

This promblem must also be realted to suhosin
Back to top
View user's profile Send private message
Lord Yggdrasill
Smarty Rookie


Joined: 31 Mar 2012
Posts: 21

PostPosted: Mon Nov 26, 2012 5:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP