|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
MaaSTaaR Smarty Rookie
Joined: 08 Oct 2004 Posts: 8
|
Posted: Sat Aug 06, 2005 12:40 am Post subject: problem with assign |
|
|
Hello ..
i have main class and use it in sub class , my main class name is SmartWS and i have sub class like DB,Smarty .
i try to use assign in sub class , but it's don't give me result ..
this is function in class which name SmartArticles
[php:1:0c4862346f]
/************************************************/
## Start GetArticlesList
# Get list of articles
function GetArticlesList($type,$varname,$extra) {
$getarticles_query = $this->SmartWS->DB->sql_query("SELECT * FROM aWebSite_articles WHERE type='" . $type . "' $extra");
$getarticles_num = $this->SmartWS->DB->sql_num_rows($getarticles_query);
while ($getarticles_row = $this->SmartWS->DB->sql_fetch_array($getarticles_query)) {
$getarticles_rows[] = $getarticles_row;
$this->SmartWS->Smarty->assign($varname,$getarticles_rows);
}
}
## End GetArticlesList
/************************************************/
[/php:1:0c4862346f]
what should i do ?!.. |
|
Back to top |
|
|
|
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
|