CodeIgniter Forums
oops in codeigniter - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: Choosing CodeIgniter (
+--- Thread: oops in codeigniter (/thread-68744.html)

oops in codeigniter - dayakar - 08-18-2017

could you share oops in codeigniter?

RE: oops in codeigniter - Kaosweaver - 08-21-2017

Object Orientated programming or mistakes?

RE: oops in codeigniter - ciadvantage - 08-23-2017

Read some example class in the core CI and find them. OR why dont you build some libraries class ? it is everywhere.
Here let's do it:
class Foo{
function tellFoo(){
   return 'Im a foo';
//Ok put it in library folder
then you can call it in any controllers or models so on such as

class Hello extends CI_Controller{
function __construct(){
function greet(){
    print $this->foo->tellFoo();//use it with func tellFoo()