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.files ?

 
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
gerard
Smarty Regular


Joined: 18 Apr 2003
Posts: 84

PostPosted: Wed Jan 28, 2004 9:57 am    Post subject: $smarty.files ? Reply with quote

How come $_FILES isn't available as $smarty.files ?
Back to top
View user's profile Send private message
gerard
Smarty Regular


Joined: 18 Apr 2003
Posts: 84

PostPosted: Wed Jan 28, 2004 7:56 pm    Post subject: Reply with quote

.
?
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Jan 28, 2004 8:37 pm    Post subject: Reply with quote

maybe just because file-uploads don't have to do much with display-logic?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gerard
Smarty Regular


Joined: 18 Apr 2003
Posts: 84

PostPosted: Wed Jan 28, 2004 9:10 pm    Post subject: Reply with quote

It's still useful info. I think it should be included. If you have file upload templates (like I do), it's nice to have easy access to info about uploaded files - size, type, name.
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Jan 28, 2004 9:49 pm    Post subject: Reply with quote

why not just assign it then?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gerard
Smarty Regular


Joined: 18 Apr 2003
Posts: 84

PostPosted: Thu Jan 29, 2004 6:23 am    Post subject: Reply with quote

Yeah, why not? Anyhow I tried doing:

$smarty->files =& $_FILES;

But this causes an error:

{$smarty.files.upload.name}
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Thu Jan 29, 2004 9:09 am    Post subject: Reply with quote

"$smarty->assign_by_ref('files', $_FILES)" and "{$files}"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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