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 >> <[email protected]> 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://www.erlbaum.net/mailman/listinfo/cgiapp ## >> ## ## >> ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## >> ## Wiki: http://cgiapp.erlbaum.net/ ## >> ## ## >> ################################################################ >> >> > > > > ##### CGI::Application community mailing list ################ > ## ## > ## To unsubscribe, or change your message delivery options, ## > ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## > ## ## > ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## > ## Wiki: http://cgiapp.erlbaum.net/ ## > ## ## > ################################################################ > > ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################
