Getting the backend routing from frontend application in Symfony and vice versa

Posted on Categories:PHP, MySQL, Symfony

When using Symfony frontend application it is sometimes necessary to access other application’s routing to create an internal url that points to that application.
In order for that to be posssible, a method for getting the desired application’s routing is required.

Creating new relations by using jQuery Autocompleter widget in Symfony

Posted on Categories:PHP, MySQL, Symfony

This post describes how to create new relation by usin jQuery Autocompleter widget in Symfony project.
Recently, I’ve had a situation where I had to create a form for entering a product details, with a dropdown or autocomplete input for selecting product’s brand. If a user entered a non-existing brand, it had to be automatically created and assigned to product that the user was editing.

Creating Autocomplete input field for Symfony based web form

Posted on Category:Symfony

This post describes steps required to create jQuery/AJAX input text field with autocomplete feature using Symfony php framework. It is assumed that you know how to create a web form, and install Symfony plugins, so that part won’t be explained here.
A Symfony plugin sfFormExtraPlugin is required, and, of course, jQuery (I’m using sfJqueryReloadedPlugin).

Troubleshooting /sf directory with mod-rewrite on Symfony projects

Posted on Category:Symfony

This post shows example for setting up /sf directory required for default css and javascript files on Symfony projects. Symfony documentation describes how to create Alias for /sf directory, and on most configurations it works perfectly. Directory and all assets are visible, and usable by your web application.