Re: Re: mailinglist status
"Luis M" <[email protected]> Wed, 07 May 2003 22:51:54 -0400
| Newsgroups | gmane.comp.cms.phpslash.devel |
|---|---|
| Message-ID | <[email protected]> |
>On Fri, May 02, 2003 at 07:55:42PM -0400, Luis M wrote:
> > >How about this?
> > >
> > >$extra_ary = '';
> > >// Are there extra tags/variables to pass to slashHead.tpl?
> > >if(is_array($_PSL['extra_ary'])) {
> > > $extra_ary = $_PSL['extra_ary'];
> > >}
> > >
> > >$header = getHeader($pagetitle,$_PSL['metatags'], $extra_ary);
> > >
> > >Then it could be defined in config.ini, config.php, or in the
> > >script. But couldn't come from the url.
> > >
> > That sounds perfect. But how would the "extra_ary" be defined in the
>.ini ?
> > This way:
> >
> > extra_ary = KEY=>'value', KEY2=>'value2', ..., KEYn=>'valuen'
> >
> > ?? just curious...
>
>Sorry, forgot about this.
>
>This would create the array -
>
>at the END of the ini file:
>
>[extra_ary]
>key1 = value1
>key2 = value2
>key3 = value3
>
>However, I'm not sure why you wouldn't just put the values in the
>template file.
>
>Joe
Well, the .ini can give sort of a "default" value for certain user-defined
variables for the templates (sort of "place holders") and then the user
might develop her/his own modules/scripts/functions to generate data for
those place holders during the page "execution" (when people visit the
site). Sort of what I'm doing to get banners for the accplusli.com site.
$ary['IMAGES']=random_image("banners.txt");
slashHead($foo,$bar,$ary);
...
etc...
----)(-----
Luis Mondesi
System Administrator
LatinoMixed.com
[email protected]
"...The Mac does this so smoothly, it feels like an extension of your mind."
- Paula Speer, MacWorld Magazine 2003-04
Public signature: http://www.latinomixed.com/lems1/public-a.asc
_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !
http://search.msn.fr/worldwide.asp
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com