From: Fabrizio B. <fab...@cr...> - 2004-07-01 07:35:15
|
hi, > I have added onReturnPress action to all input fields on a form (it is > not nessesary to add this action to button itself). There is sample of > my login form code below. This might be useful for community. > Please correct my comments if it is wrong. your code is really good, your're not a newbie i think :-))) thank you for submitting it! > I noticed that method main() of class global_listener is executed every > time framework is starting (regardless of session existence). It's good > news. Here we have point where we can, for example, to initialize our > global variables from $_SESSION array. well, the init() method is executed when a listener is created and the main() every time is called. > But I do not found method that > is fired when framework is about to end. This method would be useful > as main() mentioned above but for saving some globals to session data > (or whatever). session data is automagically saved, but creating a shutdown method for listener should be a good thing!!! thank you for the suggestion! thank you cheers fabrizio |