Welcome Guest, Not a member yet? Register   Sign In
Extending libs private vs protected
#1

[eluser]Treeda[/eluser]
Hi there,

i just updated my email class to the new codeigniter 2.0.2 (was using 1.7 before) and run into some php5 problems.

It seems that a couple functions in the CI_Email class are set as private. The problem with that is you cannot overwrite them.

just for example, try to overwrite _build_message. it is not using the one in the MY_Email class... if i change them to protected anything is fine.

Is there a way to solve this without modifying the lib itself changing all privates to protected?

Treeda
#2

[eluser]Treeda[/eluser]
hm no one encountered this kind of problems?

Did i something wrong?




Theme © iAndrew 2016 - Forum software by © MyBB