1、安装和配置

参考 http://symfony.cn/docs/book/installation.html

使用安装工具:

windows系统

Open your command console and execute the following command:

c:\> php -r "readfile('http://symfony.com/installer');" > symfony.phar

Then, move the downloaded symfony.phar file to your projects directory and execute it as follows:

c:\> move symfony.phar c:\projects
c:\projects\> php symfony.phar

创建symfony应用:

Once the Symfony Installer is ready, create your first Symfony application with the new command:

# Linux, Mac OS X
$ symfony new my_project_name # Windows
c:\> cd projects/
c:\projects\> php symfony.phar new my_project_name

运行symfony应用:

Symfony leverages the internal web server provided by PHP to run applications while developing them. Therefore, running a Symfony application is a matter of browsing the project directory and executing this command:

$ cd my_project_name/
$ php app/console server:run

2、目录

/app:存在缓存、配置文件、日志及核心配置参数;

/bin:存放用到的执行文件;

/src:自己编写的源代码;视图文件放在view文件夹下

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPEAAAGPCAIAAAAC9qFbAAAdFUlEQVR4nO2d23MU153H+9/ww76l2AeK2BGpVGkeXPtkP245lyqwN7VPdG1s7ybWOnbWRhhwwOMYo8YOGGQIthIBpYC1NtE4iYO1GINwuSxDHMqOhI0AYQndECDD6NI5+9BzOdee7pm+zW++nzrlmuk5fXqQP+o5PTrf/lkMAFpYab8BACImBaft+9uSPyhoHWJ0+tRL36s0xtjWB+9RW3xHBy1LXE4fe/xb/NOrn/5p64P3LN358+SZX+/48QPeAzgN4qBOpwcHB/P5vOnVU9u+V5zcW5zcO/+FM3kuP/Z/v7hx6czWB++ZPPPrv/5+s31/m/cAToM4qMfpEydOrF69etWqVaYOf9nWVpw/y7f/+dd/2frgPTt+/IB9f5vXdvz4ga0P3qOdW486OauEXShvsAsF27KsnDPKGGMFu9yjtAGAMqGd9oRet26dn9PPtRUn/5dvK3cuVeYe9v1tfnMPT2Blk1XdWLChMjATzumK0OvXr/dx+g/PtRXH3qi0Yx33+jRlb+8czEsral6wYTTwIYTTvND+Th/rWF38wvHasY57i2N7tW3yXF7ntId3bvbkhdMgBCGczufzqzi2b99u6tn7+LeK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PYMj826H425wfOIH425mnaya03bhofa2p84WX5qbXDG3I/GBh6yrIcOlro5D3sb3WOb2te0tVsPD1Qer9k04u34RKnzyBNt1R3HZuE0CEZnz/ClWffsmBswj3h2zDW0kSfaLOvhgdLTk11rrA1d1cclHjroch3KT092rbHanzhZeqnr4XLvymhj7iU4DQLS2TP81Yx7+pIbJI94+pKbVvtqBk6DYHT2DH857X74pfvhl65/HtHrk1b7chpOg2B09gxfnHY/+DLr7SKcBgHJ9/31wrWloUvuBxez24YuuReuLeX7/pr2Tysd4HQ4jp+98vsz459ProxOuZltn0+u/P7M+NtDV9L+aaUDnA7H4rL71unLzx8+n3pAy6c9f/j8W6cvLy67af+00gFOA2rAaUANOA2oAacBNeB0toi0sGKLAqfTod7CitX7S7f4TaZ9gNORkUhhRfGGqAUbXqvA6chIpLCicpNf3PVXAU5HRoKFFU1b1OKIBdvKOYXShMUuVLtwxYyqe9E46cPpyEissKLBab7qFr+x7K+nrlzKSyypyBc5alrgdGSkUVjR25JzRsWzbfVMzIuueyyXn6MwlYHTkZFGYUVOSn1xxDqcbvoSi3A6MhIrrCh+78FryteZq0wtfJ1W5x5NrzScjo7ECitK0wvti9xVo7/TDNeIwEgihRVBbeB0CjRQWBHUBk4DasBpQA04DagBpwE14DSgBpwG1IDTgBpwGlADTmeLJsgjZn5NCJxOh3rziIxfnpHO4gw43TokkkfkF9+NOrk0rIbTrUMSecQsLG+G061DInlEU7hKTSIqG/ml19XH3iMu4lVrKM0a14wBpyMjkTxixS5ebGMS0RjLEp0WsgSGofgecLpVSCSPWKK0+r8ak1WSiOoMwe88Xe4TZCjMPVqHRPKIPOXTp1ayup2uORScbh2SyCMKX3UImUJdErGa4HJK8+mSjKNOTr0rApP30g416uQw92gZEskjCoHEqouaJCK/sbStsiFn2/rztGko/rrRwXm6ZUAeMSPA6RRAHjFW4DSgBpwG1IDTgBpwGlADTgNqwGlADTgNqAGnATXgdLaILY9YsEnchzcIcDod6ssjSokAblWS5qmyK5wGIUkijyis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C6pcmi08f7nYW7K7t6h7Z1Dz69s/Do1mMLd1e++jA/+n7nJ4WNhbdfqTWA1mn81bBVyKLT/UdfvXVn2dT6j9a8wzmcbmmy6HRf3575heVdvUMvvXFq2773O1/981MvD/zshbd/suXo/MJyX1/NO5wLGUHLLgirR/lyZPJSTzUjGGSLoagDVpKmRBadPnR43+ztJVM7dHhfrQG0GUExpmKr9zoQ6/cYtyg5Qv/CnCBxsuh0T+/+6ZtL2vP09M2lnt79tQYIUoBMOZWqExbtFk2O0NsqpbUQMkyNLDp9oOfg9fklUzvQc7DWALWc5uNU2kp86jCmLVW83xH+ZXULSIIsOr3vYM/E3KL2PD0xt7jvYI9+N+FWBL5OywXc1Ixgpaihz5ZqkT9HSt6qW0CCZNHp3Qd6x2cXTW33gV79bjWcLk82cs4oN+/gkoVqUUP/Lbrbz/A3C8ElYkpk0Wmn+8iV6eKu3qEXD5zctPu9n+8YePz5t65MF73mdB9J+w2CTJNFp3fs7RubKprajr19ab9BkGmy6PQLu4/5t7TfIMg0WXQagEaA04AacBpQA04Davw/bLdHzMhhgYsAAAAASUVORK5CYII=" alt="" />

