CodeIgniter Forums
Interfaces? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Interfaces? (/showthread.php?tid=13913)



Interfaces? - El Forum - 12-11-2008

[eluser]dcunited08[/eluser]
How do you handle interfaces in your application that may be used by several different classes? Currently I am keeping them in a file that calls them and using include_once to call that file. It works but is not really helpful because it does not use CI's load class. Any ideas?


Interfaces? - El Forum - 12-12-2008

[eluser]dcunited08[/eluser]
Does anyone use interfaces with CI?


Interfaces? - El Forum - 12-12-2008

[eluser]xwero[/eluser]
If you are sure all your servers have php5 you can work with interfaces but as CI is a php 5 and 4 framework interfaces can't be used for the framework itself.


Interfaces? - El Forum - 12-12-2008

[eluser]dcunited08[/eluser]
[quote author="xwero" date="1229115122"]If you are sure all your servers have php5 you can work with interfaces but as CI is a php 5 and 4 framework interfaces can't be used for the framework itself.[/quote]

That is true, all of my servers run 5.2.