From Joomla! Documentation

Revision as of 05:15, 21 February 2010 by Naifarr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

&getView( name : string=, type : string=, prefix : string=, config : array=array() ) : JView Gets a JView subclass object. If name is not specified, the controller name is used. If prefix is not specified, the prefix will be $controllerName.'View'. type is the view layout, normally HTML. This method is normally called only specifying name. $view = $SomeController->getView('Item'); This would attempt to instantiate the class SomeViewItem. Parameters [name] View name [type] View type; relates to the document type [prefix] View prefix, default is View [config] Configuration array to pass to the view Returns JView subclass object