09 2011 档案
Symfony2 合并用户提供器问题
摘要:目前学习测试用的 Symfony2 版本为 2.0.1,在测试过程中想合并用户提供器为 providers: main: ... 阅读全文
posted @ 2011-09-30 02:42 邪安 阅读(162) 评论(0) 推荐(0)
Symfony2 The security context contains no authentication token
摘要:在学习测试中,登录页模板中使用了 twig 方法 is_granted 结果出现错误 An exception has been thrown during the rendering of a template ("The security context contains no authentication token. One possible reason may be that the... 阅读全文
posted @ 2011-09-29 00:02 邪安 阅读(389) 评论(0) 推荐(0)
Symfony2 常用命令行
摘要:清缓存 # sudo -u apache php app/console cache:clear 依据 Entity 定义生成数据表 # php app/console doctrine:schema:create [--force] 依据 Entity 定义更新数据表 # php app/console doctrine:schema:update [--force]... 阅读全文
posted @ 2011-09-28 00:00 邪安 阅读(195) 评论(0) 推荐(0)
Symfony2 ORM Column 类型
摘要:整型 SmallInt Integer BigInt 浮点 Float Decimal 时间 Date DateTime DateTimeTz Time VarDateTime 字串 String Text 布尔 Boolean 数组 Array 物件 Object 阅读全文
posted @ 2011-09-27 23:40 邪安 阅读(188) 评论(0) 推荐(0)
Netbeans 中文显示方块
摘要:使用 NetBeans 时设置字体时必须选择支持中文的字体,否则会显示为方块 阅读全文
posted @ 2011-09-25 01:56 邪安 阅读(159) 评论(0) 推荐(0)