Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

NetTuts.com: Create your First Tiny MVC Boilerplate with PHP

NetTuts.com: Create your First Tiny MVC Boilerplate with PHP

If you ever find yourself in need of a basic MVC structure for your application but don’t want to get involved with a full framework to do it, you should try out this new screencast from NetTuts.com. It shows you the creation of a simple “tiny MVC” implementation.

It’s important for me to note that I’m not advocating that you shouldn’t use large frameworks. They absolutely have their places, and I use them often. That said, there are definitely times when they can be overkill for smaller projects. When your only requirement is code organization, it’s typically better to scrape together your own MVC boilerplate.

The screencast’s about 15 minutes long and it walks you through each step of the way – making the routing, setting up controller handling and working with views. For the impatient, you can also download the source and get started quickly.

Source: http://www.phpdeveloper.org/news/15958

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Posted Luty 26th, 2011 in WEB and PHP Development.

Leave a response: