Code Comments
Programming Forum and web based access to our favorite programming groups.> index.tpl
> <DOCTYPE >
> <html>
> <head>
> <body>
> {if $loginflag}{inslude file='mambers.tpl' assign list of
> variables to template}{else}}{inslude file='loginform.tpl'}
> {/if}
Can you please elaborate on the above template file. I don't quite follow.
Thanks
HarryG
"Zoran Knezevic" <zoka@hotbox.ru> wrote in message
news:200311051130.hA5BUP90026409@www3.hotbox.ru...
> Vonleigh Simmons <nospam@illusionart.com>:
>
> recently discovered
> some of the
> me if this
> available to
> security.php page
> a
> exactly would I go
> security.php page
> would display
> security.tpl).
>
> this is pseudo-code how I would do it:
>
> index.php
> <?
> require (all files that are necessery);
>
> $loginflag= false;
>
> if (function_that_checks_is_user_logged
> ($list_of_parameters)) $loginflag= true;
>
> $smarty->assign('loginflag',$loginflag)
>
> //other code and assignmants here
> $smarty->dislplay('index.tpl');
>
> //disconect database and other stuff
> ?>
>
> index.tpl
> <DOCTYPE >
> <html>
> <head>
> <body>
> {if $loginflag}{inslude file='mambers.tpl' assign list of
> variables to template}{else}}{inslude file='loginform.tpl'}
> {/if}
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.