SlideShare una empresa de Scribd logo
1 de 18
DEFINES
Objective

Learn how the defines are used to manipulate the system.

Requirements

 Understanding of define() function.
Estimated Time

5 minutes




                     www.prodigyview.com
Follow Along With A Code
          Example
1. 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 DEFINES.php




                    www.prodigyview.com
What are DEFINES
In PHP defines are named constants that are global among
the code being executed.
In ProdigyView the DEFINES have two functions.
1. Specify the location of the xml configuration file and the
   database configuration file
2. Structure the file system for applications, libraries and other
   features


On our next slide, we will view an example of the defines file.




                        www.prodigyview.com
Example Of Defines File
File Structure
In the previous slide when it was stated that Defines can
“structure the file system”, what was being referenced was
ProdigyView gives components of the system places where
they belong.

IE: All images go in the image folder

IE: All videos go in the videos folder

Changing the defines allows you to change where you want
these resources to exist. Libraries do not have to be in
/resources/libraries/, they can be in another folder such as
/system/libs/ if you change it in the defines.

So lets run through the defines if you are looking for
clarification on any.
                        www.prodigyview.com
PV_ROOT
The PV_ROOT is the root directory of the site. All files
should in a location that can be referenced by the
PV_ROOT.

The root location can be set multiple ways such as:

 $_SERVER[„DOCUMENT_ROOT‟
 dir(__FILE__)
 „/var/www/mysite/‟.



                        www.prodigyview.com
PV_CORE
PV_CORE is the core location of the classes that make
up ProdigyView‟s root system. All the folders and classes
that begin with PV should be in this folder.




                     www.prodigyview.com
PV_APPLICATIONS /
 PV_ADMIN_APPLICATIONS
PV_APPLICATIONS is the directory that all applications
should exist that are called with PVApplications::execute
function.

In an attempt to separate front-end from backend, the
applications administrative section can be placed in a
separate locations.




                     www.prodigyview.com
PV_MODULES
Modules are components that interact with applications.
Files that contain the modules have a folder they are
assigned.




                     www.prodigyview.com
PV_LIBRARIES
PV_LIBRARIES is the location of the libraries that work
with ProdigyView. Libraries are handled through the
PVLibraries class.




                     www.prodigyview.com
PV_PLUGINS
Plugins are extensions in ProdigyView whose addition is
controlled by the database. Plugins can be object oriented
or procedural additions and are persistent once loaded.




                     www.prodigyview.com
PV_MVC
ProdigyView is a framework that allows multiple MVCs.
MVCs are defined by the developer. An example MVC
that comes with ProdigyView is Helium.




                    www.prodigyview.com
Configuration Files
The configuration files are divided into two files. The php
file contains the database connections. The xml file
contains system configurations.




                      www.prodigyview.com
PV_TEMPLATES
If the system being created allows templates, the template
directory can set.




                     www.prodigyview.com
Javascript Libraries
ProdigyView distinguishes the JavaScript files from normal
JavaScript, JQuery, Prototype and Mootools. Also it recognizes
a difference between front-end js files vs admin files. The files
do not contain the PV_ROOT because they are accessed in the
browser and having PV_ROOT might make them inaccessible
from the browser.
Media Files
Media files consist of images, video, audio and files.
ProdigyView allows separation of each file type. Parts of
the framework such as the CMS make use of these
defines for placing the files. These files also do not
contain PV_ROOT.




                     www.prodigyview.com
Admin
The last define is the administrative define. If this define is
set to true, applications will be allowed to access their
administrative section. If set to false, the function
PVApplication::pv_exec_admin() will not be accessible.
This is done to separate the front end from backend.




                       www.prodigyview.com
Review
As seen, there are numerous defines that can set. Those
defines are changeable to change how your system is set
up.

When you are comfortable with various aspects of the
ProdigyView, take the time to change the defines to
customize the system you build.




                    www.prodigyview.com

Más contenido relacionado

Más de ProdigyView

Email Configuration
Email ConfigurationEmail Configuration
Email ConfigurationProdigyView
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialProdigyView
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms TutorialProdigyView
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags TutorialProdigyView
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHPProdigyView
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHPProdigyView
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyViewProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHPProdigyView
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web CacheProdigyView
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS LibrariesProdigyView
 
Implementing the Adapter Design Pattern
Implementing the Adapter Design PatternImplementing the Adapter Design Pattern
Implementing the Adapter Design PatternProdigyView
 
Intercepting Filters Design Pattern
Intercepting Filters Design PatternIntercepting Filters Design Pattern
Intercepting Filters Design PatternProdigyView
 
Creating Dynamic Objects PHP
Creating Dynamic Objects PHPCreating Dynamic Objects PHP
Creating Dynamic Objects PHPProdigyView
 
PV Standard Search Query
PV Standard Search QueryPV Standard Search Query
PV Standard Search QueryProdigyView
 
Prodigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyView
 
Learning PHP Basics Part 2
Learning PHP Basics Part 2Learning PHP Basics Part 2
Learning PHP Basics Part 2ProdigyView
 

Más de ProdigyView (18)

Email Configuration
Email ConfigurationEmail Configuration
Email Configuration
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags Tutorial
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHP
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHP
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS Libraries
 
PHP Libraries
PHP LibrariesPHP Libraries
PHP Libraries
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 
Implementing the Adapter Design Pattern
Implementing the Adapter Design PatternImplementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
 
Intercepting Filters Design Pattern
Intercepting Filters Design PatternIntercepting Filters Design Pattern
Intercepting Filters Design Pattern
 
Creating Dynamic Objects PHP
Creating Dynamic Objects PHPCreating Dynamic Objects PHP
Creating Dynamic Objects PHP
 
PV Standard Search Query
PV Standard Search QueryPV Standard Search Query
PV Standard Search Query
 
Prodigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyview XML COnfiguration File
Prodigyview XML COnfiguration File
 
Learning PHP Basics Part 2
Learning PHP Basics Part 2Learning PHP Basics Part 2
Learning PHP Basics Part 2
 

Último

1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPTiSEO AI
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty SecureFemke de Vroome
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101vincent683379
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimaginedpanagenda
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfFIDO Alliance
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 

Último (20)

1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 

PHP Defines in ProdigyView

  • 1. DEFINES Objective Learn how the defines are used to manipulate the system. Requirements  Understanding of define() function. Estimated Time 5 minutes www.prodigyview.com
  • 2. Follow Along With A Code Example 1. 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 DEFINES.php www.prodigyview.com
  • 3. What are DEFINES In PHP defines are named constants that are global among the code being executed. In ProdigyView the DEFINES have two functions. 1. Specify the location of the xml configuration file and the database configuration file 2. Structure the file system for applications, libraries and other features On our next slide, we will view an example of the defines file. www.prodigyview.com
  • 5. File Structure In the previous slide when it was stated that Defines can “structure the file system”, what was being referenced was ProdigyView gives components of the system places where they belong. IE: All images go in the image folder IE: All videos go in the videos folder Changing the defines allows you to change where you want these resources to exist. Libraries do not have to be in /resources/libraries/, they can be in another folder such as /system/libs/ if you change it in the defines. So lets run through the defines if you are looking for clarification on any. www.prodigyview.com
  • 6. PV_ROOT The PV_ROOT is the root directory of the site. All files should in a location that can be referenced by the PV_ROOT. The root location can be set multiple ways such as:  $_SERVER[„DOCUMENT_ROOT‟  dir(__FILE__)  „/var/www/mysite/‟. www.prodigyview.com
  • 7. PV_CORE PV_CORE is the core location of the classes that make up ProdigyView‟s root system. All the folders and classes that begin with PV should be in this folder. www.prodigyview.com
  • 8. PV_APPLICATIONS / PV_ADMIN_APPLICATIONS PV_APPLICATIONS is the directory that all applications should exist that are called with PVApplications::execute function. In an attempt to separate front-end from backend, the applications administrative section can be placed in a separate locations. www.prodigyview.com
  • 9. PV_MODULES Modules are components that interact with applications. Files that contain the modules have a folder they are assigned. www.prodigyview.com
  • 10. PV_LIBRARIES PV_LIBRARIES is the location of the libraries that work with ProdigyView. Libraries are handled through the PVLibraries class. www.prodigyview.com
  • 11. PV_PLUGINS Plugins are extensions in ProdigyView whose addition is controlled by the database. Plugins can be object oriented or procedural additions and are persistent once loaded. www.prodigyview.com
  • 12. PV_MVC ProdigyView is a framework that allows multiple MVCs. MVCs are defined by the developer. An example MVC that comes with ProdigyView is Helium. www.prodigyview.com
  • 13. Configuration Files The configuration files are divided into two files. The php file contains the database connections. The xml file contains system configurations. www.prodigyview.com
  • 14. PV_TEMPLATES If the system being created allows templates, the template directory can set. www.prodigyview.com
  • 15. Javascript Libraries ProdigyView distinguishes the JavaScript files from normal JavaScript, JQuery, Prototype and Mootools. Also it recognizes a difference between front-end js files vs admin files. The files do not contain the PV_ROOT because they are accessed in the browser and having PV_ROOT might make them inaccessible from the browser.
  • 16. Media Files Media files consist of images, video, audio and files. ProdigyView allows separation of each file type. Parts of the framework such as the CMS make use of these defines for placing the files. These files also do not contain PV_ROOT. www.prodigyview.com
  • 17. Admin The last define is the administrative define. If this define is set to true, applications will be allowed to access their administrative section. If set to false, the function PVApplication::pv_exec_admin() will not be accessible. This is done to separate the front end from backend. www.prodigyview.com
  • 18. Review As seen, there are numerous defines that can set. Those defines are changeable to change how your system is set up. When you are comfortable with various aspects of the ProdigyView, take the time to change the defines to customize the system you build. www.prodigyview.com