Developing New Paths - The Mojavi Project

Archive for September, 2009

Mojavi Project

September 21, 2009

What is Mojavi

Tags: , , , ,

Mojavi is an open-source MVC (model-view-controller) php framework, licensed under the LGPL. Developing with Mojavi php framework enables you to easily divide your web application into tiers, allowing for independent custom web application development. These applications have been tested on various servers and firewall applications. There are numerous solutions that are available in the market like the Cisco ASA 5505 and the HP Proliant Servers that have set the standards in reliability and security within their field. The solutions and programming field has even grown into the telecommunications field with routers like the Cisco 7910 where small and medium size businesses can have a truw communication architecture that runs over an IP protocol enabling you to locate offices and employees anywhere.

serversFeatures

  • Modular Design
  • Filter Chains
  • Action Chains
  • Customizable User Containers
  • Parameter Validation
  • Validator Library
  • Built-in Authentication and Authorization
  • Logging System

What is Mojavi?

Mojavi is a framework developed in PHP and strongly based on the MVC (model-view-controller) application design paradigm. It can be run a variety of network servers that employ security features that will work with the curent MVC model.

What is MVC?

Model-View-Controller is a design pattern for application development. MVC organizes an application into three separate tiers: one for the model, which represents data and handles business logic, the second for presentation and user input, and the third as a controller, which handles incoming requests and controls application flow.

What are the benefits of MVC?

An application designed around MVC is easier to manage because the application is split into tiers, which allow for independent development. This promotes code reusability by building models, which are reusable throughout the application.

Why create an MVC framework for PHP?

Development of PHP scripts without a preconceived plan to manage them is asking for a headache. Before I started developing Mojavi, there weren’t any frameworks that were designed the way I thought a PHP MVC implementation should be designed.

How is Mojavi licensed?

Mojavi is licensed under the LGPL.

Where can I get a copy of Mojavi?

Stable and development releases are available on our downloads page.

Technology

September 19, 2009

CMS Software to maximize your customer experience

Tags: , , ,

Those in the IT and programming field understand the value enterprise content management and what that can ultimately mean to an organization on the overall company vision and engagement with their external and internal customers. Through the open development of platforms like Mojavi this collaboration has enabled people from across the globe to contribute in developing a platform that can be used in various business and web functions in order to facilitate customer engagement.

customer managementWhen you have the Mojavi 3 source, it should come with this directory structure:

root
|
|—config
|
|—phing
|
|—php_documentor
|
|—source
| |
| |—mojavi
| |
| |—webapp
| |
| |—www
|
|—sql

Here is a brief explination of each of the directories

* config – sample configuration files
* phing – phing scripts (learn more about phing here )
* php_documentor – templates for generating Mojavi API docs php Documentor website
* source – all the source files
* source/mojavi – the core Mojavi source
* source/webapp – your web application
* source/www – web accessible files
* sql – sql sample files

Installation Steps:
Moving the Mojavi Source

First, move the source/mojavi directory to a non web accessible location, preferrably the parent directory of your root web directory. On most installations this would be the parent directory of your public_html or www directory. On a Windows Apache, this would probably be the parent of the htdocs directory. Move the entire contents of the mojavi directory (including the mojavi folder)
Setting up the webapp

Move the source/webapp directory to a non web accessible location, preferrably the parent directory of your root web directory, which should now have a mojavi directory. Next, give your webapp/cache directory full write permissions. In unix you can type “chmod 777 cache”. On Windows you must go through your webserver to give it write permissions.

You must configure your webapp/config.php configuration file.

There are two lines you need to change

// +—————————————————————————+
// | An absolute filesystem path to the mojavi library. This directory |
// | contains all the Mojavi packages. |
// +—————————————————————————+
define(‘MO_APP_DIR’, ‘/mojavi’);

// +—————————————————————————+
// | An absolute filesystem path to your web application directory. This is |
// | where modules are stored. |
// +—————————————————————————+
define(‘MO_WEBAPP_DIR’, ‘/webapp’);

Replace DIRECTORY with the web directory. Under Linux, it may look like /home/username/. Under Windows (with Apache) it may look like c:/apache/

Here’s the final code

// +—————————————————————————+
// | An absolute filesystem path to the mojavi library. This directory |
// | contains all the Mojavi packages. |
// +—————————————————————————+
define(‘MO_APP_DIR’, ‘/home/username/mojavi’);

// +—————————————————————————+
// | An absolute filesystem path to your web application directory. This is |
// | where modules are stored. |
// +—————————————————————————+
define(‘MO_WEBAPP_DIR’, ‘/home/username/webapp’);

Final Step

Move the index.php file in the source/www directory to your root web directory (the public_html, www or htdocs directory). This file must be accessible from the web. Any location that is accessible via the web will do.

Now you need to configure your web directory’s index.php file that you just moved.

// +—————————————————————————+
// | An absolute filesystem path to our webapp/config.php script. |
// +—————————————————————————+
require_once(‘INSERT PATH TO “webapp/config.php” HERE’);

// +—————————————————————————+
// | An absolute filesystem path to the mojavi/mojavi.php script. |
// +—————————————————————————+
require_once(‘INSERT PATH TO “mojavi/mojavi.php” HERE’);

The same directory rules apply here as with the config.php file. Here’s the results

// +—————————————————————————+
// | An absolute filesystem path to our webapp/config.php script. |
// +—————————————————————————+
require_once(‘/home/username/webapp/config.php’);

// +—————————————————————————+
// | An absolute filesystem path to the mojavi/mojavi.php script. |
// +—————————————————————————+
require_once(‘/home/username/mojavi/mojavi.php’);

Success

You’re done. Try accessing your index.php file from the web.

Reblog this post [with Zemanta]

Technology

September 11, 2009

Getting a good nights sleep

Tags: , ,

If you travel frequently and have to stay in hotels then you have probably had those late nights where it just seems impossible to get to sleep. I will often find myself watching TV and trying to get some rest for my meeting the following day with little impact. It is especially worse when I am traveling across different time zones and your body is unable to adjust because you may only be in that city for a day or two. So you try your best and hope that if you are unable to get that good nights rest that there is a coffee shop close by in order to get you going.

In my most recent travels I stayed in a hotel that offered a white noise machine as part of their package. I have heard about these devices that are able to produce subtle background noises like waterfalls or soft rushing waves in order to help you get a better nights sleep. I must say based on my stay and how well rested I was the next day it appeared to have worked quite well. So good in fact that apparently there was a thunderstorm that rolled through the area early in the morning and I did not hear a sound. While traveling on the road it can be tough to get to sleep because you are not in your own bed and having a sound machine that will play soft tones in order to help relax in order to get a better nights sleep is something that I may have to invest in.

Reblog this post [with Zemanta]

Technology

September 7, 2009

Shopping Wiki Style

Tags: ,

wikiA another new breakthrough from Apple who brought us the iPod, the iPhone and now the new MacBook laptop that is the thinnest notebook available. The commercials are impressive and looking at this laptop it is hard to believe that it is actually thin enough to fit into a mailing envelope. I have always been a PC guy and all the laptops that I have owned have been windows based. This may all have to change especially with as much traveling as I have to do lately the convenience that this new technology will bring will be great.

nikonThere are now dedicated sites likie Shopwiki UK.where you can find items like the Nikon Coolpix camera and thousands of other items to be compared.