Tuesday, July 21, 2020

How to create Model in CakePHP 4?

Model is an important component of MVC design pattern, models are basically responsible for storing data and exchange with other layers in the application, in CakePHP models are fat layer and serve as business and data access layer. In addition to these roles’ models can manipulate the data by several other means, for example, files, web services etc. Guys, if you don’t know what is MVC design pattern, visit my article What is the Design Pattern...

Monday, July 20, 2020

How to create controller in CakePHP 4?

Hi guys, in our last article we have seen how to setup database in MySQL. It is the first step to start application in CakePHP, or Database First approach. If you have not seen the article visit the link How to setup Database for CakePHP 4.x Application? Today, we will see, how to create our first controller in application. Before starting the coding, I will recommend to download any code editor which support the PHP development, my recommendations...

Saturday, July 18, 2020

How to setup Database for CakePHP 4 Application?

Hi guys, In the last article we have seen the strategy for CakePHP application development, till now in the series of articles we have seen the different aspects of CakePHP application development, Its installation, basic configuration, setting up database server, MVC design pattern, the strength of ORM and RDF (Rapid Development Framework) Bake console Utility, which is a plug-in of CakePHP. If you have not seen previous articles visit the...

Thursday, July 16, 2020

What is CakePHP 4 Development Strategy?

Hi guys, in the last article we have discussed the design pattern of CakePHP 4.0, today we will discuss the development strategy. When we talk about strategy, first question comes in the mind from where we should start. So the answer is in CakePHP we should start from the root. The best practice is to build your database first and then application, in CakePHP 4.0 you will get great advantage with database first approach. We will see below what other...

Wednesday, July 15, 2020

What is the Design Pattern of CakePHP 4?

CakePHP 4.0 follows the MVC (Model-View-Controller) design pattern. MVC consist on three main components. Model, View and Controller Model Any application which is dynamic in nature depend on data, model is the container of data.  For example, Student is a model, it contains its related data like First Name, Last Name, Roll Number and Grade. In programming languages data is encapsulated in the objects of as class. Model has a central role...

Tuesday, July 14, 2020

How to Interact with MySQL?

Welcome, in our last article we have seen that CakePHP 4.0 application is up and running, but it was not able to connect to the database. The reason behind this is that we have not yet created any database. To make connection with database it is good idea to learn some basics about MySQL before proceeding further in CakePHP 4.0 application development. phpMyAdminphpMyAdmin is PHP based MySQL administration tool, it is free and by default installed...

Monday, July 13, 2020

How to create First CakePHP 4 Application?

Welcome, today we are ready to create our first CakePHP 4.0 application. Before we create CakePHP 4.0 project we have to do minor modification in the "Php.ini" file. Start your XAMPP control panel and click on “Config” button in the Apache service row and select the Php.ini file. It will open the configuration file in the text editor. Now locate the extension intl and un-comment by removing the semicolon from the beginning.It’s time to create...

Saturday, July 11, 2020

How to verify the CakePHP 4 development environment?

How to verify the CakePHP 4.0 development environment is it ready to go? Hi guys, those who have not gone through my last posts, where I have explained step by step how to set up the CakePHP development environment, may check this link Home. In this post we will proceed further to verify what we have done earlier. You can proceed step by step and confirm that everything is working fine. Check Our Web Server Apache is working fine? Open your XAMPP...

How to install CakePHP 4?

How to install and configure CakePHP? Hello again, those who have not red the first part of this post can visit What is CakePHP? In the last post we have seen step by step how to install the prerequisite for the environment required for the CakePHP application development. In this part and in up coming post we will configure the environment and write a simple code to prove that the workplace is ready for the application development.Starting Up Apache...

Friday, July 10, 2020

What is CakePHP 4?

What is CakePHP? CakePHP is web application development framework based on PHP (Hypertext Processor). It is an open source scripting language and widely supported by the developers communities. It follows the MVC (Model, View and Controller) development pattern. What is the latest version available? At the time of this blog the latest version 7.4.8 of PHP released on 9th July 2020, for reference visit the link. CakePHP latest version...