Posts under PHP

Symfony: How to escape hash # character in yaml

advertisement

Just a quick note for myself to escape # character in yaml – Symfony. When i’m trying to load batch data, some of the record seems not imported successfully especially with hash # character. By default, all the string behind the hash # character is treated as comment.

Here’s the example to escape hash # character:-

Continue reading Symfony: How to escape hash # character in yaml »

How to install apache, php, mysql with macport in Mac OS X

advertisement

The easiest way to install apache, php and mysql in Mac is thru mac port. You can also install apache, php and mysql by compiling each of the service but it’s too time consuming. If you just wan to install apache, php and mysql for development use, Mac Port install is good enough.

Follow the steps below to install apache, php and mysql in Mac OS X:-

Continue reading How to install apache, php, mysql with macport in Mac OS X »

Symfony: How to query using Criteria OR

advertisement

I’m looking for way to do a simple query using criteria OR in symfony framework. The official documentation does not covers the sql query criteria for OR statement. After googling for while, there is some reference from the Propel Guide

To perform a simple SQL query with OR criteria is a bit complicated in symfony or i can say in Propel. Here’s the example of how to perform the SQL query for:

Continue reading Symfony: How to query using Criteria OR »