index.php...bootstrapping?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • deciacco

    index.php...bootstrapping?

    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.














  • irezvin

    #2
    Re: index.php...boo tstrapping?


    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 "bootstrapp ing" 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 "bootstrapp ing" 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.

    Comment

    Working...