Configuration File – ProdigyView
OverviewObjectiveLearn how to configure the system through the xml file.Requirements Understanding of the Defines.Estimat...
Follow Along With A Code          Example1. Download a copy of the example code at  www.prodigyview.com/source.2. Install ...
XML FileProdigyView uses an xml file for holding system configurations instead of the standardPHP file. If you remember re...
Good Article To ReadA good article to read on PHP configuration files is here:       http://www.phpro.org/articles/Applica...
How the Configuration WorksThe configuration works in two parts1. If you noticed on the tutorial about the bootstrap, the ...
General ConfigurationThe general configuration is general information about theweb application and is mainly used by funct...
Email Configuration    The email configuration sets the defaults to how emails    will be sent. The most important option ...
System The system configuration controls how the system runs.  Display Error Message     The level of errors to report    ...
Session    The session configuration can be used to control    sessions.Sessions stored on the server configurationCookies...
Session Review1. The default configuration file is set by the PV_CONFIG   file2. The XML file DOES NOT have to be used and...
Upcoming SlideShare
Loading in …5
×

Prodigyview XML COnfiguration File

657 views

Published on

Learn how to configure ProdigyView through the xml configuration file.

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
657
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Prodigyview XML COnfiguration File

  1. 1. Configuration File – ProdigyView
  2. 2. OverviewObjectiveLearn how to configure the system through the xml file.Requirements Understanding of the Defines.Estimated Time5 minutes www.prodigyview.com
  3. 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 config/site_config.xml www.prodigyview.com
  4. 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. 5. Good Article To ReadA good article to read on PHP configuration files is here: http://www.phpro.org/articles/Application-Configuration.htmlThe article will give you insight on using php.iniconfiguration, xml configuration, php file configuration, andthe database configuration.
  6. 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. 7. General ConfigurationThe general configuration is general information about theweb application and is mainly used by functions inPVTemplate.
  8. 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. 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. 10. Session The session configuration can be used to control sessions.Sessions stored on the server configurationCookies stored in the browser configuration
  11. 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.

×