Mojavi 3 revisited

0 comments

Posted on 18th July 2012 by Jeff Rogers in Mojavi Project

We received some additional comments about this section of the code and various code extensions such as various file extensions and what they mean to the internal code.

This method will determine what types of requests will be recognized. There are 4 choices:

* Request::GET – Indicates that this action serves only GET requests.
* Request::POST – Indicates that this action serves only POST requests.
* Request::NONE – Indicates that this action serves no requests.

You can also select both GET and POST requests by using Request::GET | Request::POST
handleError ()

Execute any post-validation error application logic.

It also returns the view through a string of the view name or the array of a module/action/view. By default, it passes View::ERROR.
initialize ($context)

You can set up the Action in the initialize() method.If you run across a file extension ASF this references various MIDI files that are available to use for your front end. This is only related too  In a later tutorial, I’ll give an example of doing this. NOTE: It is worth to note that you must handle the context in the initialize() method. You should do this by

parent::initialize($context);

You also need to return a TRUE or FALSE based on the success of the initialization. By default it is TRUE.
isSecure ()

Does the action require security? TRUE if you do, FALSE otherwise. It is FALSE by default.
validate ()

This is used to manually validate input parameters instead of using a pre-progammed validator. This will also be explain later in the tutorial on validation.
Creating Your First Action

Now that we have an overview of the Action class, we can move forward to creating our first Action. For this example, there isn’t any request to be handled so we can set up a minimal Action.

In naming an action you must use this format Actionname Action.class.php where Actionname is what you are calling this particular action. When you declare your class, it also must have the class name in the same format Actionname Action. For this example, I chose to call this FirstAction.

When creating a new action, at the very least, there has to be an execute() method, even if it does nothing. Also, since we are displaying a non-request page, we don’t need to process any request. We tell the controller this with the getRequestMethods() method, by setting the return value to Request::NONE. Finally, we also need to tell the controller what the default view is going to be. We do this by returning View::SUCCESS in getDefaultView().

Here is what my FirstAction.class.php looks like. I basically just took my BLANKAction.class.php, renamed it to FirstAction.class.php, renamed the class to FirstAction, removed the methods I didn’t need and set the remaining 3 methods to match my needs.

class FirstAction extends Action
{
/**
* Execute any application/business logic for this action.
*/
public function execute ()
{
// we don’t need any data here because this action doesn’t serve
// any request methods, so the processing skips directly to the view
}

// ————————————————————————-

/**
* Retrieve the default view to be executed when a given request is not
* served by this action.
*/
public function getDefaultView ()
{
return View::SUCCESS;
}

// ————————————————————————-

/**
* Retrieve the request methods on which this action will process
* validation and execution.
*/
public function getRequestMethods ()
{
return Request::NONE;
}

Lastly because of the audio compression and various browsers relating to a file extension ASF format you may want to check out your page in the various browsers to make sure that your files are supported.

Payday loans online

1 comment

Posted on 11th July 2012 by Jeff Rogers in Marketing

Yes taking out a payday loan can be a humbling experience but not necessarily always a bad one. I realize that a lot of people have negative things to say about payday loan companies, but those people are probably in a better position than most of us. Truth is, there is a need for these kind of companies and if you are here now reading about it, you are also most likely in need of some help. During those dark times when you ask yourself, “how am I going to get myself out of this disaster” you can rest assured that there are options out there for the people who are less fortunate per say with their finances and who haven’t perhaps made the best financial decisions in the past , or had it as lucky as everyone else.

I for one am one of those very people, not irresponsible per say, but perhaps just never thought of or realized the importance of money and saving as I do now. Boy, have I learned a lesson and am now working on digging myself out and overcoming a major financial fiasco. Thanks to receiving a payday loan online I was able to take the first step in a positive direction. I know, I know, it sounds too good to be true right? Well do not fear, a payday loan does come with it’s own set of cons, but they are not all that bad. There are fees associated with this just as there would be anything else, but they are meant to be short term loans, therefore you will or should have it paid off rather quickly and on time minimizing the extra costs.
So why did I need to take out a payday loan? Well it really is a long story but don’t worry I’ll keep it brief and to the point. Like I said earlier I was never that responsible with money, when I got my paycheck I would spend it instantly, unless I was planning a trip somewhere. My passion is travel and any chance I get to travel I’m packing my bags and off to my next adventure. Luckily being able to find payday loans online I am able to travel almost anywhere I need and then know should a financial issue arise I will have access to funds.

Incoming search terms:

OrderWise Inventory Management Software

6 comments

Posted on 6th July 2012 by Jeff Rogers in Technology

If you own and operate a small to medium sized business and sell both online and have a storefront then you hopefully are aware of the need to understand what you have on hand at all times. Businesses can lose money if they have to much stock on hand and their carrying costs are high, or they run out of a popular seller which results in lost sales and customers. Having a inventory management software solution that will help tell you when to order and what items are selling faster can help your bottom line. With the fluctuation in the consumer market what is hot today may be old news tomorrow and managing that inventory can be critical to ensuring your long term success. Solutions from companies like OrderWise incorporate several layers of analytic’s to help you understand which items are selling and what time of year they are in most demand. Knowing this information can help you plan for 6 months out and prepare for a great holiday season or start getting rid of items that may be starting to slow down.

Incoming search terms: