Developing New Paths

The Mojavi Project

Archive for August, 2009

August-27-09

Advanced shopping engine

posted by admin

searchWe see the term every, but do we really understand what Wi-Fi is? It’s on the window at Starbucks, the box our laptop comes in and is a huge selling point for PS3 and Xbox, but do we really know what Wi-Fi is? Well simply put, Wi-Fi is the trade name for popular wireless technology used in home networks, mobile phones, video games and other electronic devices that require wireless networking. Wi-Fi technology is supported by personal computers, game consoles, printers and other peripherals which can operate wirelessly.Finding new games for the  Xbox 360. is now easier at site like shopwiki. You can find  Madden 10 from various vendors and able to choose the best price and shipping. The new Xbox 360 elite system is also available to those who are looking to upgrade their current Xbox system. There are hundreds of shopping and comparison sites but shopwiki.com does a nice job in providing a great selection of products and places online and in the store where you can buy your games and gadgets.

August-10-09

Mojavi 3 Part 2

posted by admin

This is a list of the methods you can use in an Action and an explanation of what they do
execute ()

Note: This method is required in your Action class. Also there are File Extension SVG which stand for scalable vector graphics

This will execute any application/business logic for the action. This method is reached only after the request methods have been checked and any of the parameters have been validated.

When leaving, the execute() method should tell the controller what view is to be used. This is done by returning a string containing the view name associated with the action or an array of the parent module for the view to be executed, parent action for the view and the name of the view. I will show an example of return both in a later tutorial.
getCredential ()

This is a new feature in Mojavi 3. Basically, a credentials are a privilege array that describes any level of security. They work hand in hand with the security aspects of the User class. For Mojavi 2 users, note that this replaces the old Privileges. But it is also important to know that it can do more than just handle privileges. I will handle the usage of creditials in a later section. For now, it is sufficient to know that we set the creditial requirements for the action inside this method and that it is set to NULL by default.
getDefaultView ()

This is the view that will be executed when a given request is not served by the action. This could happen when a form being displayed for the first time or if we are displaying a static page. Be sure to reset any variable in the graphic engine and search out the File Extension SVG portions by using a simple search.

Again, just as with the execute() methoad, a string with a view name or an array of a module/action/view is passed back to the controller. By default it will pass back View::INPUT
getRequestMethods ()

You can also return a view from another module. You do this by passing an array with the view information instead of the standard View::INPUT. When you use this you create a two element array. The first element is the module name. The second element is which view you want. It cannot be just the Action name, but the file extension Action name with the specific view.

Here’s an example:

class MyClass extends Action
{

function execute()
{

$returnView[0] = MyModule;
$returnView[1] = DoSomethingInput;
-or-
$returnView[1] = DoSomethingError;
-not-
$returnView[1] = DoSomething;

return $returnView
}
}

View

I’ll add more to this later, describing the View class.

Tags: