• Like
How to configure the Bootstrap  in PHP - ProdigyView
Upcoming SlideShare
Loading in...5
×

How to configure the Bootstrap in PHP - ProdigyView

  • 2,422 views
Uploaded on

Learn how to modify the bootstrap to correctly boot the system

Learn how to modify the bootstrap to correctly boot the system

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,422
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
29
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Bootstrap Tutorial www.prodigyview.com
  • 2. OverviewObjectiveLearn how to use the bootstrap for configuring thesystem.Requirements Installed Version of ProdigyView Understanding of the DefinesEstimated Time7 Minutes www.prodigyview.com
  • 3. Follow Along With A Code Example1. Download a copy of the example code at www.prodigyview.com/source.2. Install the system in an environment you feel comfortable testing in.3. Proceed to examples/basics/Bootstrap.php www.prodigyview.com
  • 4. What is the BootstrapIn computer science, the term bootstrap refers to startinga system.In ProdigyView, the Bootstrap is used to configure thesystem and load the necessary data and files beforeexecution.In addition to several ways of booting the system, thereare numerous configurations that can be passed to thebootstrap to customize it.In many of the examples, if you look at the top of file youwill notice that the system is booted before any code isexecuted. www.prodigyview.com
  • 5. Concepts Covered Booting the entire system Boot the system without plugins Booting the system without a database Class Loader Bootstrap Options Bootstrap Configuration www.prodigyview.com
  • 6. _BootCompleteSystemThe file _BootCompleteSystem.php is the automaticconfiguration when booting the entire system. Thisincludes setting the database, loading plugins, loading thelibraries, etc. www.prodigyview.com
  • 7. _BootSystemMinusPluginsThis boot options completely boots the entire system butdoes not load any plug-ins. www.prodigyview.com
  • 8. _BootSystemMinusDatabaseThis boot configuration will boot the system but will notconnect or set any database options. This means thatdatabase dependent features such as plug-ins will alsonot be booted. Unless a database is set at a differentpoint in time, you will also not have access too otherdatabase coupled features such as: CMS Applications MVC Initializer
  • 9. Custom Bootstrap – Class LoaderThe previous boot options provided by ProdigyView arevery basic. Adding a more complex bootstrapconfiguration can be accomplished easily. Start by usingthe _classLoader. The _classLoader will enable the usageof all the core libraries.
  • 10. Custom Bootstrap - OptionsNext we have to configure the options that are passedinto the PVBoostrap::bootSystem() method. Theseoptions control which classes are initialized. A completelist of configuration options is available in the API. www.prodigyview.com
  • 11. Boostrap Config Option The most important function in the bootstrap is the config options array. The variables in the array are passed to the init functions of various other classes. PVBootstrap Config ArrayPVLibraries::init PVTemplate::init PVSession::init PVSecurity::init PVRouter::init
  • 12. Challenge!If you are new to ProdigyView and also new to programming, thischallenge may be a little more difficult than the others.Go into the code of the file ‘core/system/PVSession.php’ initmethod. Modify the variables in the config section of thebootstrap in a way that it will affect your cookies. www.prodigyview.com
  • 13. Bootstrap ReviewThe bootstrap has many options that can change the wayyour system functions. Throughout various othertutorials, we will touch upon areas that will help youmodify the bootstrap to fit your needs. www.prodigyview.com
  • 14. ReferencesFor further references, click on the following links: PVBootstrap PVBootstrap::bootSystem() www.prodigyview.com