|
I think you don't need to mess with .htaccess I'm also integrating html files on the fly in my little engine and the method is just big like that : function view($id = "")
{
$filecontent = "";
if ($id != ""){
$uploaddir = APP . WEBROOT_DIR . DS . 'files' . DS . 'categories'. DS . $id;
$path = $uploaddir . DS . "index.htm";
if (file_exists($path)) $filecontent = file_get_contents($path);
}
$this->set('data', $filecontent);
}
Jason Lee wrote: On 7/28/06, AD7six <[EMAIL PROTECTED]> wrote: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~--- |
- Running HTML files through index.php Jason Lee
- Re: Running HTML files through index.php AD7six
- Re: Running HTML files through index.php Jason Lee
- Re: Running HTML files through index.... Olivier Percebois-Garve
- Re: Running HTML files through in... nate
- Re: Running HTML files throu... Jason Lee
- Re: Running HTML files t... AD7six
- Re: Running HTML files t... Micah Goulart
