Welcome Guest, Not a member yet? Register   Sign In
how to prepare factory method style in CI
#1

[eluser]tmsajin[/eluser]
hi all ,

any body used "interface" ( php 5 ) in CI for factory method techniuque?
#2

[eluser]tmsajin[/eluser]
or , do we need to use any other design pattern techniques additionally if we have mvc already?
#3

[eluser]alpar[/eluser]
Hi, i used a factory, but without an interface (i know it's recommended), but if you want to do so, just include the file that holds your interface before you make a class inherit it. It's the most beautiful solution, but if you want very beautiful OOP you probably should look in other directions than Codeigniter, as ti doesn't support php5 itself.
#4

[eluser]tmsajin[/eluser]
hi , thanks for the message. you mean CI in this? "as ti doesn’t support php5 itself".
#5

[eluser]alpar[/eluser]
yes, it runs on php5 fine but the php4 compatibility pulls it back, not allowing you to use the cool feature from php5




Theme © iAndrew 2016 - Forum software by © MyBB