25th April 2023

How to build a simple PHP MVC framework

Introduction How to build a simple PHP MVC framework | Today I am going to show how to create a simple PHP application following the MVC pattern (Model-View-Controller). I was inspired by a PHP course I taught some years ago, and in which I built a simple e-commerce with the students. This e-commerce was based on a simple MVC framework based on PHP. Then, people who have continued with code and programming already had a smattering of what means MVC before get their hands on a real framework. MVC frameworks are widely used in the industry because they offer a lot […]
14th December 2021

CakePHP: The Rapid Development Framework for PHP

XpertLab – Mobile Application Development Company in Junagadh CakePHP  is a rapid development framework for PHP which uses commonly known design patterns like Associative Data Mapping, Front Controller, and MVC. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers guarantee a strict, but natural separation of business logic from data and presentation layers. XpertLab – Mobile Application Development Company in Junagadh Why use CakePHP Framework? Cake PHP is by far, one of the quickest web development platforms. CakePHP […]
26th April 2014

MVC3: Layouts, RenderBody, RenderPage, RenderSection

MVC3: Layouts, RenderBody, RenderPage, RenderSection Layouts You typically want to maintain a consistent look and feel across all of the pages within your web-site/application.ASP.NET 2.0 introduced the concept of “master pages” which helps enable this when using .aspx based pages or templates. Razor supports this concept with a feature called “layouts”- which allow us to define a common site template, and then inherit its look and feel across all the views/pages on our site. RenderBody The RenderBody method resides in the layout page. There can only be one RenderBody method per layout page. The RenderBody method indicates where view templates […]
9th April 2014

How Linq to Objects Queries Work

If you have ever tried to step through a Linq to Objects query in the debugger, you may have been mildly surprised at the results. It may have seemed as if the program had a mind of its own and ran certain expressions when it wanted to and not when it was supposed to. Be assured, it is doing the right thing and the order of evaluation is giving you a glimpse of what actually happens when a query is evaluated. Consider this query: using System; using System.Linq; class Program { static void Main() { var foo = new[] { […]