Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    30
    Plugin Contributions
    0

    Default How to find the calling function?

    Consider following -

    function A calls function B
    function C also calls function B

    From function B how to find which function called it - A or C?

    Thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to find the calling function?

    You could add a paramater to function B and pass one thing from A and one thing from C then know who is who in the zoo ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to find the calling function?

    I found this -

    var_dump(debug_backtrace());

    It gives the entire call stack!

    Thanks

 

 

Similar Threads

  1. How to use the widht / height with the zen_image function
    By mesnitu in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Dec 2015, 12:43 PM
  2. Calling function from meta_tags.php
    By vatertime in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Sep 2010, 06:24 PM
  3. Calling extra function(s) after each order?
    By yellow1912 in forum Contribution-Writing Guidelines
    Replies: 2
    Last Post: 14 Aug 2007, 12:45 AM
  4. Newbie question on templating (couldn't find this with the search function)
    By d24e in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Jul 2007, 01:03 AM
  5. Adding custom function, calling custom code from pages.
    By madteckhead in forum General Questions
    Replies: 6
    Last Post: 14 Jun 2007, 08:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR