Developing New Paths - The Mojavi Project

Archive for April, 2010

Marketing

April 19, 2010

Moving technology

Tags: , ,

I love the fact that the internet has made almost any task or service that we need done much more simple. From communicating via short word conversations to finding a dog sitter to helping you find a mover. I had a chance to check out Citymove.com where they provide a service that allow customers and movers or moving companies negotiate with each through one simple platform. As the end user you simply create a free account and then put in your requirements from the number of rooms, how many movers needed, and the size of the truck you may need. Don’t worry if you have not moved before there is the option to let the movers help you figure this out. Having moved several times I can tell you that having a service like this would have saved a considerable amount of time. Because in most you will call around to various companies and get bids by simply looking through the yellow pages or doing an online search. Here you set the requirements and let the movers come to you.

They specialize in Moving Companies NYC proper but also can help if you are located throughout the US. In your dashboard they even provide resources to help you find packing boxes, and change your address. They have developed tutorials for both the consumer and the vendor to help understand how the system works and what to expect from each other. They have developed a rating systems so that you can see who the more reliable movers are and what others are saying. For a moving company situated in New York this simple yet easy platform could be a great way to uncover new business and break through all the clutter.

Marketing,Technology

April 16, 2010

Gain access to the internet

Tags: , , , , , , ,

The latest dsl service is now very accessible to a lot of people.
The latest internet service hosting companies. You can find providers like copper.net to provide cheap dial up services with reliable support so that if you are unable to afford the broadband connection you can at least get in the game.

Mojavi Project

April 6, 2010

Creating the View

For now, all we need to use is the execute() method.
Creating the View

The class name should be in this format ActionnameViewtype View. Again Actionname is the name of the action in the module. Viewtype is the view type that was passed to the controller in the action. Both Actionname and Viewtype are capitialized. This is a list of the predefined view file types and their naming convention.
Internal Name Class and File Name
ALERT Alert
ERROR Error
INPUT Input
SUCCESS Success

Mojavi 2 users ; the naming convention and doc on the file has changed slightly. Before there was an underscore between Actionname and Viewtype. Now, there is no underscore in between, and the Viewtype is capitialized.

For this example, I called my view FirstSuccessView and named the file FirstSuccessView.class.php.

Here’s the code

class FirstSuccessView extends PHPView
{
/**
* Execute any presentation logic and set template attributes.
*/
public function execute ()
{

// set our template
$this->setTemplate(’FirstSuccess.php’);

// set the title
$this->setAttribute(’title’, ‘Getting Started First Test Page’);

// set the message that is to be passed
$this->setAttribute(’passedData’, ‘Hello World!’);

}

}

Template

You also need a template to display the information. I stayed with the naming convention and called my file FirstSuccess.php.

Here is the code for that please note that asp extension files will not work unless you have already created a master template.
This is the result of my first test. I have created a module, action, view and
template. I have successfully passed data from the view to the template.This is what I passed:
That is all for now.
Notice at the first and last line I include a header.php and footer.php. I used this to show how you could have a uniform look across the entire site and how you could do that. Mojavi uses a global template directory in your webapp directory. It is defined as MO_TEMPLATE_DIR and it called templates. I added the following files to the includes sub-directory in the global template directory.
header.php

footer.php

Wrapping it up

Finally, there are a couple of ways you can test this module. Make sure to test in various browsers like firefox which use xpi extensions for their add-ons. The first and quickest way is just to instruct the controller using the url. Just add the module and action. Here’s what it would look like http://yourserver.com/index.php?module=Test&action=First.

The second way is by changing the default module in the settings.ini file in the webapp/config directory.

Under [.actions] you will find the default module. Find the following two lines and change the default module and action.

DEFAULT_MODULE = “Default”
DEFAULT_ACTION = “Index”

After you change the default module and action it should look like this

DEFAULT_MODULE = “Test”
DEFAULT_ACTION = “First”

You are now ready to test your code. Just point your browser to the index.php and see the fruit of your labor.