Tag Archives: tutorials
123

Android global variables

Android global variables

fangol@sxc.hu

Sometimes we need to define global variables accesible from inside our android application to hold some shared values.
Simplest way to implement this is to subclass Android.app.Application class and define static variables that will hold our data. Read more

0

Symfony2 translating validator messages

Symfony2 translating validator messages

After some digging and searching, I found the way that suit me best for translating messages from validation config file. I like to use yml format so let me show how I did it: Read more

9

Creating simple Symfony2 service

Creating simple Symfony2 service

I am not talking about web services, but I am talking about symfony2 service container and the way of basic creating services inside Symfony2 project that are accessible from all other bundles via service container.

Why do I need to make some part of code like service inside Symfony2 anyway?

There is one possible problem: Read more

7

Symfony2 translator

Symfony2 translator

Using built – in translator with Symfony2 project is pretty simple.

First make sure you enabled it in main config file: config.yml Read more

0

Symfony2 Assetic

Symfony2 Assetic

I will try in short words write about using assetic in Symfony2 project.

Why do I need assetic anyway? What is that?
That was the first question I asked myself before asked my good friend ‘Google’. Read more

1

Doctrine DBAL with Symfony2

Doctrine DBAL with Symfony2

I regularly use Doctrine ORM for database operations in my Symfony2 project, but there was one situation that I had to write database importer from SQLITE database into projects Mysql database. Importer should run only once and I didn’t want to make new entity classes for importer, but just make code to work while import is not finished. Read more

2

Symfony2 writing data-fixtures

Symfony2 writing data-fixtures

In last article about fixtures I wrote about manual setup for using data-fixtures with your Symfony2 project.
Now it’s time to write first data fixture. Read more

0

Symfony2 Doctrine2 transactions

Symfony2 Doctrine2 transactions

Like everything else, using transactions in Symfony2 is easy task.
I had a case that I had to use transactions to make sure that everything or none is saved to database, because I didn’t wand anything to break at the half way and leave data unsaved. Read more

5

Symfony2 from beta1 to beta2

Symfony2 from beta1 to beta2

Today I had to migrate existing project from Symfony2 Beta 1 version to Beta2.
First I looked at the difference between my config files and new one provided with Beta2. Read more

2

Symfony2 – validation part 1

Symfony2 – validation part 1

NOTE: Tested on Symfony2 Beta1. Might not work on later releases!

Few days ago I tried to find validation method for duplicate items in database because I have a table named ‘languages’ and need ‘language_symbol’ field to be unique.

Read more

0
123