• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

getCallingTemplatePath()

Engaged ,
Nov 04, 2006 Nov 04, 2006

Copy link to clipboard

Copied

Anyone know of another way besides examining the stack trace to get template paths between getCurrentTemplatePath() & getBaseTemplatePath()?

Odd, it seems, that getCallingTemplatePath() isn't a built-in function.

TIA,
-Aaron Neff
TOPICS
Advanced techniques

Views

297

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 05, 2006 Nov 05, 2006

Copy link to clipboard

Copied

It's not a built in function because there is no legitimate need.

A given piece of code should not know, or care, which code called it. This is part of good, modular, atomic design.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 05, 2006 Nov 05, 2006

Copy link to clipboard

Copied

LATEST
I deserved that, for my sarcasm.

Modularity in programming is good; no argument there.

To anyone who would find this function useful, for what it is worth, I have submitted it as a feature request.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation