The above solution is just my thoughts over the past few days and may not be perfect. Specific applications can be further refined and optimized. For MVC and frameworks, I always think that in PHP5, objects are more suitable and effective than processes (excluding the cost of creating objects ). I also tried to use functions to implement the framework in my previous PCTI lectures. I think the ideas are similar, but I prefer objects.
I. What are the pr
registerAction. php in the above code into the user directory. However, note that this will increase the trouble of route allocation, and the readers will think about how to implement it.
It is not difficult to solve the second problem. The key is to have an object-oriented thinking. Here, we can use the inheritance of objects. For example, in the above example, we can first define a user abstract class.
Class user extends Action (){
Function _ contruct (){
// For example, permission check
I taught CSS and JavaScript a few days before learning pcti in phpchina.
Javascript identifier
An identifier is a symbol defined in Javascript, such as the variable name, function name, and array name.An identifier can be composed of uppercase/lowercase letters, numbers, underscores, and dollar symbols in any order. An identifier cannot start with a number or use reserved keywords in JavaScript.Performanceipt is case-sensitive. Each function ends
Phpchina learned pcti a few days ago to teach CSS and JavaScript first to see
The identifier for JavaScript
Identifiers are symbols defined in JavaScript such as variable names, function names, array names, and so on.
Identifiers can consist of any sequence of uppercase and lowercase letters, numbers, underscores, and dollar signs, identifiers cannot start with numbers, and cannot use reserved keywords in javascript.
Javasceipt is strictly case-sensi
, note that this will increase the trouble of Route allocation, and the readers will think about how to implement it.
It is not difficult to solve the second problem. The key is to have an object-oriented thinking. Here, we can use the inheritance of objects. For example, in the above example, we can first define a user abstract class.
Class user extends action (){
Function _ Contruct (){// For example, permission check}}?>
Then, both loginaction and registeraction are inherited from the
always think that in PHP5, objects are more suitable than procedures and more efficient (except for the cost of creating the object itself). For the use of functions to implement the framework, the previous paragraph in pcti Lectures I also tried, I think the idea is similar, but I prefer the object.
Finally, the solution above refers to some of the ideas of struts in Java. Thank you for that!
http://www.bkjia.com/PHPjc/318515.html www.bkjia.com tru
100); Explanation: Initially assign two extent to the test table, the first extent is 100K, the second extent is 100K because of next=100k, and if the data in the table is increased, a third extent should be allocated because PCTI
Ncrease is 100, then the third extent is 200k=100k+100k; The fourth extent is 400k=200k+200k. You can view parameter settings through the data dictionary table dba_tables, All_tables, User_tables, for example: select Tab
to share?
The first question is a better solution. Put the action of the same module in a subfolder, which means to allow multiple directories. For example, in our code above, we can put loginaction.php and registeraction.php in the user directory. But note that this will increase the problem of routing allocation, how to achieve it depends on the reader to think for themselves.
The second problem is not difficult to solve, the key is to have object-oriented thinking. Here, we can use object
same module in a subfolder, which means to allow multiple directories. For example, in our code above, we can put loginaction.php and registeraction.php in the user directory. But note that this will increase the problem of routing allocation, how to achieve it depends on the reader to think for themselves.
The second problem is not difficult to solve, the key is to have object-oriented thinking. Here, we can use object inheritance to implement. For example, we can define a user abstract class
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.