[cgiapp] Adding a div of fixed content to evey page. Possible?

Brad Van Sickle bvansickle3 at gmail.com
Fri Oct 30 15:36:29 EDT 2009


Assigning those variables is the perfect thing to do in (again) postrun 
when it is implemented in a superclass.


Gurunandan R. Bhat wrote:
> I wanted to avoid, including the file, and then assigning the params
> (Logged in/Not loggedin, Last login, etc) in each and every run mode
> when their values are universal across the application and have nothing
> to do with the logic of each run mode. 
>
>
>
>
> On Fri, 2009-10-30 at 12:13 -0700, Mark Fuller wrote:
>   
>> On Fri, Oct 30, 2009 at 11:47 AM, Gurunandan R. Bhat
>> <guru at informationmatters.in> wrote:
>>     
>>> I want to insert a login
>>> form on every page or a logged-in status depending on whether
>>> $app->authen->username is defined or not (I am using
>>> CAP-Authentication).
>>>       
>> Why wouldn't this just be an "include" file, included into all your
>> HTML::Templates, and the include containing some TMPL_IF logic to
>> control whether the login form (or logged-in status) should be
>> displayed?
>>
>> Mark
>>
>> #####  CGI::Application community mailing list  ################
>> ##                                                            ##
>> ##  To unsubscribe, or change your message delivery options,  ##
>> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
>> ##                                                            ##
>> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
>> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
>> ##                                                            ##
>> ################################################################
>>
>>     
>
>
>
> #####  CGI::Application community mailing list  ################
> ##                                                            ##
> ##  To unsubscribe, or change your message delivery options,  ##
> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
> ##                                                            ##
> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> ##                                                            ##
> ################################################################
>
>   


More information about the cgiapp mailing list