Posts Tagged ‘vendor’

How to use native php function in cakephp

by on Tuesday, October 23rd, 2012

//your core php code

function __autoload($name) {
require_once($name . ‘.php’);
}

//in cakephp you can use like this

function my_autoloader($name) {
require_once($name . ‘.php’);
}
spl_autoload_register(‘my_autoloader’);