For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > August 2007 > Re: [SMARTY] function call within function call









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] function call within function call
Jochem Maas

2007-02-09, 7:11 pm

Peggy Schatz wrote:
> Hello,
>
> I'm looking for possibly combining two plugins.
>
> Depending on the assigned variable {$actype} I want to retrieve related
> data from a database by using function {get_supplier} and use the result
> as parameter for function {checkfield}
>
> ***
> The way it worked before (all supplier data in array and assigned as
> $supplier_default):
>
> {checkfield data=$supplier value=$supplier_value
> default=$supplier_default.$actype}
>
> ***
> The way I'd rather have it to work (but it doesn't):
>
> {checkfield data=$supplier value=$supplier_value
> default=get_supplier($actype)}


I don't think that will work - then iagain it wouldn't be the first time I was wrong ...
why not do this:

{checkfield data=$supplier value=$supplier_value actype=$actype}

function smarty_function_checkfield($params, &$smarty)
{
// check args
// load get_supplier plugin

$default = smarty_function_get_supplier($params, $smarty);

// more magic
}

>
> function smarty_function_get_supplier($params, &$smarty)
> {
> /* database query */
> $res=array(1,2,3);
> return $res;
> }
>
> ***
> Both functions are named right (function.checkfield.php,
> function.get_supplier.php) in the assigned plugins-directory.
>
> Is a function call within a function call possible? What'd be the proper
> syntax to achieve the desired?
>
> Thanks and greetings,
> Peggy
>

Shellmoe

2007-03-10, 8:10 pm

Catherine Zeta Jone Throatjob!
http://Catherine-Zeta-Jone-Throatjo...hp?movie=148803
Pomk

2007-04-30, 1:00 am

Halle Berry in anal action!
http://Halle-Berry-anal-action.org/...hp?movie=148803
Eredteddick

2007-06-19, 12:25 am

Mariah Carey Undressing & Shows Tiny Dick Posing!
http://www.shockingonline.com/Media...asp?vid=1673286

Pamela Anderson on couch tugging!
http://www.shockingonline.com/PlayMovie.php?vid=1673286

Alyson Hannigan , Female ejaculation movies at squirters.tv!
http://www.shockingonline.com/player?vid=1673286

Paula Abdul Nude Shows Tits & Tight Ass At Home!
http://www.shockingonline.com/PlayM...eg?clip=1673286

Catherine Z. Jones getting XXXXed!
http://www.shockingonline.com/WatchMovie?watch=1673286

free download english movie free latina porn video free dog sex movie hilton home paris sex video free xxx hardcore video
free paris hilton video hush 2007 full movie free adult xxx movie video ass big movie xxx porn movie samples
comment myspace post video free tranny porn video clip home sex video britney car exit spear britney flash paparazzi spear
free sex movie clip hunter movie sex teacher trailer solution streaming video free mature sex movie site free strapon sex movie

free movie download adult
yahoo movie dvd
free gay nude video
adult video sample
actress angelina jolie
hardcore movie strip teen
britney spears hot new photo
free video game
daddy last night puff video
free home made porn video
Adanpo01

2007-06-21, 1:32 am

http://www.videomoviesonline.com/Wi...p?watch=1673286
Viktor

2007-08-13, 4:17 am

Hot blonde is brutally drilled by a huge dick!
Click here to watch for free - no signup needed
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com