Prodigyview XML COnfiguration File
Upcoming SlideShare
Loading in...5

Like this? Share it with your network


Prodigyview XML COnfiguration File



Learn how to configure ProdigyView through the xml configuration file.

Learn how to configure ProdigyView through the xml configuration file.



Total Views
Views on SlideShare
Embed Views



1 Embed 11 11


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.

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

Prodigyview XML COnfiguration File Presentation Transcript

  • 1. Configuration File – ProdigyView
  • 2. OverviewObjectiveLearn how to configure the system through the xml file.Requirements Understanding of the Defines.Estimated Time5 minutes
  • 3. Follow Along With A Code Example1. Download a copy of the example code at Install the system in an environment you feel comfortable testing in.3. Proceed to config/site_config.xml
  • 4. XML FileProdigyView uses an xml file for holding system configurations instead of the standardPHP file. If you remember reading about the Defines, the location of this file is set there. WHY XML?There a typically four ways of storing and reading configuration files in PHP.1. Php.ini2. Database3. Php file4. XML FileOut of those 4 ways and test performed with repeated reading of a configurationfile, retrieving a configuration from the database is the slowest, php.ini is faster the aphp file, and an xml file takes the cake.
  • 5. Good Article To ReadA good article to read on PHP configuration files is here: article will give you insight on using php.iniconfiguration, xml configuration, php file configuration, andthe database configuration.
  • 6. How the Configuration WorksThe configuration works in two parts1. If you noticed on the tutorial about the bootstrap, the ‘load_configuration’ option was set to false. If that is set true, the xml file is loaded and those variables are used to initialize: 1. PVSessions 2. PVRouter 3. PVDatabase 4. PVSecurity 5. PVTemplate2. In PVConfiguration, there are various methods that use the xml configuration. Example: Methods such as PVConfiguration::getEmailSettings() retrieve the email settings from the xml file.
  • 7. General ConfigurationThe general configuration is general information about theweb application and is mainly used by functions inPVTemplate.
  • 8. Email Configuration The email configuration sets the defaults to how emails will be sent. The most important option here is the ‘mailer’. If the option is set to php, the method PVMail::sendEmail() will send an email using php’s mail() function. If the option is set to smtp, the PVMail:sendEmail() will send an email through SMTP.Default SMTP information used Default from email used in sendmail
  • 9. System The system configuration controls how the system runs. Display Error Message The level of errors to report Log errorsRemove globalvariables Forces SEO friendly urls
  • 10. Session The session configuration can be used to control sessions.Sessions stored on the server configurationCookies stored in the browser configuration
  • 11. Session Review1. The default configuration file is set by the PV_CONFIG file2. The XML file DOES NOT have to be used and can be turned off in the bootstrap.3. The ‘email’ configurations configures the PVMail class.4. The ‘sessions’ configurations configures the Session class.5. The ‘system’ configuration configures the router and error reporting.