API17

JRegistry::loadFile

From Joomla! Documentation

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JRegistry::loadFile[edit]

Description[edit]

Load the contents of a file into the registry.


public function loadFile (
        $file
        $format= 'JSON'
        $options=array
)
Parameter Type Default Description
$file string Path to file to load
$format string 'JSON' Format of the file [optional: defaults to JSON]
$options mixed array() Options used by the formatter
  • Returns boolean True on success
  • Defined on line 219 of libraries/joomla/registry/registry.php
  • Since Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]