Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
can't assign value

 
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial)
View previous topic :: View next topic  
Author Message
innoflame
Smarty Rookie


Joined: 12 Jul 2011
Posts: 6

PostPosted: Sat Sep 10, 2011 12:25 pm    Post subject: can't assign value Reply with quote

Hi,

i have a problem make me a crazy ..
i have a master page and content placed depend on $_GET['act']

after that i include the index of module as generated nick names..
it contain if condition for action in url ...

the problem is ...

i view template on content ... but cant assign value from that

folder trees
Home index
module
generateNicks
index.php
Templates
nicknamesGenerator.tpl


Code:
elseif($get == 'nicknamesGenerator')
{
$string = $_POST['nick'];
//echo $string.$style;
include('nicknamesGenerator.php');
$generate = new nicknamesGenerator();

$generatedNicks = $generate->nicknameGenerator($string);
$content = $smarty->fetch("generatedNicksPage.tpl");<< this is the template content
$smarty->assign('generatedNicks',$generatedNicks);<< here the assign value
$smarty->assign('content',$content);<< assign content to be showing in content place at index.tpl

}



any help ? Sad[/quote]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Help Wanted (commercial) 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