* md <[EMAIL PROTECTED]> [2002-06-12 17:05]:
> --- darren chamberlain <[EMAIL PROTECTED]> wrote:
> > If you use a translation handler, you can just return DECLINED for
> > everything you aren't specifically handling, and let mod_dir do it's
> > thing, instead of emulating it.
> 
> I still would like to check first if there is an index.phtml template
> instead of going directly to the directory index files like
> index.html. Can I add my "virtual" index.phtml to DirectoryIndex so I
> don't have to look for it in my handler? I'm not quite clear on this
> one...but it might be once I read the guide on translation handlers :)

You can add something to the effect of:

  return DECLINED
    if ($r->uri =~ /\.phtml$/ &&
        -e File::Spec->catfile($r->document_root, $r->uri));
      
in there.

(darren)

-- 
Any technology indistinguishable from magic is insufficiently advanced.

Reply via email to