/** * * Adds to the helper-class stack on a view object. * * Automatically sets up a helper-class stack for you, searching * for helper classes in this order ... * * 1. Vendor_View_Helper_ * * 2. Solar_View_Helper_ * * @return void * */ protected function _addViewHelpers() { // start with requested helper classes $stack = $this->_helper_class; // find vendors, disregarding Solar itself (since Solar_View will // add that anyway) $vendors = Solar_Class::vendors($this); array_shift($vendors); // add each vendor to the stack in turn foreach ($vendors as $vendor) { $stack[] = "{$vendor}_View_Helper"; } // set the helper classes on the view object $this->_view_object->addHelperClass($stack); }