Welcome Guest, Not a member yet? Register   Sign In
ActiveRecord for CodeIgniter: Rails-style model interactions
#47

[eluser]KJSDFHASD78FASDF78SA[/eluser]
I wonder why there are so many eval(...) statements in this library? Is it to tackle bugs in some version of PHP5 or something?

For instance:
Code:
eval('return $this->' . $method . ';');
and
Code:
return $this->$method;
or even
Code:
eval('$return = new ' . $this->_class_name . '();');
and
Code:
$return = new $this->_class_name();
work the same, while eval version is somewhat slower and less readable?

Am I missing something?


Messages In This Thread
ActiveRecord for CodeIgniter: Rails-style model interactions - by El Forum - 10-25-2007, 12:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB