• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
How to configure the Bootstrap  in PHP - ProdigyView
 

How to configure the Bootstrap in PHP - ProdigyView

on

  • 2,817 views

Learn how to modify the bootstrap to correctly boot the system

Learn how to modify the bootstrap to correctly boot the system

Statistics

Views

Total Views
2,817
Views on SlideShare
2,760
Embed Views
57

Actions

Likes
0
Downloads
25
Comments
0

1 Embed 57

http://www.prodigyview.com 57

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    How to configure the Bootstrap  in PHP - ProdigyView How to configure the Bootstrap in PHP - ProdigyView Presentation Transcript

    • Bootstrap Tutorial www.prodigyview.com
    • OverviewObjectiveLearn how to use the bootstrap for configuring thesystem.Requirements Installed Version of ProdigyView Understanding of the DefinesEstimated Time7 Minutes www.prodigyview.com
    • 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
    • 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
    • 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
    • _BootCompleteSystemThe file _BootCompleteSystem.php is the automaticconfiguration when booting the entire system. Thisincludes setting the database, loading plugins, loading thelibraries, etc. www.prodigyview.com
    • _BootSystemMinusPluginsThis boot options completely boots the entire system butdoes not load any plug-ins. www.prodigyview.com
    • _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
    • 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.
    • 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
    • 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
    • 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
    • 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
    • ReferencesFor further references, click on the following links: PVBootstrap PVBootstrap::bootSystem() www.prodigyview.com