Amitav Roy

Blog on web and travel

Codeigniter jQuery and Ajax

Posted on 22 Jan 2012 by Amitav Roy

In this tutorial, I will show you how to use the jQuery and Ajax inside the Code Igniter framework. We will create a page where we will create a drop down of states coming from the database. And once a state is selected, the list of cities will come through Ajax.

Codeigniter tutorial: Quick and easy – Part 1

Posted on 16 Dec 2011 by Amitav Roy

CodeIgniter is one of the easiest of all the PHP framework available and definitely it is one of the most well documented one compared to a few other famous frameworks. It has a huge list of helper functions and a big library of useful features. In this Codeigniter tutorial, we will see some basic setup required for the framework before starting the development. So, let’s dive in and check out how this framework works.

The trip to Ganpatipule

Posted on 17 Nov 2011 by Amitav Roy

Ganpatipule reminds me of clean beach, blue sky and the best part – when you stand in the water you can see your feet (yes, that is my way of measuring how clean the beach is).

Drupal cache_get and cache_set

Posted on 10 Nov 2011 by Amitav Roy

Drupal cache is very important when you are working on a site which will have a lot of visitors daily and performance becomes a crucial part. In this tutorial, I will demonstrate how you can use the cache_set() drupal function to save something in the cache and retrieve that on user request instead of unnecessary processing if the content has not changed.

SyntaxHighlighter with Drupal 7

Posted on 22 Aug 2011 by Amitav Roy

As told in my previous micro blog post, I was looking for an easy way to format the code that I was putting on my site based on drupal. I wanted it to be quick and easy to integrate with Drupal. And yes, I wanted something which would work on the client side and not on the server side. So, no PHP code or things like that.

How to use hook_theme and hook_node_load in Drupal 7

Posted on 11 Aug 2011 by Amitav Roy

Recently I had a requirement of having social networking icons like Facebook share, Retweet, Google plus on all node pages of a site. So, I decided to have my own SNS module and use hook_theme() function to theme my variables.That is I don’t have to put any SNS codes in the node tpl and everything can be managed from one place. So, the first thing is the hook_node_load() function (Here I assume that the name of the module is “example”).

Using Drupal features: example of a custom blog module

Posted on 30 Apr 2011 by Amitav Roy

Recently I had a requirement of having social networking icons like Facebook share, Retweet, Google plus on all node pages of a site. So, I decided to have my own SNS module and use hook_theme() function to theme my variables.That is I don’t have to put any SNS codes in the node tpl and everything can be managed from one place.