bilalaslam777 Posted September 17, 2009 Share Posted September 17, 2009 Hello Guys, this is urgent. I have created a class on a.php and i want to use that class on page b.php. so what i have to do now, either i have to include a.php or to import something here. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/174555-how-to-use-a-class-on-another-page/ Share on other sites More sharing options...
Garethp Posted September 17, 2009 Share Posted September 17, 2009 Your class goes into Class.php On a.php you include Class.php On b.php you inlclude Class.php Pretty simple Link to comment https://forums.phpfreaks.com/topic/174555-how-to-use-a-class-on-another-page/#findComment-919971 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.