I am new to cakephp. I found a largely used method
beforeFilter()
My question is, how it's differ from a class constructor? What if i called
parent::beforeFilter();
from constructor instead of beforeFilter(); I just want to know what if i write the same code in
public function __construct() {
// Code here
}
instead of
public function beforeFilter() {
}
Thanks