The typical PHP web application consists of scattered scripts located in file extension structure that well resembles a web. When web scripting originated, the tasks to be performed were relatively simple, at least compared to todays tasks. So, the scattered list of files served quite well. In today’s world, we have very demanding applications, with very intense needs. Using the typical “a script here, a script there” method of designing a web application simply won’t cut it. You need a convention, in terms of file location and naming, and coding. Mojavi is based around a very strict convention of location and naming of files, and coding conventions. This allows you to familiarize yourself with the system very easily, which will lead to a more comfortable web application environment. Ultimately, there is a barely visible learning curve associated with Mojavi, which makes it very easy to learn.
Most PHP scripts consist of a few PHP functions and file extension protocols , a little bit of execution code, and then the typical HTML presentation. Combining application logic with presentation leads to spaghetti code. Not only is it hard to read, but it also results in redundant code use. With Mojavi, you follow a very simple rule — divide your logic, or pay the price. You must put your application logic in an Action implementation, your presentation logic in a View implementation, and then put the actual presentation, whether it’s HTML or XML, etc., into a template.