Logo
  • Home
  • Blog
  • Privacy Policy
  • About
  • Contact
  • Home
  • Blog
  • Privacy Policy
  • About
  • Contact

Tag Archives: custom

Home/Posts Tagged: custom

iOS: Load custom UITableViewCell with Nib

Mar 2, 2014Dipin KrishnaCoding, iOScustom, ios, Load, Nib, UITableViewCell

Using the interface builder i created a custom ‘UITableViewCell’ named ‘MyCustomCellNib’, with a
custom class file ‘MyCustomCell’ inherited from ‘UITableViewCell’.

This is code i used to load the cell with the nib.

magento-webshop

Magento: Check if an admin is logged in or not

Jan 17, 2011Dipin Krishna6 CommentsMagento, PHPadmin, check, custom, login, magento, module, php

If you are writing a custom module, and you want it to be accessed only by admins, then you possibly need the following code in your controller. //get the admin session Mage::getSingleton(’core/session’, array(’name’=>’adminhtml’)); //verify if the user is logged in to the backend if(Mage::getSingleton(’admin/session’)->isLoggedIn()){ echo "Admin Logged in"; } else { echo "You need to

Read More

Search

Developed by Think Up Themes Ltd. Powered by Wordpress.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok