, and modules. Pake is a php tool, similar to the Rake command (this is a tool that converts the make command to Ruby ). It automates some management tasks based on a special configuration file named pakefile. php. If you use the pake tool instead of the symfony command line, all operations will become very simple.
To get a list of all valid management operation
Composer
Symfony has a good partner called Composer. let's take a look at how to use Composer to install Symfony.
Get Composer
As mentioned above, Composer is a phar php code package (Php ARchive) that can be executed. it is a cool thing. if you are interested in it, https://getcomposer.org/has more information about
initialize it as an empty shell of a file structure that Symfony can recognize.
Symfony command line automatic processing module creation. We only need to call the init-module task and use the program name and module name as the parameter. After creating a myapp program, to add a mymodule module to the program, run the following command:
The code is as follows:
> Cd ~ /Myproject>
Symfony generates the QR code. Symfony is used to generate a QR code. this example describes how symfony generates a QR code. For your reference, I have found many ways to generate QR codes using Symfony on the Internet.
This example describes how to generate a QR code using Symfo
This article mainly introduces the ten-minute tutorial on Symfony, detailed the basic operation skills such as Symfony installation configuration, project initialization, Bundle creation, design entity, constraint addition, addition, deletion, modification, and query, for more information, see Symfony, a powerful
Symfony implements the method for obtaining the request parameter in the behavior and template, symfonyrequest. Symfony implementation behavior and method for obtaining the request parameter in the template. This document describes the Symfony implementation behavior and the method for obtaining the request parameter in the template. We will share with you how to
Symfony supports multiple sites (applications). The standard release of Symfony only supports one site. although you can use different routing rules based on different domain names through Host configuration in the routing system, this can also implement features similar to multiple sites, but the disadvantages are also very obvious:
Symfony
If you want a S
; dispatching ();
This is not better.
No cumbersome manual loading,
You only need to know the name of the app you want to run.
Summary:
It can be said that qeephp looks at the current directory structure,
Yes.
Of course there are still some problems.
Qeephp has a better directory structure than thinkphp.
Cakephp The cake directory is very interesting:
An empty app project directory.
Then there are four core caches, controller, model, and view. they are really mvc...
Very simple, too simple,
Cake
the root directory, you can see the Symfony installation Success screen using the following URL.
http://localhost/Symfony/web/app_dev.php
If you use Nginx, you may need more configuration work, and further articles will be introduced later.
More readers interested in PHP related content can view this site topic: "PHP
only need to log errors. Cache acceleration is not usually turned on in the development environment, but needs to be turned on in test and final product environments. The development environment and test environment may require data to be tested and stored in the remote database of the final product. All environments can coexist on a single machine, and typically only the final product environment is available on the product server.
Note: If you are using S
Symfony installation, Symfony installation
Symfony is an MVC-based PHP framework with the latest version of 2.7
Working principle
Two methods of Synfony installation
1. Install with composer
1) Download Composer http://getcomposer.org/Composer-Setup.exe installation
2) Call the system command line
' ~2.6
(Use comp
Symfony is a powerful PHP based Web development framework, where we use 10 minutes to do a simple deletion and modification procedures, anyone unfamiliar with Symfony can complete their first Symfony program through this tutorial.
If you need the full source code for this s
Symfony installation use, SYMFONY2 installation
Symfony is a powerful framework with DI features, and currently the most popular PHP development framework drupal,laravel The bottom-up is the use of symfony. To learn more about Symfony, portal
Installation
Up-to-last week I was exclusively a XCache user if we talk about PHP accelerators. Recently I needed to the use of APC with a symfony application. As Symfony offers nice APC integration it went quite smooth.
Note that just enabling PHP accelerator (any) improves performance because of the opcode caching. That's why i
the configuration accessories.
For example, you need to record warnings and errors in a test environment, while in a final product environment, you only need to record errors. Cache acceleration is usually not enabled in the development environment, but must be enabled in the testing and final product environments. Data used for testing may be stored in the remote database of the final product in the development environment and test environment. All environments can coexist on one machine, whil
Symfony implements the behavior and method of obtaining the request parameter in the template, Symfonyrequest
The examples in this paper describe the Symfony implementation behavior and the method of obtaining request parameters in the template. Share to everyone for your reference, as follows:
I. Getting parameters in a template
Two. Parameters obtained in behavior
$request->getparameter (' name ');//Tem
Symfony framework access problems in China mobile cmwap network, symfonycmwap. Symfony framework access problems in China mobile cmwap network. symfonycmwap recently used the symfony framework to provide backend services for mobile apps. it is found that problems may occur in China mobile cmwap network, all requests for symfo
Brief introduction
Symfony is a Web application framework for the development of PHP5 projects, using PHP+MYSQL developed Content management System CMS, which contains powerful caching capabilities that automatically load class. It fully implemented the MVC three layer, encapsulated everything, including $POST, $GET data, exception handling, debugging, data detection, and using XSLT as a template engine, n
.
There are, of course, some problems.
Comprehensive look qeephp in the directory structure than thinkphp good
Cakephp Cake's catalogue is interesting:
An empty app project directory.
Then the core of the 4 Cache,controller,model,view is really mvc ah ...
Very simple, too simple,
CakePHP provides the CLI to initialize a basic MVC application.
So the starting mode is similar to qeephp.
Zend Zend had to use a thumbnail,
It's too much, it's all too big.
The Zend is clearly clear,
Clearer than Qeeph
already know the different components of the symfony application, but you may not know how it is organized yet.
Project Structure: applications, modules, and actions
In symfony, a project is a group of services and operations under a domain name. They share the object model.
A project consists of multiple applications. An application consists of multiple modules. A module can contain multiple actions.
Proj
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.