> I have a bunch of static HTML files (and perhaps later some PHP files)
> that I'd like to include wholesale in a view. I thought perhaps the
> /app/webroot/files/ directory would be appropriate for holding them, so
> I've tried a few things like:
>
> include ("/app/webroot/files/foo.html");
> include ("/files/foo.html");
> include($html->url('/files/foo.html');
place them in the /view/elements/ dir then use $this->renderElement ('myfile');
you can also place sub directories in there as well, say
/views/elements/arbitrary_content_files/
hth
jb
>
> But all of these yield a "No such file or directory" error. However, I
> can see the file fine if I point the browser at /files/foo.html
>
> Does anyone have suggestions on how to get this to work? I can't find
> any helper function that looks like it's supposed to do this. Is there
> a better/recommended way to do it?
>
> Thanks,
> ian
>
>
> >
>
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---