Magento get Category and Sub category details

When you are customize the magento site you may be want to get current category,root category and sub category details like category ID,name,…etc.Here is a simple example.

If you want to load known category details ,for a example want to load category id=10, details.That is like this.

Published by

Sumith Harshan

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.