• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reference to active controller?

#11
[eluser]xwero[/eluser]
The best place to start is index.php there you will see inclusion of the codeigniter/codeigniter.php file and there you will find the treasure cage of files that are included. Another place is the Loader.php class.

If you are not willing to get your hands dirty you will never know what you can improve.

#12
[eluser]wiredesignz[/eluser]
[quote author="Dauntless" date="1222736888"]That kinda sucks ...

I wouldn't even know where to start looking for the location of the get_instance() function ...[/quote]

system/codeigniter/Base4.php (PHP4) or Base5.php (PHP5)

#13
[eluser]Dready[/eluser]
[quote author="Dauntless" date="1222736888"]That kinda sucks ...

I wouldn't even know where to start looking for the location of the get_instance() function ...[/quote]

Hmmm well... in your original post you said you were coding a custom library, so if you go to the corresponding userguide chapter, creating libraries, you will find all the informations you need about the get_instance() function, in a chapter "Utilizing CodeIgniter Resources within Your Library" , which is exactly what you're trying to achieve.

#14
[eluser]Dauntless[/eluser]
Thanks, I'll check that out Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.