Jump to content

php oop get sibling method object


maxlibin

Recommended Posts

Hi guys, I am new to php oop, 

I am trying get an object of sibling method inside a class, seems not working.

here is how i do it.

class Upload extends Base_controller{

 private function sql () {
    $get = Upload::all();
 }
  public function get_index() {
    dd($this->sql()->get);
  }
}
Link to comment
https://forums.phpfreaks.com/topic/277437-php-oop-get-sibling-method-object/
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.