Extracting the ActiveRecord Library from CI |
[eluser]megabyte[/eluser]
So how would we write this for PHP4 Code: Class ActiveRecordFactory {
[eluser]Nathan Pitman (Nine Four)[/eluser]
So far as I'm aware, you can't... you will need PHP5, that's what I found anyway...
[eluser]megabyte[/eluser]
well, there has to be a way to do it? My php5 isnt that strong though. I've turned a few php5 to php4 before but when I tried with this it didnt seem to work. Someone in this forum must have the skills. lol.
[eluser]Nathan Pitman (Nine Four)[/eluser]
Possibly, when we were working on the project where we used Web Services it was simpler to just install PHP5 and get on with things. I too would be interested to see this work with PHP4 though. ![]()
[eluser]Maurice Calhoun[/eluser]
[quote author="megabyte" date="1213749982"]So how would we write this for PHP4 [/quote] Convert php5 to php4 Code: <?php // PHP4 clone & exceptions emulation (must be hidden behind PHP5 parser)
[eluser]megabyte[/eluser]
Maurice, you got some skills! I so need to get me some php5 books. lol Tested and works.
[eluser]Maurice Calhoun[/eluser]
I can't take any of the credit [url ="http://latrine.dgx.cz/how-to-emulate-php5-object-model-in-php4"]David Grudl[/url]
[eluser]darkroomdave[/eluser]
I did a quick update of the Library I originally download from http://hasin.wordpress.com/2007/06/13/us...deigniter/ I updated it to use AR from 1.7.0 It works fine for me in a small project that I needed it for. But it has not been extensively tested. http://www.documentopia.com/downloads/ |
Welcome Guest, Not a member yet? Register Sign In |