Jessica Kennedy edited this page Jul 19, 2017 · 12 revisions

DIABLOS Framework

DIABLOS is the Anagram for "Does It All By Leveraging Open Source". The name came from my wife, who also started it by Does it all by learning objectives, but after some discussion and working through what this Framework does, we agreed on adding an "S" to DIABLO, and changing it to leveraging open source.

This Framework, is the beginning work of several functions, and scripts compiled into one easy to use call. This framework is one of the simplest frameworks you'll ever use. Imagine this system as an extension to PHP. It allows you to have several new reusable code snippets just as easily as typing and sending the parameters. This system allows you to build a complete system with one call on your index page.

Using the menu to the right, take a look at the Functions section of this Framework. If this is a framework you would like to add to your project, take a look at the Installation section of this Framework.

Plugins

This is an extremely simple example of what a plugin could accomplish although I wanted to have the ability to easily create new plugins simply by placing a directory in a user defined /etc/ folder and it will simply just work. A quick example is: Hello World

  • Create the directory plg_helloworld

  • Create the file plg_helloworld.php

  • Create the file plg_helloworld_config.php

  • Open the plg_helloworld_config.php and add:

<?php
    $config = array(
	"LOAD"=>"TRUE",
	"NAME"=>"HELLOWORLD",
	"VERSION"=>"1.0"
    );
  • Open the plg_helloworld.php and add:
<?php
    function helloworld(){
        return 'Hello World';
    }

Your entire plugin is completed, anywhere in your entire project, type in echo helloworld(); it will display Hello World. See the Plugins section to learn more about using and creating plugins with this system.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Clone this project into your project directory and add the fw.php to your index.php file. the fw.php will automatically detect if an installation is required, open your website to the file that contains the include('fw.php') and allow it to detect your system and its configured installation.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.