make your mobile app socially connected

Recently i was developing a android  app for my blogging website. i want to give facebook,twitter and google functionality so that user can like ,comment and share blog post on social platform. And i found a interesting widget called socialize. Socialize is the best way to make any mobile app social. They  track each social action using SmartURLs and SmartDownloads to provide reports and analytics that shed light on your users. Which user is most valuable to you? How many installs has each social action driven?

So please check it out

Happy Coding


Top 5 Symfony2 Bundle

In a small time Symfony2 is on the top position among the huge list of php frameworks. Fabien has tried to make the framework fast,pure OOPS oriented and flexible.Last year i started my working life and got a chance to learn symfony2. In Symfony2, every project is tight coupled in the form bundle. So the top 5 bundle that every symfony2 developer should use:

  • ¬†FOSUserBundle:-¬†this is the best bundle for those who want ¬†to manage user management in their application. A best alternate of sf guard for those people who wants to ¬†migrate their project from symfony1.4 to symfony2.
  • FOSFacebookBundle:-Integrate the Facebook Platform into your Symfony2 application.
  • SonataAdminBundle :- Admin generator
  • FOSRestBundle:-This Bundle provides various tools to rapidly develop RESTful API’s with Symfony2
  • AsseticBundle


Experience of New Distro of Symfony 2.0.7

Symfony 2 is rapidly changing at very fast speed. With a two month, Fabien have released almost 4 versions of Symfony2. You will  enjoy coding more, if  you will use this  framework.

Fabien had corrected his mistake that he  did in Symfony2.0.0. In Symfony 2.0.0, fabien had forget to include admin bundle and their has been some problem of  mapping like one to many relation . But in Symfony2.0.7, he corrected.

ohh i forget to tell you  the best part of the version released after symfony2.0.0 is that Installation, configuring symfony2 on local machine or configuring database, you felt  someone is sitting near to you and telling you  the instruction.

Another best thing about symfony2  framework is his command line interface. its damm awesome.

Thanks Fabien for giving this lovely framework.




How to make a twig extension in symfony2

Twig is a the flexible, fast, and secure PHP template engine.

I started  using twig since i found this in symfony2.

I was trying to use split function of php in twig but i was not able to split a text.
So i started to¬†implement twig¬†filter. In this tutorial I’m going to make a simple Twig extension.
First we have to write a twig extension.
Step 1: Create a Extension Folder in the Bundle
Step 2: Create a php file in Extension Folder called MyTwigExtension.php

Continue reading

How to modify error page in Symfony2

It is very important for a website to customize the error page i.e error 404 page.Today I will tell you how to modify error page in Symfony2. When there is a error in symfony2 an exception is generated. The framework shows a detail information about the error. But when we put are application in production environment, we will need a very friendly error message page or a sitemap page.

You need to create a page and a controller that will generate a response.In my application, we are creating a ExceptionController.

The Execption Controller looks like

<?php namespace Dev\DreamBundle\Controller;
use Symfony\Component\HttpKernel\Exception\FlattenException;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;

class ExceptionController extends \Symfony\Bundle\FrameworkBundle\Controller\Controller
* Converts an Exception to a Response.
* @param FlattenException $exception A FlattenException instance
* @param DebugLoggerInterface $logger A DebugLoggerInterface instance
* @param string $format The format to use for rendering (html, xml, …)
* @param Boolean $embedded Whether the rendered Response will be embedded or not
* @throws \InvalidArgumentException When the exception template does not exist
public function exceptionAction(FlattenException $exception, DebugLoggerInterface $logger = null, $format = ‘html’, $embedded = false)
$arraytopass= array(‘exception’ => $exception);
return $this->render(‘DevDreamBundle:Exception:error.html.twig’,$arraytopass);

The Resources/views/Exception/error.html.twig template would look like:

{% block body %}
<div>Thank you for reading this tutorial………
customized error page
{% endblock %}

For the final step you need to tell Symfony to use your controller to handle exceptions. Set the following in config_prod.yml:

exception_listener.controller: “DevDreamBundle:Exception:exception”

After doing all this please clear your cache(Very Important Step)
command is “app/console cache:clear”

You are good to go…….

How to Enable a Facebook Timeline Right Now……

Yesterday Facebook announced this feature. Facebook said that Timeline would be on the way for everyone sometime in the coming weeks… which is great and all, for everyone else.
But Developers can’t wait.

To Enable a facebook timeline follows these steps:-

1.Log into facebook with your username and password.
2. Open this developer app link and enable the developer mode of you already done you will directly jump to the Developer Screen

3. Create a new app and provide a app display name and app namespace and click on continue.
4.Ensure you’re in your new app’s main settings screen. You should see your app’s name near the top of the page.
5.Look for the ‚ÄúOpen Graph‚ÄĚ header on the left side, and click the ‚ÄúGet Started using open graph‚ÄĚ link.

6. This should drop you into an action type configuration page. Change a few of the default settings and click through all three pages of settings

7. Go back to your Facebook homescreen. An invite to try Timeline should be waiting at the top of the page.

And here is your Timeline