Smart people know how to use all the tools to help them improve their efficiency, so how to streamline some of the boring and complex things? The PHP development framework is obviously a better tool, do you know them? If you don't know enough about
1. Yiiframework
Yii is a high-performance PHP5 Web application Development framework. With a simple command-line tool, YIIC can quickly create a code framework for a Web application that allows developers to add business logic based on the
I. What is the problem with the current framework
At present, the main frame Zend Framework, cake and so on have adopted MVC pattern, and implemented the route assignment of URL. For example, Http://www.xxx.com/user/login will map to the
Do you encounter the following situations in the process of program development: When you have spent a lot of time developing an application, you think it should be done, unfortunately, when debugging, always constantly find bugs, and the most
For Web developers, PHP is a very powerful and popular programming language. Many of the world's top websites have been developed based on PHP. In this article, let's review the 20 best PHP frameworks for 2014 years.
Every developer knows that
Before looking at some PHP framework source code, very strange in the file contains, will use DirName (__file__) to patchwork file path, do not know what the benefits, then finally found the reason.
Let's look at a simple example:
There are a,b,c
Brief introduction
Kohana based on MVC pattern development, is a pure PHP5 object-oriented development Framework, although the framework is young, but it can be said that its development potential is very large. Because Kohana is a forum management,
If you want to decode PHP Zend encrypted files, you can find some specific methods online. We are here to introduce a simple PHP Zend encryption file to crack the method.
What should be noted in applying the PHP framework
Experience summary PHP
According to what I said last time, a basic MVC architecture has been built up, but there are many problems, such as: the model of each connection to DB, shut down the DB code redundancy, view this or PHP code, each file to use a lot of include code,
example, using three functions: Ob_start (), ob_get_contents (), Ob_end_clean ( )
Knowledge Points:
1, Ob_start function is generally used to open the cache, pay attention to the use of Ob_start can not have any output, such as spaces, characters
Do you encounter the following situations in the process of program development: When you spend a lot of time developing a PHP application, you think it should be done, but in the debugging, always constantly find bugs, and the most frightening is
Before looking at some PHP framework source code, very strange in the file contains, will use DirName (__file__) to patchwork file path, do not know what the benefits, then finally found the reason.
Let's look at a simple example:
There are a,b,c
Brief introduction
CodeIgniter is renowned for its ease of use, performance, and speed, and supports PHP4. It provides a rich code base for people to use in the toolkit designed to build a PHP website, which encapsulates some of the features
Brief introduction
Speedphp is an MVC architecture based on the "rapid development, fast learning, fast running" concept of domestic open source framework, it supports PHP5. Convenient and practical command sets, fully encapsulated CRUD database
Database Data Model
How to use
Constructing a database table model
$beian =m (' Beian ');
Auto-populate Triple-a BBB field $_post also have these two fields
$beian->create (Array ("AAA", "bbbb"));
Fill in $data
$beian->create ($data, Array ("AAA",
Not original, set up their own class apode+ dz template + Package PDO, the application process is not to see, and the general framework syntax is the same, look at the implementation of the process, the main learning how to implement a framework,
Here is a super simple MVC architecture implementation, even a data source with a built-in fixed array, although simple, but in fact many of the PHP framework core implementation of the idea should be similar to this
But some frameworks provide more
Cake is a PHP framework that is structured according to Ruby on Rails. Like Ror, Cake also encapsulates operations on the database. At present, cake is not yet a mature framework, but it is worth paying attention to.
Below describes how to install
The last few days decided to look at the CI Framework source code, because it is lightweight, the structure of the code file is clearer, and index.php as a portal, loading all the base classes in the codeigniter.php file, so I looked at each class
Raphael Caixeta, as a developer who just started using PHP, summed up the 10-point PHP development technology, hoping to help some of the great beginners of the language:1, try to use PHP with the core functions and classes
2. Use the configuration
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.