i CodeIgniter'daki yapıcı olarak Sınıfadı () veya __ construct () kullanmalıyım?
hem iş, ben hangi kullanmalıyım?
Classname() eski yoludur (i.e. PHP 4 way).
__construct(), yeni (i.e. PHP 5) yoludur.
Eğer uygulama PHP 5 ile yazılmış ise, ikinci birini kullanın -- and you should write your applications with PHP 5 in mind ! olmalıdır
See the Constructors and Destructors section in the manual, which states (quoting) :
For backwards compatibility, if PHP 5 cannot find a
__construct()function for a given class, it will search for the old-style constructor function, by the name of the class.