How to unset head files in v4?

Discussion in 'Templates customization' started by youjoomla, Oct 17, 2014.

  1. youjoomla

    youjoomla Member

    Joined:
    May 15, 2007
    Messages:
    60
    How do we unset css or js files in v4 ?
    Every zend framework method for removing files fires to late .

    like
    $this->printLayoutHead(false);
    $headLinkContainer = $this->headLink()->getContainer();
    unset($headLinkContainer[2]);


    or
    $headLinkContainer = $this->headLink()->getContainer();
    unset($headLinkContainer[2]);
    $this->printLayoutHead(false);

Share This Page