Support Requests item #525883, was opened at 2002-03-05 21:01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403612&aid=525883&group_id=31885
Category: Install Problem (example)
Group: None
>Status: Closed
Priority: 8
Submitted By: Dominic Suter (stoenggi)
Assigned to: Nobody/Anonymous (nobody)
Summary: PHPLib: Templates with several pages
Initial Comment:
Hello.
I`m a newbie in programming php, so please help me
even my question may be very stupid :)
I`d like to use the templates from the phplib for my
webpage. I understood the example in the manual, so my
test page runs. But my problem is, that I defined the
title and the content once in an array. But if the
user will see another content, I have to redefine the
content and the title (in effect, I have to redefine
the array
$t->set_var(array("Title" => "Dies ist der Titel der
Page", "BodyContend" => "Dies ist der Body
Inhalt."));). But how can I implement this?
I`d like a solution with several files wich contens
the title and the content for each page.
How can I do that?
PS: Please excuse my bad english, I normaly talk
Swissgerman...
----------------------------------------------------------------------
>Comment By: Ignatius Teo (eyrie)
Date: 2002-08-04 17:30
Message:
Logged In: YES
user_id=29397
What about using a variable to hold the content?
You can try this:
$t->set_var(array(
"Title" => $title, // or even this
"Content" => ($user=='joe' ? $content1 : $content2)
));
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403612&aid=525883&group_id=31885
|