ilovephp Posted September 14, 2012 Share Posted September 14, 2012 Hello PHPEXPERTS, I am php developer and have enough experience developing apps using php 4. I want to develop facebook wall app where user can register, login. upload photos, upload status, share links, like status etc. I want to create this app using php 5 classes, I am familiar with codeigniter but never created single app with php 5 classes. So i am confused about how to design class structure. Can anyone please help me create a class structure. I mean which classes should be there Which class will inherit whom ? And any others suggestion that you like to suggest ? Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/ Share on other sites More sharing options...
trq Posted September 15, 2012 Share Posted September 15, 2012 OOP is not simply the structure of classes, nor is it something that can be simply explained within a forum reply. At minimum, I would suggest reading the series of OOP tutorials on this site. Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378043 Share on other sites More sharing options...
ilovephp Posted September 15, 2012 Author Share Posted September 15, 2012 Yes you are right, But i have studied all that when i was compliting my Bachelors in computers its just i am not in touch with it since last 5-6 years so i forgot it little bit. Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378076 Share on other sites More sharing options...
ignace Posted September 15, 2012 Share Posted September 15, 2012 Which is why you should read it... Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378085 Share on other sites More sharing options...
ilovephp Posted September 15, 2012 Author Share Posted September 15, 2012 I would have read all that again but unfortunately i dont have time its urgent issue so i wanted to start and finish it as early as possible. So once framework is ready it would be easy for me to get started. Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378093 Share on other sites More sharing options...
trq Posted September 15, 2012 Share Posted September 15, 2012 So what do you want? If you want to use OOP you need to learn it. If you want a quick solution, stick to what you know already. It's not as simple as "What classes do I need?" Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378096 Share on other sites More sharing options...
ilovephp Posted September 15, 2012 Author Share Posted September 15, 2012 Right now i am using class structure already, its multilevel structure and code is grown bit and now i think its became messy so i want to restart working on it with good class structure, so i was asking for help. Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378098 Share on other sites More sharing options...
ignace Posted September 15, 2012 Share Posted September 15, 2012 "What classes do I need?" class User class SignupService class AuthService class Photo class UploadService class LikeService There you have them. I doubt they are any good to you since you have a vague idea on OOP. Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378101 Share on other sites More sharing options...
ilovephp Posted September 15, 2012 Author Share Posted September 15, 2012 I know all you guys are right i need to read all again.....but actually i dont have to read each and everything, i just need some brushing. I dont have that much time to read php classes all again so now i think i will go with codeigniter. Thanks for looking into my post, I didnt get any help regarding my problem but got much more than that You guys inspired me to find some time and read php oop again. I will definitely read books on it i have to. Thanks once again. Quote Link to comment https://forums.phpfreaks.com/topic/268383-help-regarding-class-structure-design/#findComment-1378103 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.