delta37 Posted February 20, 2009 Share Posted February 20, 2009 Hi, I have been programming with php for 3 years already and I'm still programming it the way beginners do it, where you have index.php and you have all the codes there, then an admin.php and you have everything there also, and so on... I just need some help on how some of the new php apps/website work where there are several folders like modules/templates/config/db/admin etc... I know what these folders are suppose to do but I get mixed up on where to start and how to start this kind of coding. I've tried downloading some example but they are too complicated already with a lot connection from here and there that I don't know where to even start looking. Maybe someone can tell me where to find a tutorial about this so I can start from scratch, or maybe someone can advice me on how these modules/templates/db combine to work? Thanks is advance! Link to comment https://forums.phpfreaks.com/topic/146064-help-on-how-templatesmodulesconfig-stuff-works/ Share on other sites More sharing options...
Q695 Posted February 20, 2009 Share Posted February 20, 2009 link admin through an if statement, because the client may also have a profile on the site. Then do a session requirement to view the page. Link to comment https://forums.phpfreaks.com/topic/146064-help-on-how-templatesmodulesconfig-stuff-works/#findComment-766808 Share on other sites More sharing options...
delta37 Posted February 20, 2009 Author Share Posted February 20, 2009 thanks for the reply man, but I need something more detailed hehe I am looking at this site http://www.php-shopping-cart-tutorial.com/introduction.htm and I've downloaded the source-code. I am looking at it right now and I have no idea where to start. it's like A->B, A->C, C->E, E->B, B->D, ... I know how the whole thing works I can code it in just maybe 5 php files? more or less... but I want to start learning how to code this way having modules/templates/db separated in folders because it will be a lot easier maintaining the site. Link to comment https://forums.phpfreaks.com/topic/146064-help-on-how-templatesmodulesconfig-stuff-works/#findComment-766877 Share on other sites More sharing options...
farkewie Posted February 20, 2009 Share Posted February 20, 2009 A lot of these things are built on a framework cakePHP, Smarty and OOP or something like that. There is a tutorial on phpfreaks for OOP and cakephp and smarty have there own. Link to comment https://forums.phpfreaks.com/topic/146064-help-on-how-templatesmodulesconfig-stuff-works/#findComment-766890 Share on other sites More sharing options...
delta37 Posted February 20, 2009 Author Share Posted February 20, 2009 dang! I totally forgot it's called OOP!!! that's why I was having a hard time looking for tutorials on this. Thanks dude! btw, you mentioned smarty having their own tutorial but it's basically still OOP right? Link to comment https://forums.phpfreaks.com/topic/146064-help-on-how-templatesmodulesconfig-stuff-works/#findComment-766899 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.