Category: programming
-
Symfony 2: Working with the Security Layer and Database Backends
The examples over on the Symfony 2 site regarding building a security system, while decent, are somewhat incomplete and a little confusing, especially in putting all the details together for a database backed login system. While most of the code present on the two articles work for the most part, I wanted to add a…
-
Symfony 2: Form Data Submit and Models with Validation Unit Testing Issue
While creating a phpunit test against a form for Symfony 2, I encountered an interesting problem that made little sense to me at first (for reference, I was following an example for unit testing form types from the Symfony 2 website). The problem was that the data being submitted appeared to not be mapped correctly,…
-
Symfony 2: Unit Testing Many-to-One Validations on Entities
From what I can tell, the Symfony 2 cookbook does not have a decent example for handling entity validations and unit testing. I looked around a bit for a good sample and found a decent answer over on Stackoverflow. But outside of setting up a base class for handling future validation test classes, the sample…
-
Blogging about Coding and Why You Should Do It
Back in high school, one of my stricter English instructors forced us to keep a daily log to get us to write on a daily basis. The idea of blogging helps the writing process as it’s easy to slowly lose confidence in one’s abilities to present ideas in a clear manner. When you combine writing…
-
Symfony 2: Adding A Selection List of Entities
The examples from the documentation on the Symfony 2 site did not explain how one could render a list of entities in the form of say a select html drop down for an object that has a one-to-many type of relationship (the sample showed a product to category relationship). Instead, what was shown was embedding…
-
Symfony 2: Day 3 Test Drive
I created a new bundle for my application and am attempting to move towards a more serious mode of programming. Rather than working with your typical “Hello Worlds”, I decided to focus on a more complex test case that’ll help motivate me in getting a better feel for more advanced features.
-
Symfony 2: Installing the Doctrine Migration Bundle on Mac OS Snow Leopard
I learned that the DoctrineMigrationBundle does not come as part of the default Symfony 2 install and that you must manually install it. The documentation for installing it on the main web site is really an oversimplification of what you’ll have to do on a Mac OS Snow Leopard situation as I discovered. In turn,…
-
Unit Testing: Why Testing for Failures First is Good
As an experienced software developer, I consider myself extremely paranoid and cynical. Well, there’s the world-at-large aspect (which might be a bane to my existence) but there’s the software aspect, where lacking trust of what you develop is a GREAT thing. No matter how complex nor simple of an application or function you can write,…
-
Symfony 2 Impressions Thus Far
Although I gave Ruby on Rails a small try a little while back, I ended up not choosing it as my framework for the moment mostly because I felt that there was a double learning curve in familiarizing myself not only with the Rails framework but Ruby as well. I still would like to give…
-
Running Symfony 2 on a Mac OS X
This article discusses how to set up Symfony 2 on Mac OS X. I’m running a MacBook Pro with OS 10.6.8. The article will aim at succinctly doing what’s necessary to get your system up to date with a version of PHP that will support Symfony 2 and resolve some of the conflicts I received…