Nirbhay Posted May 14, 2009 Share Posted May 14, 2009 Hi , can anybody help me in creating the class for removing "type __PHP_Incomplete_Class " error. Link to comment https://forums.phpfreaks.com/topic/158077-how-to-store-session-variable-in-a-class-in-php-to-remove-type-__php_incomplete/ Share on other sites More sharing options...
PFMaBiSmAd Posted May 14, 2009 Share Posted May 14, 2009 Your class definition must be present before the session_start() statement in order to successfully recreate the class objects. Link to comment https://forums.phpfreaks.com/topic/158077-how-to-store-session-variable-in-a-class-in-php-to-remove-type-__php_incomplete/#findComment-833856 Share on other sites More sharing options...
Nirbhay Posted May 14, 2009 Author Share Posted May 14, 2009 thanx for reply ,but I don't know how to create such class, and even if class is created how its attributes will be populated each time that class will be included in different php files... Link to comment https://forums.phpfreaks.com/topic/158077-how-to-store-session-variable-in-a-class-in-php-to-remove-type-__php_incomplete/#findComment-833857 Share on other sites More sharing options...
Nirbhay Posted May 14, 2009 Author Share Posted May 14, 2009 can any one help me its urgent.... Link to comment https://forums.phpfreaks.com/topic/158077-how-to-store-session-variable-in-a-class-in-php-to-remove-type-__php_incomplete/#findComment-833875 Share on other sites More sharing options...
PFMaBiSmAd Posted May 14, 2009 Share Posted May 14, 2009 You already have an existing thread for this same problem and the most likely reason that I gave for the problem is exactly the same as what you were told in the other thread. The solution is not to write something that fixes the problem, the solution is to find out what your code is doing wrong and fix it. The only way that anyone can help you with what your code is doing is if you post all the code responsible for the symptom. Post the file where the error is being generated and post any class definition that is involved with the problem. Link to comment https://forums.phpfreaks.com/topic/158077-how-to-store-session-variable-in-a-class-in-php-to-remove-type-__php_incomplete/#findComment-833879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.