Dayo Posted March 21, 2011 Share Posted March 21, 2011 Since i saw some one make there own framework to try and learn PHPO i decided to make a small and simple framework for users who want to learn php but wouldent know where to start, plus rather then just throwing code at them i have added comments to near enough everything explaining what it is doing ;) So far i have just coded the template, login, config file, global file plus i just started the register but that should be finished tonight/tomorow as all i have to do is add the comments i will shortly be adding up a demo for people to see but a more advanced version of the demo can be found here. As i said this is only the simple building blocks of a website your not going to be able to sell if for $1,000,000 any time soon but is a great aid to learning :D [align=center]Download Link[/align] Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 22, 2011 Author Share Posted March 22, 2011 Version 1.0.0 Released! Features Login Register Logged in page Logout Basic file structure Well commented (great for learning) Simple installer Unlimited uses ... can be a game, portfolio, client area ... anything ;) To install Download and extract files Upload Files Run install/index.php And your done! Demo If you find any errors please post here so i can release a patch Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 22, 2011 Share Posted March 22, 2011 Well I would say use upto-date technologies, but other than that sounds/looks good. Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 22, 2011 Author Share Posted March 22, 2011 what do you mean by that? the code or something else? Quote Link to comment Share on other sites More sharing options...
Djkanna Posted March 23, 2011 Share Posted March 23, 2011 The code; mysql_* is somewhat outdated now. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted March 23, 2011 Share Posted March 23, 2011 Register: when you miss something it shows the issue and you have to use the back link or button to fix it. Why not show the error on the same page WITHOUT losing any of the value? Code: Way too much left tabs specially in login.php blocks like (found in index.php) if (isset($_SESSION['login_id'])) { header("Location:loggedin.php"); exit;} would be much better written like: if (isset($_SESSION['login_id'])) { header("Location:loggedin.php"); exit; } News should be taken from the DB or from an external file... not directly in the index in my opinion Style: why some times you mix the HTML with the <?php tags and why some others you have one big <php block with huge echo (on multiple lines) for a single variable there? Also you really do have some issues with the tabs in your script. You should clean that up. Finally I would not use uppercase variables myself but this is a question of taste. Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 23, 2011 Author Share Posted March 23, 2011 Yea I'll add that when I get home :) Shhh just saw your edit 1) I agree my tabing could be alot better I'll try and sort that out 2) the news was just a llace holder/example text 3) as for the <?php within HTML I only did that while coding the style on DW and forgot to wrap the HTML in the echo I'll fix this when I get back too Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 23, 2011 Author Share Posted March 23, 2011 There you go any better? sorry if my tabing is still bad ... ^^ Quote Link to comment Share on other sites More sharing options...
Dominion Posted March 23, 2011 Share Posted March 23, 2011 The code; mysql_* is somewhat outdated now. Well I agree mysqli should now be used were possible I still believe mysql_ is very viable to use/practice with if you’re going to be using anything open source as most still use mysql rather than mysqli. It’s not really outdated in terms of support either so for something like this it’s more than adequate. Btw – nice post Dayo. :) EDIT - gave it a little test, and got an error. will take a better look in the morning (right now I looked at a file quickly + installed) You seems to include “template/...” but have called the file “templates” this gives us an error. Easy fix: take the “s” out the file name. ;) Also you could give a small example of the filters by using filter_validate_email in the register page. Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 24, 2011 Author Share Posted March 24, 2011 yea ill add the filter email tonight, thanks for the bug on the directory name, i did notice it before but uploaded the wrong zip file, should be fixed now ;) Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted March 24, 2011 Share Posted March 24, 2011 tabs are indeed much better. Even if it is not the way I would do it, but here you are free to have the style you like, as long as you are consistent. Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 24, 2011 Author Share Posted March 24, 2011 Thanks, i only just started tabing my scripts so i can only get better ... hopefuly :D Quote Link to comment Share on other sites More sharing options...
Dominion Posted March 24, 2011 Share Posted March 24, 2011 Thanks, i only just started tabing my scripts so i can only get better ... hopefuly :D What editor are you currently using? Take a look into IDEs as they tab for you. Just makes life easy, that is of course is only one of many things they do... Also you could look at - How to make your code readable Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 24, 2011 Author Share Posted March 24, 2011 i use DW CS5 but i hate there tabbing system so i do it all manualy Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted March 25, 2011 Share Posted March 25, 2011 Well I would say it's time to switch to some real code editor... DW is fine for HTML / CSS but not really while working with code. Quote Link to comment Share on other sites More sharing options...
ShadyCoco Posted August 30, 2011 Share Posted August 30, 2011 This is really nice for new people and also old people who want to make some from a base :) Good job man :) Quote Link to comment Share on other sites More sharing options...
Dayo Posted September 1, 2011 Author Share Posted September 1, 2011 no problem glad people like it :) Quote Link to comment Share on other sites More sharing options...
ShadyCoco Posted September 5, 2011 Share Posted September 5, 2011 Hey, Here is a version of building blocks with CSS http://www.mediafire.com/?ir3nayqta48qr7c Quote Link to comment 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.