Posts Tagged ‘PHP’

Tip: Use PHP_SELF and mod_rewrite without using .htaccess

Want to use your favorite PHP framework without it’s .htaccess file by moving those settings into your httpd.conf but it’s not quite working out? This is probably because some of those settings in the .htaccess file are rewrites and the PHP framework you are using uses a front controller that relies on the PHP_SELF server [...]

Tip: Turn PHP output_buffering off when using Elgg

I created a comment plugin for Elgg 1.2 with AJAX effects, but it wouldn’t load the return value from the form submission properly—it would load the entire dashboard page. For some reason Elgg was outputting the location http header causing a redirect. The solution? Set PHP’s output_buffering setting to ‘off’.

Customizing a Symfony layout with property settings via slots

Ever wanted to have a layout in Symfony that allowed a template to pass it information about what to display in a more structured manner than slots allow? Well, here’s how to do it. You still need to use slots to avoid the caching issues described in http://trac.symfony-project.org/wiki/Symfony11LayoutUpgrade, but it is pretty easy to do [...]

Subscribe to RSS Feed Follow me on Twitter!