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:
  
Not entirely sure what you mean but why not put your html files in a
folder under pages, and follow a similar approach to this:
    

I'm hoping to allow a user of mine to put a HTML file in webroot/.
When the file is requested, i want my cake app's controller to wrap it
in my layout and spit it out to the browser.  This will allow the
users to create just the content portion and let me (as the app
"admin") to control the final appearance.  Sort of a poor man's CMS.
Does that make sense?

  
Re excluding stats,
one solution is to just create a .htaccess file in that folder to turn
off mod rewrite, this should be pretty close:
    

Well, stats/ is, for lack of a better word, a "virtual" URI provided
by by provider.  The static didn't work, but this did:

RewriteCond %{REQUEST_URI} !^/stats*

But only under Apache 2.  Apache 1.3 doesn't like that, so I'll just
have to wait for all my hosts to be updated...

  


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to