 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Lineke Kerckhoffs-Willems' Blog: How to use the Symfony2 SonataAdminBundle
by Chris Cornutt May 23, 2012 @ 10:33:05
In this recent post to her blog Lineke Kerckhoffs-Willems talks about some recent Symfony2 development she's been doing and some of the trials she's come across when trying to implement the SonataAdminBundle to build on their pre-existing Doctrine2 entities.
I have been doing a lot of Symfony2 development lately for our project ProTalk and one of the things we needed was a backend for our database. This should be a fairly simple backend to start with, just an easy way to get data into the database. So I thought I would use the SonataAdminBundle to easy generate this backend based on the doctrine2 entities that we already have. Eventually, I got it working, but it took me some time to find out exactly how, so I thought I'd share my experiences.
Based on some information she found in this other post, she was able to configure and connect it to a "tag" entity. To make it work, however, she needed an empty controller to move forward.
voice your opinion now!
symfony2 sonata bundle sonataadminbundle tutorial install configure
Lukas Smith's Blog: Query parameter handling in Symfony2
by Chris Cornutt May 14, 2012 @ 11:56:37
Lukas Smith is looking for feedback about a question that's been in his mind a lot lately - can the handling of query parameters be made better for the Symfony2 framework (and even easier to use).
Obviously you can already access query parameters today already but it could be easier. Essentially what I want is a way for developers to easily configure what query parameters they expect and what values they expect. This is useful for several things like easier reading and validating of query parameters, self documenting API both for API docs for humans but also for machines.
He's asking for feedback and ideas from the community on a proposed solution that could make things more flexible. He also briefly mentions the route matching and how qurey parameters could cause them not to match:
For one I don't think that a mismatch on a route requirement of a query parameter cause the route to not match. However then it can quickly become confusing for the end user or it would require adding more and more syntax to handle all the different cases.
voice your opinion now!
symfony2 query parameter handling solution routing match
Wojciech Sznapka's Blog: Deploying Symfony2 applications with Ant
by Chris Cornutt April 23, 2012 @ 10:54:04
In this new post Wojciech Sznapka shows you how to can set up an Apache Ant deployment for a basic Symfony2 application - including installation of vendor packages and assets.
When you have plenty of Symfony2 applications and you need to deploy them from time to time, you are probably sick of thinking about every activity you need to do for every deploy. Often people use some build scripts, which are hard to maintain and tends to be unreadable. I wanted to automate it as much as it possible and I've choosen Ant, to help me out.
An example build.xml file is included in the post that shows how to:
- Pull the current code from git
- Install vendor packages
- Fix permissions for the log and cache directories
- Clean up the cache
- Dump/install any additional assets
voice your opinion now!
symfony2 application deployment apache ant
ServerGrove Blog: How to Create a Cache Warmer in Symfony2
by Chris Cornutt April 19, 2012 @ 09:09:56
In this new post from the ServerGrove blog Ismael Ambrosi shows how to create a "cache warmer" for a Symfony2 application - a handy tool that can pre-populate your applications cache with data you specify before it's needed by the app.
The cache is a very important part of your Symfony application as it helps your web server to perform better by not executing unnecessary code on every request, this is especially true if your server is running with limited resources. Cache warming allows you to cache specific data in your application through the use of a CacheWarmer. Symfony 2 includes a cache warmer that helps you to store parts of your application in cache, before the application becomes available to the user.
He shows how to create the "warmup" in an object extending the CacheWarmer to pull in content (in his case, just a text string) and write it out to a cache file automatically. Also included is the config updates you'll need to make to tell the Service Container about the Warmer.
voice your opinion now!
symfony2 framework cache warmer tutorial
Rafael Dohms' Blog: Deploying a Symfony2 and Composer app on PagodaBox
by Chris Cornutt April 16, 2012 @ 09:33:03
Rafael Dohms has a new post sharing the results of one of his recent struggles - getting a Symfony2 application deployed to the PagodaBox service using Composer to manage the packages. In the post he details each step of the process.
I have been working on a little pet project and wanted to put it up somewhere to show to a few people how it was going. I wanted something really simple so I decided to give the PHP PaaS solutions a try. Its a very simple Symfony 2.1 based app using Composer for vendor management, so I went on a quest to see what could be done and how.
He shares the contents of his Boxfile (a special file PagodaBox uses to configure your application) with entries for writeable directories, extensions to load and the database configuration. He found that, during deployment, everything is writeable by the "build" user, so there's no worries about installing Composer dependencies.
voice your opinion now!
pagodabox symfony2 composer package tutorial boxfile
Sebastian Göttschkes' Blog: Using vsfstream (with symfony2)
by Chris Cornutt April 05, 2012 @ 11:32:50
In this recent post Sebastian Göttschkes shows how to use the vfsStream stream wrapper in a Symfony2 application to create tests that involve the local file system.
I read about vsfstream when skipping through the phpunit docs. Back then, I decided I don't need a virtual file system. Some time later, I had to test classes which read and write files and found myself creating and deleting temporary folders, messing around with nasty errors (like my favourite one where for some reasons tests fail when I don't use @runTestsInSeparateProcesses).
He walks you through the install process, how to register it in the Symfony2 autoloader (so you don't have to include the files each time) and how to include it (via namespace-based loading) in your tests.
voice your opinion now!
vfsstream symfony2 tutorial filesystem unittest phpunit
Stefan Koopmanschap's Blog: Using git-svn with Symfony2's deps installer
by Chris Cornutt April 03, 2012 @ 10:52:52
In this latest post to his blog Stefan Koopmanschap shares a quick tip about using the git-svn tool with the dependency installer in a Symfony2-based application.
I work a lot with Symfony2's deps file for installing 3rd party bundles into my project (yeah I know, I should be using Composer, right?). This works really well when working with pure Git. However, when you're not using Git on it's own but instead use git-svn, you may run into some issues when issuing git svn dcommit,
One issue relates to a "Failed to read object" error that could come up during the push. His solution involves a few steps (manual ones) to prepare those bundle directories and make it easier to push the rest of your changes. He also includes a few links to other resources that he found around the same topic.
voice your opinion now!
symfony2 bundle dependencies gitsvn versioncontrol dvcs
|
Community Events
Don't see your event here? Let us know!
|