Show
Ignore:
Timestamp:
02/23/2008 12:56:52 AM (9 months ago)
Author:
armen
Message:

Canged the Kohana::find_file call syntax due to r2135.
you can use Kohana::find_file for non-PHP extensions like following example:

Kohana::find_file('directory', 'filename', FALSE, 'css');

which the last arg is custom file type.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/View.php

    r2139 r2152  
    5757 
    5858                        // Load the filename and set the content type 
    59                         $this->kohana_filename = Kohana::find_file('views', $name.'.'.$type, TRUE, $type); 
     59                        $this->kohana_filename = Kohana::find_file('views', $name, TRUE, $type); 
    6060                        $this->kohana_filetype = Config::item('mimes.'.$type); 
    6161                        $this->kohana_filetype = empty($this->kohana_filetype) ? $type : $this->kohana_filetype;