1
jcera
smarty variable
  • 2004/6/25 2:59

  • jcera

  • Just popping in

  • Posts: 72

  • Since: 2004/6/5 6


hi. i want my template to have links to personal data. these should come form the database. what my code does is extract the names from the database and display them in my template (template1.html) using smarty variables (ex. <{$lastname}>.

these names have links to another page that displays the person's complete data. this attempt is successful. i can get names form the database and display them with links.

i have no idea how to pass smarty variables to another template (template2.php - displays complete data of a person depending on the name clicked). however, template2.php does not display the value of <{$lastname}> . it merely displays <{$lastname}>

in short, it does not recognize the smarty variable. my idea is to use include, but which file do i include to which?

i have no idea how to pass them to template2.

2
Mithrandir
Re: smarty variable

Look at the news module template news_index.html to see how to include another template in a template and pass values to it.

Login

Who's Online

130 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 130


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits