Browsing all articles tagged with CMS
Jul
17
Comments Off on The MVC Pattern and PHP

The MVC Pattern and PHP

4.3

The Model-View-Control (MVC) pattern, originally formulated in the late 1970s, is a software architecture pattern built on the basis of keeping the presentation of data separate from the methods that interact with the data. In theory, a well-developed MVC system should allow a front-end developer and a back-end developer to work on the same system without interfering, sharing, or editing files either party is working on.

Even though MVC was originally designed for personal computing, it has been adapted and is widely used by web developers due to its emphasis on separation of concerns, and reusable code. The pattern encourages the development of modular systems, allowing developers to quickly update, add, or even remove functionality.

Understanding MVC

The pattern’s title is a collation of its three core parts: Model, View, and Controller. A visual representation of a complete and correct MVC pattern looks like the following diagram:

 

MVC-Process

The image shows the single flow layout of data, how it’s passed between each component, and finally how the relationship between each component works.

read more

Sep
12

Quick Tip: 7 Super-Handy PHP Functions for Beginners

4

Function 1: array_rand

Let’s start with a simple one. Ever want to get a random item out of an array? You might use rand or mt_rand to get a random number, passing 0 and the last index of the array as the min and max parameters; this will give you a random key that you can use to pull a value from your array.

However, there’s a way that’s a little bit quicker: array_rand. Just pass it your array, and it will return the random key.

Select Code
1
2
3
$sites = ["Nettuts+", "Psdtuts+", "Mobiletuts+", "Mactuts+"];
$k = array_rand($sites);
$sites[$k];

If you want more than one random value from the array, pass a second parameter identifying how many; you’ll get back an array of random keys.

read more

Aug
14

Best Joomla Templates

5

Game Crusade

Looking for the ultimate gaming site? Look no further, Game Crusade’s 100% transparent core is just what your site is needing!

game crusade

read more

Aug
9

Outstanding Admin Panels for Your Web Applications

5

An admin panel is a must have for web applications like e-commerce projects or content management systems,known as CMS,and these beautiful panels are full of features created to make your life easier.All are perfectly coded and using the power of jQuery to animate the panels.

Simpla Admin

Simpla Admin is a professional template with a beautiful and user friendly interface. With various smart and intuitive jQuery functions, navigating the interface is a breeze.


simpla admin control panel 34 Outstanding Admin Panels for Your Web Applications

read more

Aug
9

40+ Beautiful Themes For Adobe Flex Apps


Aeon by Xu Jiajun

Lime green, grey and white skins with smooth curves and glassy surfaces.

Aeon

Demo | Download Source Code

read more