|
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 |
innoflame Smarty Rookie
Joined: 12 Jul 2011 Posts: 6
|
Posted: Sat Sep 10, 2011 12:25 pm Post subject: can't assign value |
|
|
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 ? [/quote] |
|
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
|