--- Perrin Harkins <[EMAIL PROTECTED]> wrote:

> Personally, I would do it in the handler.  I think
> it makes a cleaner
> separation to do all of your work before you start
> running the
> template.  Opinions vary, and TT supports many
> approaches.

Thanks all for the help...I'm now doing all my work in
the handler and this is working great. I've built a
solution for our designers using TT in just a few days
that originally took multiple CF people a few months.
Talk about advocating! (esp. since there was a push to
go with PHP).

However, I've run into an issue I need to deal with. I
would consider my mod_perl knowledge not too advanced
at this stage and I've only just begun using TT, so I
apologize in advance for such newbie questions.

I've set up apache so that a url like:

www.domain.com/client/zzx/cx

will have 'client' mapped to Client.pm (<Location
/client>) and zzx and cx are pulled in via path info
as client and feature parameters respectively. The
handler then queries the database using these
client/feature parameters and then uses the
client/feature ids to get the proper template and
build the page with the info gathered from the DB.

Now I need to have a page like:

www.domain.com/client/zzx/about.html

This (about.html) doesn't really need to be a
template, but it's ok if it is (that's how I have it
set up now). But I'm having to add a lot of logic in
my handler so I don't make un-necessary calls to the
database (there's no client parameter, and I don't
need as much feature info as I did before). Is there a
better approach to this, either via TT or Apache?
Also, is there a way to use Apache (or TT) so that I
can use simple html pages in htdocs for requests
ending in .html while sending a .phtml request(or
whatever ext.) through TT?

/client/zzx/cx/index.phtml uses TT
and
/client/zzx/index.html is actually a physical page
/htdocs/client/zzx/index.html

Simply, I need the ability to call static html files
and dynamic TT pages under the same top level
directory that has been mapped to mod_perl handler as
well as different handlers/logic for dynamic pages
depending on the path info. 

TIA and sorry for the long post....





__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com


Reply via email to