Zend Framework

Pass Bootstrap to Resources constructor

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.0
  • Fix Version/s: 1.8.1
  • Component/s: Zend_Application
  • Labels:
    None

Description

If a Resource set* function is called through it's constructor and the Resource depends on another Resource (e.g. View) there is no way to get it. setBootstrap is called after construction of the resource so there is no way to get other resources before.

public function setDoctype {
$this->getBootstrap()>getResource('view')>doctype('XHTML1_STRICT'); //don't work because getBootstrap returns null.
}

Activity

Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk and 1.8 release branch.

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk and 1.8 release branch.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: