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

Re: [SMARTY] Assigning variables from resource plugins
The smarty object should be available in the function, just
$smarty_obj->assign('foo',$bar);

Jan H. Andersen wrote:

>Hello,
>
>I've made a resource plugin that will allow me to read templates from a
>table in a database - nothing special in that. Along with the
>template-record I have som other data that I make available to the template
>with the assign-method. But when I use the include-function inside my
>templates (like {include file="db:/mytpl"} ) I want to be able to assign
>variables from the database record of "mytpl", so they are available when
>parsing mytpl. So, is it possible, and how, to assign variables to template
s
>loaded by a smarty_resource_db_source function in a resource plugin ?.
>
>
>Best regards,
>
>Jan H. Andersen
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Monte Ohrt
08-21-04 01:57 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 04:47 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.