2017.6.27
Abby ' s CAKEPHP2 Learning Tour
Download the XAMPP integrated development environment, then configure its database, refer to the Learning tutorial,
1. Create a form.
After configuring the information as follows, the Cache
Apache is the system user by default under Windows, so permissions are highest, but Apache in the XAMPP integration environment is Administor
How to change Apache user to System
- Silent Development. (A development method, the genius pattern in tomato todo is somewhat similar)
How to set the display of the. CTP
- How can http://cakephp2.local/posts/index automatically navigate to my Cakephp2 under the Ask folder? Add a button to the list (database?) Can I add the properties of a button in the database? )
- This page is currently rendered control, what is interface support? Database?
- How can the. CTP document be opened?
Delete shows the process and results: Popup page (confirm deletion?) Yes, no,) find the corresponding ID and delete it from the database.
The reason I can think of: database time does not match Web time? Where does its clock come from? How to generate automatically, what time functions are used?
/************************************************************************************************************** *************************************************************************************************************** *************************************************************************************************************** ********/
2017.6.28
I ' m about to learn php!
Learn PHP5 from zero
Reason: Many assumptions, lack of truth, less use, no logical concept of business
Reference book: Software engineering, data structure and algorithms
Goal to accomplish: the creation of a pure PHP implementation form.
- When you want to add an HTML statement, add <doctype html......html> eg:
1. Different parts with c++/c:
PHP is a weakly typed language and does not have to declare the data type of the variable to PHP.
PHP automatically converts variables to the correct data type based on the value of the variable.
In a strongly typed programming language, we must declare (define) the type and name of the variable before using it.
2. The syntax of doubt:
PHP stores all global variables in an array called $GLOBALS [index]. Index holds the name of the variable. This array can be accessed inside the function, or it can be used to update global variables directly.
Not the same as expected: The running result is still 10,
3.
$cars =array ("Volvo", "BMW", "Toyota"); Array of different, string with "()"
echo "My car is a {$cars [1]}"; Array, string with "{variable}"
4. Integer types can be specified in three formats: decimal, 16 binary (prefixed with 0x), or octal (prefixed with 0).
5. Floating-point numbers
6. Different array display forms.
7. Still need to add $
A. B |
collocated |
Connect two strings |
"Hi". "Ha" |
Hiha |
8.var_dump (); what function is it?
9.
10.PHP Array Operators
11. Logical Structure section (readable, see: http://www.php.cn/php/php-superglobals.html)
12. Ternary operators
Another conditional operator is the "?:" (or ternary) operator.
Syntax format:
(EXPR1)? (EXPR2): (EXPR3)
When EXPR1 evaluates to TRUE, the value is EXPR2, and the value is EXPR3 when the EXPR1 evaluates to FALSE.
From PHP 5.3, the middle part of the ternary operator can be omitted. Expression expr1?: Expr3 returns EXPR1 when EXPR1 evaluates to TRUE, otherwise returns EXPR3.
The true power of 13.PHP comes from its function.
Abby ' s Learning php5 essays