Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

include in Smarty and display, please help
Hi everyone!!

I have a trouble!!! Well, I explain you: I have two templates files: A.tlp
and B.tpl:

A.tpl:

{config_load file="configA.conf"}
{config_load file="configB.conf"}

.....

{include file="B.tpl"}
.....
{#var1#}
....
{#var2#}
.....

B.tpl:

code is generated from a php file which atack database and extracts
information. In database, elements are stored in format: {#value#}

.....
{section name=js_ObjInit_rows loop=$Obj}
this[{$smarty.section.js_ObjInit_rows.iteration}] = new
Object_({$Obj[js_ObjInit_rows.index][0]},"{$Obj[js_ObjInit_rows.index][1]}",
"{$Obj[js_ObjInit_rows.index][2]}");
{/section}
....

where,{$Obj[js_ObjInit_rows.index][1]} is {#object_name..#} and
{$Obj[js_ObjInit_rows.index][2]} is {#object_description...#}


Well, var1 and var2 are defined in configA.tpl and object_name.. and
object_description... are defined in configB.conf. When I display A.tpl,
var1 and var2 have correct value loaded from configA.conf, but object_name..
and object_description... are {#object_name..#} and
{#object_description...#}, but I want these two variables would have correct
values loaded from configB.conf.

Some solution please?? thanxsssss!!!!

--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this thread to moderator Post Follow-up to this message
Old Post
Nayra Quesada
04-16-05 09:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:19 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.