Outglow

Outglow
Outglow
URL http://code.google.com/p/outglow/
Type of site OpenSource
Available language(s) English
Content license GNU GPL v3
Launched 2010/06/27
Current status In development
Lightweight OpenSource PHP Framework

Contents

Brief Overview

Outglow is Lightweight OpenSource MVC-Based PHP framework that allows you to create dynamic web applications in a short amount of time. Currently it is a very compact framework that makes it very easy for developers to improve it as they create their application within it. It uses a different terminology in comparison to other frameworks out there, but still uses the same fundamental principles.

History

The first release of the Outglow framework was on June 27, 2010, and since then has changed a lot, not only the main classes that build the core of it, but the way in which URLs are structured and the way requests are called to other parts of the application. There have not been many stable releases since it started, the most stable version (to this day) was released almost 1 year after development first started.

Structure

The framework is structured into 3 main parts. Bridges, oModules and Views. Bridges are very much like Controllers in terms of MVC, oModules are used to communicate with a data base and/or dynamically load data into your app.

Example Code

Bridge

welcome.php
<?php
        class Welcome extends Bridge
        {
                function index()
                {
                        global $render;
                        $render->TEXT("Hello World");
                }
                function about()
                {
                        global $render;
                        $render->TEXT("This is the about page.");                   
                }
                function page3()
                {
                        global $render;
 
                        $title = "Hello World";
                        $heading = "This is my heading!";
 
                        include($render->DYNAMIC_LAYOUT_VIEW("welcome"));
                }
        }
?>

This code will simply output text to your browser. However with the '$render' object, you can pull in views, e.g. HTML files. Data can then be passed from the Bridge, into a View.

View

welcome.html.php
<html>
        <head>
                <title><?php echo $title; ?></title>
        </head>
        <body>
                <h1><?php echo $heading; ?></h1>
        </body>
</html>

This is how data can be passed through to a View, from a Bridge.

Classes

The classes are fairly simple to use, and are split up in the framework so they are easier to find, if needed to check how a method works. There are few classes up to date, but by the looks of it, there will be more added in future releases.

Data

Outglow currently supports use of a MySQL DBMS, and with its built-in database class, uses the mysqli driver. There are changes made often to the way data can be accessed.

Mapping

If a table is created in a MySQL database, Outglow can automatically map that table to an object in the framework. This means that you will be able to create queries, using minimal code, and the database class does all the work behind the scene. These kind of methods are found in the omod.php and omod_index.php libs, within the og_com directory.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • outglow — v.t. * * * …   Universalium

  • outglow — verb To glow brighter than …   Wiktionary

  • outglow — v.t …   Useful english dictionary

  • Comparison of web application frameworks — This is a comparison of notable web application frameworks. Contents 1 General 1.1 Perl 1.2 PHP 1.3 Java 1.4 Python …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”