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

hi all ,

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

or , do we need to use any other design pattern techniques additionally if we have mvc already?

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.

hi , thanks for the message. you mean CI in this? "as ti doesn’t support php5 itself".

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