Modifying Form Elements in Symfony 1.2

Programming,symfony 15 October 2009 | View Comments

As I found in recent development of an app, I needed to change one of Symfony’s form on the fly (more specifically, I needed to change a drop-down, sfWidgetFormSelect). After some looking, there wasn’t much documentation on this that I could find. My final solution was easy enough: <?php $form = new SomeFancyForm(); $new_choices = [...]

Forcing Login Success Page, Symfony 1.2 + sfGuard

Programming 28 September 2009 | View Comments

Working on my latest project, we needed to force a specific page to be sent to after login. After quite a bit of searching, I went to the most logical location for this information: The README. Duh. sfGuardPlugin v. 3.1.3 README Unfortunately, Symfony’s documentation is notoriously sketchy, however this is verifiably functional. Add the following [...]

Ranking Items in a Database

Programming 5 September 2009 | View Comments

At work recently, I was tasked to create a system that ranked items in a database, from least to greatest based on time. Originally I was quite blinded by the original code, which had used three nested queries, and a dozen variables of impenetrable names, a set of code I won’t be posting. Now, this [...]

Forcing SSL and HTTPS with Redirects on Symfony 1.2

Programming,symfony 1 September 2009 | View Comments

Forcing SSL on certain modules and actions used to be pretty simple with Symfony’s sfSslRequirementPlugin, however since Symfony 1.2 came out – it isn’t necessarily compatible. I took a look around the internet for options, however I was rather unsatisfied with the options. Because I need to be able to secure modules and actions, I [...]

What Are Your Basic Living Needs?

Philanthropy 30 August 2009 | View Comments

In my goal to help people who are truly in need, I’d like to explore basic living needs. I don’t mean absolute bare minimums, but necessities to live respectably. I’ve compiled a basic list here, but I would love to hear your suggestions. I’m thinking about the existing institutions in place that may or may [...]

Tagged in , , , ,