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

Search found 84 matches
Smarty Forum Index
Author Message
  Topic: $smarty.files / $_FILES ?
gerard

Replies: 11
Views: 23650

PostForum: General   Posted: Tue Oct 25, 2005 8:01 pm   Subject: $smarty.files / $_FILES ?
$_FILES is really just part of $_POST.

As I said earlier, there is a (strong) sentiment that the view should not have access to data that has not been processed by the application (ie: raw data). I ...
  Topic: $smarty.files / $_FILES ?
gerard

Replies: 11
Views: 23650

PostForum: General   Posted: Tue Oct 25, 2005 7:21 pm   Subject: $smarty.files / $_FILES ?
Sure there's stuff behind the scenes in the app, but templates are definitely involved in deciding what's displayed. e.g.

{obj->getUser assign='user' id=$smarty.cookies.userID}
{ ...
  Topic: $smarty.files / $_FILES ?
gerard

Replies: 11
Views: 23650

PostForum: General   Posted: Tue Oct 25, 2005 6:26 pm   Subject: $smarty.files / $_FILES ?
Sure:

{if $smarty.files.upload.error}
{$smarty.files.upload.error}
{else}
File {$files.upload.name}
Size {$files.upload.size}
Type {$file ...
  Topic: $smarty.files / $_FILES ?
gerard

Replies: 11
Views: 23650

PostForum: General   Posted: Tue Oct 25, 2005 4:27 am   Subject: $smarty.files / $_FILES ?
$_FILES most certainly isn't info the templates should be accessing directly
Why not? I was coding some file upload pages and put this on the second page:

File {$files.upload.name}
Size {$files.u ...
  Topic: $smarty.files / $_FILES ?
gerard

Replies: 11
Views: 23650

PostForum: General   Posted: Tue Oct 25, 2005 1:32 am   Subject: $smarty.files / $_FILES ?
I understand that line of thought, but I think it should be all or none for consistency's sake (personally, I'm in favor of all - just for convenience).
  Topic: $smarty.files / $_FILES ?
gerard

Replies: 11
Views: 23650

PostForum: General   Posted: Tue Oct 25, 2005 1:11 am   Subject: $smarty.files / $_FILES ?
Why isn't $_FILES included in $smarty (i.e. $smarty.files)?
  Topic: Smarty 3.0: initial discussion
gerard

Replies: 172
Views: 531997

PostForum: Smarty Development   Posted: Mon Oct 24, 2005 9:33 pm   Subject: Smarty 3.0: initial discussion
Have you devs been able to distill a list of key features/changes for Smarty 3?

Any idea of when it might be available?
  Topic: Using objects in {insert} function
gerard

Replies: 3
Views: 8522

PostForum: General   Posted: Mon Oct 24, 2005 5:19 pm   Subject: Using objects in {insert} function
Not possible?
  Topic: Using variables from componentized templates
gerard

Replies: 2
Views: 6192

PostForum: General   Posted: Mon Oct 24, 2005 5:18 pm   Subject: Using variables from componentized templates
Not possible?
  Topic: Using variables from componentized templates
gerard

Replies: 2
Views: 6192

PostForum: General   Posted: Mon Oct 24, 2005 2:01 am   Subject: Using variables from componentized templates
Say you have componentized templates:

<html>
<head>
<title>{$pageTitle}</title>
</head>
<body>

{if $smarty.request.view=='page'&# ...
  Topic: Using objects in {insert} function
gerard

Replies: 3
Views: 8522

PostForum: General   Posted: Mon Oct 24, 2005 1:45 am   Subject: Using objects in {insert} function
Can an object method be used for the name param? e.g.

{insert name=obj->header content="Content-Type: text/html"}
  Topic: Does smarty work with PHP 5?
gerard

Replies: 3
Views: 6793

PostForum: General   Posted: Sun Sep 18, 2005 8:51 am   Subject: Does smarty work with PHP 5?
Any plans to support function dereferencing?
  Topic: In cache/, what does %%39 39 3990E2F5%% mean?
gerard

Replies: 6
Views: 8933

PostForum: General   Posted: Sat Sep 17, 2005 12:24 am   Subject: In cache/, what does %%39 39 3990E2F5%% mean?
I figured a way to avoid the 32000 directory entry limit problem:

$cache_key="item|".implode('|', str_split((int)$_GET['id'], 4));
  Topic: Cache part of a page?
gerard

Replies: 0
Views: 3900

PostForum: General   Posted: Sat Sep 17, 2005 12:22 am   Subject: Cache part of a page?
Is it possible to cache part of a page? I have tens of thousands of pages, all of which display the same menu which uses several database calls to construct. I'd like to cache this menu for an hour.
...
  Topic: In cache/, what does %%39 39 3990E2F5%% mean?
gerard

Replies: 6
Views: 8933

PostForum: General   Posted: Wed Sep 14, 2005 9:25 am   Subject: In cache/, what does %%39 39 3990E2F5%% mean?
Uh, do you have numbers and proof? Concrete and non-superficial? Let's see it.
 
Page 1 of 6 Goto page 1, 2, 3, 4, 5, 6  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP