JController::getView/1.6

From Joomla! Documentation

Jump to: navigation, search

Joomla 1.6 JController::getView

Description

Method to get a reference to the current view and load it if necessary.

Description:JController::getView [Edit Descripton]

public function getView (
        $name= ''
        $type= ''
        $prefix= ''
        $config=array
)
Parameter Type Default Description
$name string The view name. Optional, defaults to the controller name.
$type string The view type. Optional.
$prefix string The class prefix. Optional.
$config array array() Configuration array for view. Optional.
  • Returns object Reference to the view or an error.
  • Defined on line 752 of libraries/joomla/application/component/controller.php
  • Since Joomla 1.5

See also

SeeAlso:JController::getView [Edit See Also]

User contributed notes


Personal tools