Amitav Roy

Blog on web and travel

Ajax data using Angular JS http and use $route service inside Codeigniter framework

Posted on 6 Nov 2012 by Amitav Roy

This is my second tutorial on Angular JS. In this tutorial I will show you how to get ajax data using Angular JS http service and how to use $route service – a very powerful and sleek feature where you can define multiple pages inside a single page, load different content without refreshing the page. Similar to how in gmail we can look at different mails without refreshing the page.

Single page app Angular JS $http inside Code Igniter using Twitter Bootstrap

Posted on 27 Sept 2012 by Amitav Roy

Angular JS is picking up a lot of appreciation for its powerful features. A javascript framework which makes HTML smarter. Following a MVC patter, this framework can not only reduce a hell lot of java script code in your application, but also give an very powerful user experience. In this tutorial, I will explain, how we can use Angular JS $http to get ajax data in JSON format and then quickly use that in our application inside Codeigniter environment using Bootstrap.

Creating Drupal forms, tabs and vertical tabs using Form API

Posted on 6 Aug 2012 by Amitav Roy

Sites are easy to create using Drupal CMS. But giving nice forms which client can use and set different things on the site will really make our life a lot easy. In this tutorial, I will show how we would use the Forms API and Vertical tabs to create pages in the admin section.

A quick trip to Sinhagad

Posted on 30 Jul 2012 by Amitav Roy

A sudden plan to Sinhagad near Pune – an amazing destination for a single day trip. A place full of for and lush green mountains, it’s a must nature lovers and trekkers.

Codeigniter getting ajax data using views

Posted on 7 Jul 2012 by Amitav Roy

Getting data through Ajax is very cool, and when we can reuse the CodeIgniter views to get the Ajax data, the overall user experience becomes much more enhanced. So, in this tutorial, I would show you how I have used a CodeIgniter view and Ajax to filter data.

Creating blocks through modules using hook_block_info

Posted on 20 Jun 2012 by Amitav Roy

Time and again we come across requirements where we need to create a block through modules with custom functionality like a custom slider. So, in this tutorial, I will show you how to use hook_block_info and a few other hooks to create a custom block.

Adding a custom widget inside a node using hook_node_view

Posted on 1 May 2012 by Amitav Roy

In this tutorial, we will see how we can create our custom widget using drupal’s hook_theme and then add into Drupal’s $content available in the node tpl. The main aim is to get the widget across all the content type without adding any code to the tpl.

Trip to Hampi, Karnataka – The lost empire

Posted on 6 Apr 2012 by Amitav Roy

With a four day holiday for holi, it was a perfect time to make a small trip to someplace. The conditions: It should not be very far and it should be interesting from the photography point of view. A little bit of Google and we came up with quite a few options. But in the end, it was Hampi I and my wife decided.

Canonical links and Drupal 7

Posted on 5 Apr 2012 by Amitav Roy

Recently when I was reading about canonical links and its support with Drupal 7, and I was really happy to see that as always Drupal handles these issues perfectly (rather almost perfectly) out of the box.