#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    15
    Rep Power
    0

    magento use of getBlock("head")->setCanLoadExtJs(true)


    Hi everyone,

    I am new to magento and came across this code in a controller $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);

    Although it's name suggest its used to enable adding of js but I have also seen code in design layout xml file without using the above.

    Can anyone tell me why we use this.

    Thanks

    Ryan
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2003
    Posts
    3,854
    Rep Power
    597
    It seems to me that the Magneto forum would be a better place to ask this.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo