Your Account
Community
Topics (Upcoming)
More |
Welcome to SymfonyLab Digg-like serviceYou can vote here for popular Symfony-related articles. We aggregate posts from all official Symfony bloggers and allow submitting of own articles
Setting up subdomain virtual hosts for multiple applications in a symfony project
It is very common to have multiple applications in one symfony project, like frontend, backend, api, etc. The common way to access the application is by specifying the application front controller, like
http://example.com/frontend.php
http://example.com/backend.php
http://example.com/api.php
Most of the time, it is nicer and better to use subdomains, like:
http://www...
Join discussion...
Tags: none
Security is not easy
http://feedproxy.google.com/~r/symfony/planet/~3/ie5B3JdowUQ...
Submitted by narko
1 day, 22 hours ago
Security is not easy. Programmers should leave things like random number and identifier generation to a library (or at least research the best way to do it). A lot of projects learned it the hard way.
Let's talk for instance of a function I encountered about six months ago:
function generateRandomKey($len = 20)
{
$string = '';
$pool = 'a...
Join discussion...
Tags: none
Modules d’admin multilingues dans Symfony
http://feedproxy.google.com/~r/symfony/planet/~3/UI7hV55H-XY...
Submitted by narko
3 days, 23 hours ago
L'internationalisation d'une application (i18n) consiste à servir les pages dans la langue de l'utilisateur. Par défaut, les modules d'admin de Symfony gèrent l'i18n. Ainsi, il est simple de traduire ces modules. Dans cet article je vais vous expliquer :
comment gérer plusieurs langues pour l'interface de vos modules d'administration en indiquant...
Join discussion...
Tags: none
symfony live 2010
http://feedproxy.google.com/~r/symfony/planet/~3/XXu7INL0e1g...
Submitted by narko
4 days, 23 hours ago
Je sors ce blog de sa torpeur pour vous rappeler l'évènement symfony de cette année : le symfony live.
Pour la deuxième année consécutive, Sensio Labs, créateur du framework, organise l'évènement. Il se tiendra les 16 et 17 février 2010 à la Cité universitaire de Paris.
Le conclusion de la conférence sera l'occasion pour...
Join discussion...
Tags: none
Formatear fechas en Symfony con DateHelper
http://feedproxy.google.com/~r/symfony/planet/~3/SSJ6zE-H6bI...
Submitted by narko
4 days, 23 hours ago
Algo muy útil para nuestras aplicaciones que manejan datos con fechas y horas, es conocer el helper DateHelper para que nos ayude en la tarea de mostrar una fecha de una forma entendible al usuario.
Lo veremos con un ejemplo. Se tiene la fecha “2010/01/01 23:45:00″ almacenada en algún lugar, pero nos gustaría que al usuario se le mostrara “Viernes 1 de enero de 2010 23:45″...
Join discussion...
Tags: none
Enhance your date input fields in symfony forms
http://feedproxy.google.com/~r/symfony/planet/~3/uSFF4zbvo1Q...
Submitted by narko
4 days, 23 hours ago
Symfony’s forms are very powerful and big time-savers. Also, thanks for the integration with an ORM like Doctrine or Propel, managing dates is quite easy. But by default, symfony displays date fields as regular select lists where you pick the date (month, day, year, hour, minute)
It is actually quite easy to enhance this functionality and display a friendlier way to pick a date...
Join discussion...
Tags: none
Diem 5.0 BETA5 released
http://feedproxy.google.com/~r/symfony/planet/~3/OCFtnWaEFqg...
Submitted by narko
4 days, 23 hours ago
Today we are very proud to bring you the latest Beta before we are moving to the first Release Candidate.
Thanks to the growing community, many bugs were found and fixed. The core team also implemented most of Diem 5.0's missing features.
Menus
The dmMenu class now allows you to create dynamic recursive menus very easily, thanks to dmMenu->addRecursiveChildren($depth) method...
Join discussion...
Tags: none
symfony might not play HipHop ...
http://feedproxy.google.com/~r/symfony/planet/~3/WxqDJG3HnvI...
Submitted by narko
5 days, 23 hours ago
This is a small note about the new buzz word in the PHP world : 'HipHop'. After reading the original facebook post about 'HipHop' and the 'devil' eval() function, I start thinking about possible is...
Join discussion...
Tags: none
Symfony form : pick or create
Here’s an other tutorial about the Symfony form framework. Last time, we managed to make embedded i18n forms optionals. In today’s howto, we will talk about embedded forms again.
In the last tutorials, we created a form to edit news. Today we will create another form to write interviews. An interview is just an article about a celebrity....
Join discussion...
Tags: none
python3 判断 变量类型
http://feedproxy.google.com/~r/symfony/planet/~3/Uk0jlTGNAm8...
Submitted by narko
1 week, 12 hours ago
初学PYTHON3
想知道 如何 判断 一个变量 是否为 字串
试了了下 没有 isstring的函数
type(a) == ’str’也不好用
查了一下手册发现
isinstance是好用的
用法如下
def isString(a)
return isinstance(a,str)
Random Posts
多语言翻译
关于数据查询的使用
精选vim的配色
版本控制工
Join discussion...
Tags: none
|