SproutCMS

This is the code documentation for the SproutCMS project

function findFile()

Find a resource file in a given directory. Files will be located according
to the order of the include paths. Configuration and i18n files will be
returned in reverse order.

Usage

FALSE|string|array Kohana::findFile ( string $directory , string $filename [, boolean $required [, string $ext ]] );

Authors

Arguments

  1. string $directory
    directory to search in
  2. string $filename
    filename to look for (without extension)
  3. boolean $required = FALSE
    file required
  4. string $ext = FALSE
    file extension

Exceptions thrown

Return value

  • array
    if the type is config, i18n or l10n
  • string
    if the file is found
  • FALSE
    if the file is not found