By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,743 Members | 1,780 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,743 IT Pros & Developers. It's quick & easy.

index.php...bootstrapping?

P: n/a
I want to write an index.php the is the central point of my website. I
see it used everywhere, but I can't seem to figure out a good way to do
it. I found an article on Zend's website where it refers to this as
"Bootstrapping". Is this correct? The article comes in parts, and
unfortunately the author hasn't finished all the parts. I thought I'd
throw it out there for discussion, see if we can come up with a few
examples, from simple to complex ones. I would imagine this can all be
done in an OOP way for the more complex ones.

Thanks!!

Link to article.

http://devzone.zend.com/node/view/id/70




Feb 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a

deciacco написав:
I want to write an index.php the is the central point of my website. I
see it used everywhere, but I can't seem to figure out a good way to do
it. I found an article on Zend's website where it refers to this as
"Bootstrapping". Is this correct? The article comes in parts, and
unfortunately the author hasn't finished all the parts. I thought I'd
throw it out there for discussion, see if we can come up with a few
examples, from simple to complex ones. I would imagine this can all be
done in an OOP way for the more complex ones.

I think that in the article they refer to the "bootstrapping" as a
part of task that are done always indifferently to what request is
provided. for example, load config file or init session - that's all.
And "bootstrapping" can be done two ways: in the beginning of some
common file that handles all request (i.e. index.php), or by including
that common file in the start of different ones (if you request is
handled by separate files, i.e. news.php / gallery.php / faq.php
etc).

If you want to make all that OOP way, you can refer to the Front
Controller Pattern or Page Controller Pattern - just google for these
terms.

Feb 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.