Can I write models/libraries/plug-ins/helpers in PHP 5 OOP fashion? - 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: Can I write models/libraries/plug-ins/helpers in PHP 5 OOP fashion? (/showthread.php?tid=17470) |
Can I write models/libraries/plug-ins/helpers in PHP 5 OOP fashion? - El Forum - 04-06-2009 [eluser]SomeFunkyDude[/eluser] Hello, I'm just curious, I see all the source code is in PHP 4, but can I use PHP 5's OOP's features? Can I write models/libraries/plug-ins/helpers in PHP 5 OOP fashion? - El Forum - 04-06-2009 [eluser]TheFuzzy0ne[/eluser] Of course, so long as you're running PHP5 on your server. The source code is written to be compatible with PHP 4 for obvious reasons. You are not obliged to code your application the same way. Can I write models/libraries/plug-ins/helpers in PHP 5 OOP fashion? - El Forum - 04-06-2009 [eluser]rvent[/eluser] I dont think you can use all of the PHP5 OOP features like interfaces... I might be wrong.. Can I write models/libraries/plug-ins/helpers in PHP 5 OOP fashion? - El Forum - 04-06-2009 [eluser]TheFuzzy0ne[/eluser] I think I might have got the wrong end of the stick. Can you give an example of what you mean? |