Jump to content

oop question


Destramic

Recommended Posts

hey guys...is there a way of getting the name of that class that the extended class was called from...ie.

 

<?php

class News_Controller etends Actions
{

}

class Actions
{
       public function model_name()
      {
             $model_name // = class name news_controller
      }
}

?>[code]

[/code]

Link to comment
https://forums.phpfreaks.com/topic/244454-oop-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.