In order to create a virtual subdomain in PHP, the following conditions must be fulfilled:
- enabled Apache’s Mod_rewrite module
- existing wildcard DNS record
- properly configured .htaccess file
Read more…
Creating virtual subdomain with htaccess
Getting the backend routing from frontend application in Symfony and vice versa
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.
Read more…
Five reasons why I don’t like php templating engine
Recently, I’ve been asked (yet again) by my superiors to use a templating engine on my project. The main reason for this was so that end users can edit the application templates more easily.
Therein lies the first reason:
Read more…
Creating new relations by using jQuery Autocompleter widget in 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.
Read more…
Using sfFormExtra Captcha on a Symfony based project
This post describes how to quickly implement a Captcha on a project that already uses sfFormExtra Plugin. Since sfFormExtra Plugin already has Captcha integrated, it is not necessary to install sfReCaptcha Plugin.
Read more…
Creating SSL enabled website on Apache/Linux
This post describes how to quickly enable SSL on Apache and create SSL enabled website on Apache/Linux environment. In this post I assume that apache2 is properly installed on your linux server, and you’re running a Debian or Ubuntu distribution of Linux.
A quick reminder: SSL enabled website is just another web service (more precisely, virtual host), that is running on a port different than a standard http port 80. Typically, port on which are SSL enabled websites running is 443, and address usually begins with https://… instead of usual http://… on a regular website.
Enabling logging in production enviroment for Symfony project
This post describes steps required to enable logging in Symfony project in production enviroment.
By default logging is disabled in prod enviroment, and if you want to enable it, you need to edit settings.yml and factories.yml files in your app directory. Read more…
Getting current route name from template in Symfony
When creating webpages with navigation and menus, it is often nessesary to assign css class for menu item that the visitor is currently viewing. This post shows an example how to get current route name from a template for that purpose. Read more…
Facebook
Rss feed
Twitter