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

problem with assign

 
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
MaaSTaaR
Smarty Rookie


Joined: 08 Oct 2004
Posts: 8

PostPosted: Sat Aug 06, 2005 12:40 am    Post subject: problem with assign Reply with quote

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 ?!.. Rolling Eyes
Back to top
View user's profile Send private message
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