My own smarty variables

rafian

Joined: 2006-12-04
Posts: 5
Posted: Wed, 2007-09-26 06:16

Hi.
How can I add some variables into gallery's smarty?

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16320
Posted: Wed, 2007-09-26 13:52

Define them in the *.inc file.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
rafian

Joined: 2006-12-04
Posts: 5
Posted: Wed, 2007-09-26 16:23

But where, give me one example, please.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16320
Posted: Wed, 2007-09-26 17:22

What is it you want to do?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
rafian

Joined: 2006-12-04
Posts: 5
Posted: Thu, 2007-09-27 05:00

I want to generate some variables from my php scripts, and register its in galler2 as smarty variables

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16320
Posted: Thu, 2007-09-27 05:08

http://smarty.php.net/crashcourse.php

There is a simple example using a php page and a template page.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
rafian

Joined: 2006-12-04
Posts: 5
Posted: Fri, 2007-09-28 06:22

o.k but what is the smarty class name at gallery2?

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16320
Posted: Fri, 2007-09-28 13:36

class Smarty from Smarty.class.php

Login or register to post comments
rafian

Joined: 2006-12-04
Posts: 5
Posted: Mon, 2007-10-01 05:10

sorry I mean object name (smarty) use at gallery2

Login or register to post comments