Posted by Eric Bartels
Today I was improving a printing-view of an application-page inside a project I’m working on. The “printing-mechanism” simply loads the page with a different symfony layout and includes custom css- and javascript-files which hide certain elements from the printing view. Unfortunately the page also contains textarea-elements which get scrollbars when the content is larger. This is [...]
Posted by Eric Bartels
One of my current projects is a multi-client environment. Each client has its own smtp-settings for the mailings that are done within that application. From static … Symfony allows the configuration of the mailer in its factories.yml. There smtp-settings can be definied. But in this case this is impossible as every client has different smtp-settings [...]
Posted by Eric Bartels
I attended the great symfony day 09 in cologne yesterday. It was an awesome conference with nice people, interesting talks and discussions. Propel is dead One thing got crystal clear during the talks. Propel is dead! In the next version 1.3 of symfony Doctrine will be the default orm. If thats not a hint … [...]
Posted by Eric Bartels
Default values rule! I’m using Propel 1.2 (an upgrade will be done soon) but for other people out there … Consider the following declaration-fragment for the “Foo-entity”. Nothing special here. <column name="name" type="VARCHAR" size="32" required="true" /> <column name="culture" type="CHAR" size="5" required="true" default="de_DE" /> Now if we create the new object and show the state (var_dump) [...]
Posted by Eric Bartels
I’m using the sfAssetLibraryPlugin in one of my active projects. This project uses gettext for interface translation. The plugin ships with XLIFF-files for interface translation. In order to get gettext working simply create the required directories inside the plugin-directory (plugins/sfAssetLibraryPlugin/modules/sfAsset/i18n) and create a new catalog for each language (de, en, fr, …). The important thing [...]