如何獲取方法調用所源自的類的名稱。 如如何獲取方法調用所源自的類的名稱
Class Someclass{
AnotherClass/methodname();
}
Class AnotherClass{
function getNameOfOriginatingClass{
//how do u achieve this?
}
}
這個問題會幫助我解決這個問題 How to get the class from which a request originates in codeignitor請覈對幫我解決這個問題
:如何讓AnotherClass知道該請求是從SomeClass的到來?
我需要AnotherClass知道請求來自Someclass – nsj