hi Tim,

your right, this is not really a ZF problem, but ZF needs a special htaccess
RewriteRule, we all know that. So, if you use the RewriteRule of the
"Getting started.." tutorial, then you will get a problem, because the
src-path of an iframe would be parsed by your bootstrap.

I fixed this problem like i said in my first post. However, now it is not a
ZF problem anymore. That's right.


@Terre
Thank you, but that does not work, too. I think HTML iframe src-attribute
needs relative paths from docroot.





Tim Fountain wrote:
> 
> On 05/03/2009, Terre Porter <[email protected]> wrote:
>>
>>
>> Try this ...
>>
>> <iframe src="<?php getenv('DOCUMENT_ROOT') .
>> '/PATH-TO-FILE-FROM-DOCUMENT_ROOT-location/.main.php'; ?>" ...
> 
> 
> DOCUMENT_ROOT is normally the full server path to your web root, which is
> unlikely to be correct here. The original poster just needs the path to
> the
> file _from_ the web root, which I would guess is:
> 
> <iframe src="/tools/galerie/main.php">
> 
> it's generally much easier to use absolute paths (i.e. start with a /),
> than
> trying to work out the correct relative path. And this doesn't really have
> anything to do with ZF.
> 
> -- 
> Tim Fountain
> http://tfountain.co.uk/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-HTML-iframes-with-ZendFramework-tp22355424p22360173.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to