this error occured cause there has space or some html code before session start to avoid this use
ob_start()
function top of the page and do not forget to call
ob_end()
bottom of the page.
To initialize object from class
you need a reference of class with "new" keyword like this
class object name=new class();
ex: NewCustom cusObj=new NewCustom();
now you can use any variable form class with this object.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.