Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 6 matches
Smarty Forum Index
Author Message
  Topic: Slow include_once / require_once
DeyV

Replies: 2
Views: 11257

PostForum: Smarty Development   Posted: Tue Jan 11, 2005 7:14 pm   Subject: Slow include_once / require_once
example one:

<?php
for( $i=0; $i <1000; $i ++ )
{
echo $i. ' ' ;
include_once '1.php';
echo '<br />';
}

?>
time: 0.249340057373 s


example two:
<?php
for( $i= ...
  Topic: Slow include_once / require_once
DeyV

Replies: 2
Views: 11257

PostForum: Smarty Development   Posted: Tue Jan 11, 2005 11:49 am   Subject: Slow include_once / require_once
If some blocks (ex. in method) of code runs more that one times, the include_once can be slow. Why?
Because on all the times work that slow, how include().

Real better method:
<?php
static ...
  Topic: ADVANCED: Recursion with Smarty
DeyV

Replies: 156
Views: 395634

PostForum: Tips and Tricks   Posted: Fri Oct 08, 2004 1:34 pm   Subject: ADVANCED: Recursion with Smarty
But whay don't change's the smarty, to work native with php5?

To work only need changes all \$this in the 3 files:
Smarty_Compiler.class.php
core.write_compiled_include.php
compiler.assign.php ...
  Topic: poor smarty_include_tpl_file
DeyV

Replies: 3
Views: 8197

PostForum: Feature Requests   Posted: Fri Oct 08, 2004 9:18 am   Subject: poor smarty_include_tpl_file
Ok. It maybe can help.
But what you thing's abut somthing, what I'was see in the WACT templates system. (the 'function from all templates' )

Maybe somthing that can help

row.tpl
<td>&l ...
  Topic: poor smarty_include_tpl_file
DeyV

Replies: 3
Views: 8197

PostForum: Feature Requests   Posted: Thu Oct 07, 2004 10:03 pm   Subject: poor smarty_include_tpl_file
I'm like work's with small templates for all classes (method from eZ publish - for all Content class we have one or more tpl)
This is very easy to programming end editing.
But.. in smarty I'm ha ...
  Topic: Send a query to a template
DeyV

Replies: 3
Views: 7102

PostForum: Smarty Development   Posted: Sat Aug 16, 2003 3:40 pm   Subject: Send a query to a template
You can use ADoDB Wink
 
Page 1 of 1
All times are GMT
Jump to:  


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