/vendor:存放第三方代码;

/web/app.php or /web/app_dev.php:单一入口文件

检查配置:

命令行 d:\symfony2.3\app>php check.php

或 浏览器输入http://localhost:8000/config.php

3、编写一个hello world页面

>php app/console generate:bundle   创建一个新的bundle

Controller/DefaultController.php

<?php

namespace Test\WebBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; class DefaultController extends Controller
{
/**
* @Route("/hi/{name}")
* @Template()
*/
//以上注释并不是没有用,是利用注释动态影响程序代码.@Template()使用默认视图文件
public function indexAction($name)
{
     //$name的值为路由{}中name的值
return array('name' => $name);//返回name的值给视图文件
}
}

Default/index.html.twig

Hello {{ name }}!

浏览器中输入http://localhost:8000/app_dev.php/hi/world,页面中可以打印出Hello world!

symfony2 安装并创建第一个页面的更多相关文章

  1. Angular安装及创建第一个项目

    Angular简介 AngularJS 诞生于2009年,由Misko Hevery 等人创建,后为Google所收购.是一款优秀的前端JS框架,已经被用于Google的多款产品当中.AngularJ ...

  2. Ionic学习记录(一):ionic及cordova安装、创建第一个应用、项目结构

    目录: 一.ionic的安装 二.创建第一个应用程序 三.浏览器中预览应用 四.项目结构 五.添加页面 一.ionic的安装 使用Ionic创建和开发应用程序主要通过Ionic命令行实用程序(“CLI ...

  3. 《Symfony 5全面开发》教程03、使用Controller创建第一个页面

    我们使用Phpstorm打开我们的项目目录,展开项目目录文件夹. Symfony项目其实也是composer项目,如果你新拿到一个Symfony项目, 你可以在控制台中使用composer insta ...

  4. Django 安装、创建第一个项目

    一.版本 Django 版本对应的 Python 版本:   Django 版本 Python 版本 1.8 2.7, 3.2 , 3.3, 3.4, 3.5 1.9, 1.10 2.7, 3.4, ...

  5. [Umbraco] 创建第一个页面

    如何创建一个页面,很简单. 进入settings,首先右键点击“Document Types”, 在出现的菜单点击"Create",在弹出的窗口中 Master Document ...

  6. Flask学习 1创建第一个页面

    #!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: cxa @file: hello. ...

  7. ASP.NET MVC 5 03 - 安装MVC5并创建第一个应用程序

    不知不觉 又逢年底, 穷的钞票 所剩无几. 朋友圈里 各种装逼, 抹抹眼泪 MVC 继续走起.. 本系列纯属学习笔记,如果哪里有错误或遗漏的地方,希望大家高调指出,当然,我肯定不会低调改正的.(开个小 ...

  8. python爬虫 scrapy1-安装及创建第一个项目

    sklearn实战-乳腺癌细胞数据挖掘(博主亲自录制视频) https://study.163.com/course/introduction.htm?courseId=1005269003& ...

  9. 浅入深出Vue:第一个页面

    今天正式开始入门篇,也就是实战了~ 首先我们是要做一个博客网站,UI 框架采用江湖传闻中的 ElementUI,今天我们就来利用它确定我们博客网站的基本布局吧. 准备工作 新建一个vue项目(可以参考 ...

随机推荐

  1. Android接收短信

    Android收到短信时会广播android.provider.Telephony.SMS_RECEIVED消息,因此只要定义一个Receiver,收听该消息,就能接收短信. <receiver ...

  2. Oracle数据库,用户的创建及表的创建

    安装完成之后,打开浏览器,输入https://127.0.0.1:1158/em 链接至登录数据库界面 用户名:sys     口令为安装时设置的密码(一定牢记) 链接身份为:SYSDBA(以系统管理 ...

  3. 算法:欧几里得求最大公约数(python版)

    #欧几里得求最大公约数 #!/usr/bin/env python #coding -*- utf:8 -*- #iteration def gcd(a,b): if b==0: return a e ...

  4. java之StringBuffer类详解

    StringBuffer 线程安全的可变字符序列. StringBuffer源码分析(JDK1.6): public final class StringBuffer extends Abstract ...

  5. 2016 大连网赛---Different GCD Subarray Query(GCD离散+树状数组)

    题目链接 http://acm.split.hdu.edu.cn/showproblem.php?pid=5869 Problem Description This is a simple probl ...

  6. Scalaz(6)- typeclass:Functor-just map

    Functor是范畴学(Category theory)里的概念.不过无须担心,我们在scala FP编程里并不需要先掌握范畴学知识的.在scalaz里,Functor就是一个普通的typeclass ...

  7. ThinkCMF-smeta扩展字段

    ThinkCMF - 添加文章功能 没有上传文件功能,为了扩展这一功能,在页面加入如下代码: <tr> <td> <div style="text-align: ...

  8. mysql 5.6启用强密码

    mysql的密码策略通过插件的方式进行检查,插件的名称是validate_password,可通过如下方式安装: mysql> INSTALL PLUGIN validate_password ...

  9. 02Mybatis_原生态jdbc编程中的问题总结——从而引生出为什么要用Mybatis

    我们先用jdbc去编写一个例子: 第一步:建表 /* SQLyog v10.2 MySQL - 5.1.72-community : Database - mybatis ************** ...

  10. 通过 imagick 让 PHP 生成 PSD 文件缩略图

    第一步.安装ImageMagick 首先需要安装 ImageMagick ,因为 imagick 是一个可以供 PHP 调用 ImageMagick 功能的PHP扩展.(目前最新版本是:ImageMa ...