|
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 |
major7 Smarty n00b
Joined: 24 Jul 2003 Posts: 4
|
Posted: Thu Jul 24, 2003 9:16 am Post subject: including a php file in smarty.... |
|
|
I intend to return a partial js-code into my template.
when I do it the way you see below, it doesn't work, since the include prints the code on top of the rest, not where it usually belongs
this is an extract from my primary php file:
Code: | $tpl->assign("HANDLE_ACTION_DOKU", include($DOCUMENT_ROOT."/doc/actions/handle_action_doku.php")); |
in my template i assign it like this:
Code: | {$HANDLE_ACTION_DOKU}
{$RENDER_MENU_DOKU} |
The handle_action_doku.php file is not smarty-based, if it were there wouldn't be any problems...
Does anyone have any idea? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
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
|