Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why does JViewHTML->render() use getPath?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
garyamort  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 12:50 pm
From: garyamort <garyam...@gmail.com>
Date: Mon, 25 Jun 2012 09:50:24 -0700 (PDT)
Local: Mon, Jun 25 2012 12:50 pm
Subject: Why does JViewHTML->render() use getPath?

I'm curious why a call to getPath is even used in render?

$restorePath = set_include_path(implode(';',$this->getPaths()));
...
set_include_path($restorePath);

Replacing to $path = $this->getPath($this->getLayout());

Would replace the PHP functionality being called in getPath with the
equivalent C functionality used by include.

I understand that using include with the entire include path can be slower
then including a file directly, but if you override the path so it's only
the one your interested in, using the built in functionality instead of
calling a bunch of PHP file_exists functions should be faster.  Am I wrong
and even with a limited include path it's still faster to use file_exists?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »