2009年12月7日星期一

Re: [fw-mvc] bootstrap.php

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

huajun qi wrote:
> Are initialization methods executed every request or just executed just
> once when application start up?

PHP is *always* run on every request, there is no "application start up"
separate from each request (It uses a "share nothing" architecture). So,
yes, that executes init methods in bootstrap on every request.

- --

Brenton Alker
Developer - Brisbane, Australia

http://blog.tekerson.com/
http://twitter.com/tekerson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksd+kIACgkQ7bkAtAithutXoQCbBV7hdUJ3VrbwcTcLhUCN+ZsX
FD4AoOVN10XLCV04YOe2+bxr6xKg6gko
=WyDj
-----END PGP SIGNATURE-----

没有评论: