public function FetchViewLocation($View = '', $ControllerName = FALSE, $ApplicationFolder = FALSE, $ThrowError = TRUE) { if (!$ControllerName) { $ControllerName = ''; } return parent::FetchViewLocation($View, $ControllerName, $ApplicationFolder, $ThrowError); }
/** * @param Gdn_Controller $Sender * @param args $Args */ public function DiscussionController_AfterBodyField_Handler($Sender, $Args) { $Sender->AddJsFile('whispers.js', 'plugins/Whispers', array('hint' => 'inline')); $Sender->AddJsFile('jquery.autogrow.js'); $Sender->AddJsFile('jquery.autocomplete.js'); $this->Form = $Sender->Form; include $Sender->FetchViewLocation('WhisperForm', '', 'plugins/Whispers'); }