


Cakephp learning notes—uppercase and lowercase, singular and plural
It’s been a while since I came into contact with cakephp and learned to use it! But even the most basic things cannot be written smoothly! Here I also take a note of the places where mistakes often occur during the learning process! I hope everyone can pay attention to it while learning!
1. My English is not good, words are written wrong, and pay attention to capitalization! It is often difficult to find, so everyone should learn more English and memorize more words! A For example: containable cannot be written as containable (first letters) and containabel (Le-& GT; EL);
class AppModel extends Model { var $actsAs = array('Containable'); }
2. Document names about the controller, model and view, lax and single plural, etc.!中 Personally think that in a single plural, the controller, data table name, and view folder are named plural; the model is named single!写 The file name is not as small as a lowercase, but please pay attention to the line (_) this stuff! There is capitalization in the code!
received controller part)
Model: File name: received_note.php
code: re Rreee View: The folder name is plural. Such as: "users"
Please experience the capitalization, underlining and naming in cakephp! Once you are familiar with it, you will learn and develop more smoothly! Wish ya'll good luck!
The above are the Cakephp learning notes - uppercase and lowercase, singular and plural content. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

CakePHP is an open source PHPMVC framework which is widely used in web application development. CakePHP has many features and tools, including a powerful database query builder for interactive performance databases. This query builder allows you to execute SQL queries using object-oriented syntax without having to write cumbersome SQL statements. This article will introduce how to use the database query builder in CakePHP. Establishing a database connection Before using the database query builder, you first need to create a database connection in Ca

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. 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 gu

Validator can be created by adding the following two lines in the controller.

To work on file upload we are going to use the form helper. Here, is an example for file upload.
