Author |
Message |
Topic: foreach splitted by pages |
cucca
Replies: 2
Views: 5237
|
Forum: General Posted: Wed Nov 12, 2008 8:54 am Subject: foreach splitted by pages |
You have to paginate in PHP. A pagination program such as SmartyPaginate can help:
http://www.phpinsider.com/php/code/SmartyPaginate/
fantastic! It's simple to use and works great!!!
Thanx a ... |
Topic: foreach splitted by pages |
cucca
Replies: 2
Views: 5237
|
Forum: General Posted: Tue Nov 11, 2008 9:01 am Subject: foreach splitted by pages |
Hello All,
I make a query (simple select * from table) and i would like to split in pages of 25 rows the result in my page.tpl. I use the foreach to cicle the array result from the query, but i don't ... |
Topic: extending Smarty() and function |
cucca
Replies: 2
Views: 6175
|
Forum: General Posted: Mon Mar 26, 2007 12:52 pm Subject: extending Smarty() and function |
Use the function prototype given in the manual:
function smarty_function_content($params, &$smarty){
return $smarty->outputdata;
}
http://smarty.php.net/manual/en/plugi ... |
Topic: One .php and one .tpl for a whole site? |
cucca
Replies: 1
Views: 6426
|
Forum: General Posted: Fri Mar 23, 2007 4:43 pm Subject: One .php and one .tpl for a whole site? |
i'm trying to do something like what you told... my mission is to control the output from the php. What i want in my tpl page is this:
<html>
<head>
<title></title>
< ... |
Topic: extending Smarty() and function |
cucca
Replies: 2
Views: 6175
|
Forum: General Posted: Fri Mar 23, 2007 11:26 am Subject: extending Smarty() and function |
Hello all,
i have created a very simple class that extends Smarty:
<?php
require("Smarty.class.php");
Class mySmarty extends Smarty{
protected $outputdata;
publi ... |
Topic: Smarty e temi |
cucca
Replies: 1
Views: 22499
|
Forum: Language: Italian Posted: Thu Mar 08, 2007 11:20 am Subject: Smarty e temi |
Salve a tutti,
sto cercando di utilizzare smarty, ma mi rimane difficile come strutturare
una pagina: io ho creato una pagina "mastro" di questo tipo:
<html>
<head>
< ... |
|