How to use native php function in cakephp

by admin on 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’);

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>