Zend Framework

Where does "View" come in in your plugin

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 1.9.7
  • Component/s: Zend_Dojo
  • Labels:
    None

Description

http://framework.zend.com/manual/en/zend.dojo.build-layers.html#zend.dojo.build-layers.profiles

contains a method

public function getBuild()
    {
        if (null === $this->_build) {
            $this->_build = new Zend_Dojo_BuildLayer(array(
                'view'      => $view,
                'layerName' => 'custom.main',
            ));
        }
        return $this->_build;
    }

uh.... where does the $view variable get set?

Thanks

Activity

Hide
Satoru Yoshida added a comment -

set component and auto reassign

Show
Satoru Yoshida added a comment - set component and auto reassign
Hide
Robert Basic added a comment - - edited

The method specified in the description is in the example under the link http://framework.zend.com/manual/en/zend.dojo.build-layers.html#zend.dojo.build-layers.usage

The $view should be an instance of Zend_View. Will we add the process of obtaining it in this example?

Show
Robert Basic added a comment - - edited The method specified in the description is in the example under the link http://framework.zend.com/manual/en/zend.dojo.build-layers.html#zend.dojo.build-layers.usage The $view should be an instance of Zend_View. Will we add the process of obtaining it in this example?
Hide
Matthew Weier O'Phinney added a comment -

Example updated to pull view from ViewRenderer.

Show
Matthew Weier O'Phinney added a comment - Example updated to pull view from ViewRenderer.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: