<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.7.1" -->
<rss version="0.92">
<channel>
	<title>Richtermeister's Code - Massacre</title>
	<link>http://www.codemassacre.com</link>
	<description>_spaghetti - coding within a series of tubes_</description>
	<lastBuildDate>Wed, 26 Aug 2009 03:11:18 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Elegant Asset Handling - my first Symfony Plugin &#8220;teUrlToAssetPlugin&#8221;</title>
		<description>Most websites I work on these days have some sort of header image on almost every page - an optional "banner" if you will, that adds to the general feel of the current section of the site. Since most of these sites as also managed through a CMS setup (symfony, ...</description>
		<link>http://www.codemassacre.com/2009/08/25/elegant-handling-of-banner-images-my-first-symfony-plugin/</link>
			</item>
	<item>
		<title>PHP Error: Trying to clone an uncloneable object of class ReflectionClass</title>
		<description>I've recently run into this error when deploying symfony applications:

"Trying to clone an uncloneable object of class ReflectionClass".

What's causing this is a relatively common setting in php.ini, called "zend.ze1_compatibility_mode", which enables php4 compatibility mode in php5. Specifically it affects a couple of object handling conventions (empty objects cast to FALSE, ...</description>
		<link>http://www.codemassacre.com/2009/08/11/php-error-trying-to-clone-an-uncloneable-object-of-class-reflectionclass/</link>
			</item>
	<item>
		<title>Symfony 1.2 Admin with custom primary key</title>
		<description>Playing with the Symfony 1.2 Admin Generator I noticed that "out-of-the-box" it only likes to play with integer primary keys (ideally based on auto-increment columns I assume). Now, there are cases where you want to use primary keys that aren't neccessarily numeric, for example countries or languages, where you could ...</description>
		<link>http://www.codemassacre.com/2009/04/27/symfony-12-admin-with-custom-primary-key/</link>
			</item>
	<item>
		<title>Secure Certificates and missing www</title>
		<description>Thanks to forgiving server-configurations it usually doesn't matter whether you access a website via the fully qualified URL including "www" or without it - requests to http://codemassacre.com and www.codemassacre.com are taking you to the same place. After all you want to make it as easy as possible for people to ...</description>
		<link>http://www.codemassacre.com/2009/04/27/secure-certificates-and-missing-www/</link>
			</item>
	<item>
		<title>Converting MS-SQL to MySql (from .bak file or otherwise)</title>
		<description>What to expect:
Using this methodology, you'll be able to move table definitions and the data contained within those tables. However, you will NOT move Views, Stored Procedures, Triggers, etc.

Views arrive as simple tables, so be prepared to recreate them by hand. Procedures don't arrive at all, so same "manuality" applies.
These ...</description>
		<link>http://www.codemassacre.com/2009/03/17/converting-ms-sql-to-mysql-from-bak-file-or-otherwise/</link>
			</item>
	<item>
		<title>Problems Hosting Symfony 1.2 (!) sites on Godaddy?</title>
		<description>If you're trying to deploy a Symfony 1.2 site on Godaddy, you may run into some issues that are not remedied by my previous post (which was limited to Symfony 1.0).

The main error you might get looks something like:
Empty module and/or action after parsing the URL "/frontend_dev.php" (/).

To remedy this, ...</description>
		<link>http://www.codemassacre.com/2009/03/17/problems-hosting-symfony-12-sites-on-godaddy/</link>
			</item>
	<item>
		<title>IE 7 rejects my session for domains with &#8220;_&#8221;</title>
		<description>For this problem I want to bill Microsoft for an hour!
Here's the gist: watch out when you use "_" in sub-domains.

Today I copied a website to a different subdomain on our dev-server, and I thought I add a "_bak" to the domain to tell things apart. All worked well, I ...</description>
		<link>http://www.codemassacre.com/2008/12/09/ie-7-rejects-my-session-for-domains-with-_/</link>
			</item>
	<item>
		<title>static variables and caching</title>
		<description>If you're working with classes a lot, you've probably come across the "static" keyword for properties and methods, enabling you to call these members straight on the class itself, without instantiating an object.


class UserPeer
{
protected static $userlist;

public static function getUserList()
{
return self::$userlist;
}
}
What's a little less frequently encountered is a static variable inside ...</description>
		<link>http://www.codemassacre.com/2008/08/24/static-variables-and-caching/</link>
			</item>
	<item>
		<title>Problems Hosting Symfony sites on Godaddy?</title>
		<description>Please Note: There is an updated version of this post for Symfony 1.2 

For all who are having problems getting a Symfony app to play nice with GoDaddy, here's what you (most likely) need to tweak. First of all, I had to make the following entry in my settings.yml file:

path_info_key:          ...</description>
		<link>http://www.codemassacre.com/2008/07/24/problems-hosting-symfony-sites-on-godaddy/</link>
			</item>
	<item>
		<title>301 redirects - the tricky ones</title>
		<description>Here's a tip for all who inherited or upgraded an existing site, and have to retain some crucial URLs. I generally hate dealing with this stuff, because it feels like polluting a nice new shiny project with legacy code that fulfills no other purpose than make your site work with ...</description>
		<link>http://www.codemassacre.com/2008/06/14/301-redirects-the-tricky-ones/</link>
			</item>
</channel>
</rss>
