-
GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
GrapeWEB II
Introduction
Hi. I'm Slotherin, but my real name is Joshua. I've been lurking around the forums for a while as a non-registered user and I decided to give the community a little something. Many of you won't of ever heard about GrapeWEB, but it was basically a small, Habbo-CMS by myself, and now times have changed and it's time for something better... GrapeWEB II. It uses the MVC structure, just without the models... instead it uses Data Access Objects as it seemed more convenient to use those instead of Models. Anyway, it uses RedBeanPHP (PDO) for the database handling. It's also coded in PHP.
Features
- Easy "view" system, from MVC
- Fast & Secure
- RedBeanPHP (PDO)
- Views & Controllers
- Data Access Objects (DAO's)
- Theme system
- PHP separated from HTML
- Skeleton structure (from RaGEWEB 2)
- Routing system with arrays
- Flexible
- Quick setup
- Full-featured housekeeping
- Makes SQL injection practically impossible
- Bootstrap theme with AJAX & jQuery
Screenshots
http://i.imgur.com/uN55upR.png
Credits to the Chromide team for the idea of this theme, however it's Bootstrap elements so credits aren't really required.
GitHub
http://github.com/Slotherin/GrapeWEB-II
The project is hosted on GitHub. However, I do not reccommend trying to set it up, as it's far from finished. No database connection has been done yet, nor has the code been revised and cleaned. The GitHub is only to show the progress and code.
Credits
Makarov (Ideas from RaGEWEB 2 such as the routing array etc)
Leon (Some code ideas from Nova3.0, such as RB and DAO's)
Slotherin (ME!)
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
RedBeanPHP is a great library if you want easy MySQL object relational mapping. Good luck with your project, if you ever need any help, PM me! :)
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Leon
RedBeanPHP is a great library if you want easy MySQL object relational mapping. Good luck with your project, if you ever need any help, PM me! :)
Yeah, I got the idea from Nova, as well as the DAO's, seems easier and more flexible for myself :p
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Slotherin
It uses the MVC structure, just without the models... instead it uses Data Access Objects as it seemed more convenient to use those instead of Models.
Can't implement the MVC pattern without a model. The M means Model.
Quote:
Originally Posted by
Slotherin
It doesn't look bad, but if anything I'd advice you to try to do something completely different from what everyone else is doing - I'm tired of seeing a bunch of "MVC CMS'" that are practically the same thing.
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Kryptos
Can't implement the MVC pattern without a model. The M means Model.
It doesn't look bad, but if anything I'd advice you to try to do something completely different from what everyone else is doing - I'm tired of seeing a bunch of "MVC CMS'" that are practically the same thing.
VC doesn't sound too good, I didn't use Models because it's easier to call static functions from DAO's, however, there is still a possibility that i'll replace DAO's with Models, i'll just have to think about it. Also, since I'm half way through, I don't think i'll change the architecture, maybe if I do a version three I might think of something new
I've also made quite a few updates in the past few hours; however they're not ready to be pushed yet, i'll most likely update it either tomorrow or later on.
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Features seem interesting, code looks good as well ;)
Good luck! ;P
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Slotherin
I didn't use Models because it's easier to call static functions from DAO's, however, there is still a possibility that i'll replace DAO's with Models
Why not both? ...
Model -> Business Logic
DAO -> 'an object that provides an abstract interface to some type of database' - Source
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Kryptos
Why not both? ...
Model -> Business Logic
DAO -> 'an object that provides an abstract interface to some type of database' -
Source
Good idea, not definitely sure of what i'll do. I've begun the model system anyway, it's just a matter of whether I implement DAO's as well. :p
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Sorry for double post.
Over the past 24 hours i've got lots and lots of work done. The viewing system is finished, and I came accross some errors whilst doing it. File structures have also changed as the views are now stored in Application/Themes/*/Views, as PHP is also stored in the template files. I've also decided just to use DAO's. To see code updates, go here (github): click!
Major Updates
A theme has been started, it's name is "Simplistic", it's created with Bootstrap and inspired by one on Chromi.de. However, at the end of the day, it's Bootstrap so don't moan that it's ripped. Also, the Bootstrap.min.css is one from Bootswatch (can't remember it's exact name)http://i.imgur.com/uN55upR.png
Main thread has also been updated.
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Prepare for Cobe being butthurt and say you stole his theme, chromi.de.
Good luck with this!
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
ησвяαιη
Prepare for Cobe being butthurt and say you stole his theme, [url=http://chromi.de/]RaGEWEB II
It's not going to be the main theme of the site, i'll probably create another two themes before official release. After all, it's not his work, it's Bootstrap?
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
He clearly gave me credit for it, so I'm fine. I just don't like when people like Monsma and Ashleigh steal my codes without recognition :P
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
This is pretty nice good luck with actually developing this it's really looking good and it seems that you and Makarov are working perfectly fine together so good luck both to use.
Ever wanted to see Nick Monsma : Here's the chance:
Don't be scared of mister Monsma aka mister fat Monsma he's just another try-hard around the INTERNET so he's actually not able to do shit to you.
Woops found you are you going to ''Fuck my internet'' Now too? Please tell me if so I'd personally laugh you out like a boss.
Click this
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Notice
This is pretty nice good luck with actually developing this it's really looking good and it seems that you and Makarov are working perfectly fine together so good luck both to use.
Also don't be scared for Nick Monsma He's a little fat twat who clearly thinks he's the big guy over here telling people what to do and what not to do makes him clearly look like an utter idiot he's not worth shit.
Ever wanted to see Nick: Here's the chance:
Click this
I'm not working with Makarov, this and Chromide are 2 different projects, I just took the design from Chromide................
-
GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Notice
@Nicky Monsma...
[MSG]
...have a good day!
Dude, keep on topic - I can see you're new (unless you're the guy was banned the other week for chatting shit on most popular threads), so this is a gentle reminder...
@OP - index looks much better than what I currently see on chromi.de! Looking forward to the outcome anyway :):
-
GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Remain on topic, thanks.
Quote:
Originally Posted by
n0minal
Dude, keep on topic - I can see you're new (unless you're the guy was banned the other week for chatting shit on most popular threads), so this is a gentle reminder...
@OP - index looks much better than what I currently see on chromi.de! Looking forward to the outcome anyway :):
Thanks, wasn't too keen on the small hotel view, bigger is better, right?
I'm planning on making multiple updates tomorrow; however it's exam week at school and these count for my GCSE sets so ill be revising too. Thanks.
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Slotherin
Remain on topic, thanks.
Thanks, wasn't too keen on the small hotel view, bigger is better, right?
I'm planning on making multiple updates tomorrow; however it's exam week at school and these count for my GCSE sets so ill be revising too. Thanks.
chromide uses several views :D
-
GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Makarov
chromide uses several views :D
Yeah, I noticed that when browsing through the site :p
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Slotherin
Yeah, I noticed that when browsing through the site :p
The layout is pretty small and abstract because unlike all the other hotels, chromide is on a pretty recent build, so our news articles are in-game (which is why there's no articles page or whatever). The design will probably be scrapped when we get out of beta.
-
GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Makarov
The layout is pretty small and abstract because unlike all the other hotels, chromide is on a pretty recent build, so our news articles are in-game (which is why there's no articles page or whatever). The design will probably be scrapped when we get out of beta.
Yeah, I wanted to include a small and Simplistic (hence the name) theme aswell as a fully fledged theme (will code later), ill probably also do some sort of multiple database support, but nothing definite yet :p
-
GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Quote:
Originally Posted by
Leon
Commenting on your own thread with your other account..lol
I was logged into that one on my iPad and I told them to remain on topic... Then I looked like an idiot so yeah :)))
@Quackster: I'll definitely finish this one, and I promise that.
Guys, please remain on topic, I don't even know what you're on about.....
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Begin recoding this, updates will come within the next couple of days, i've got big things planned...
-
Re: GrapeWEB II ~ [MVC][PHP][RedBeanPHP]
Just wondering if there is any reason for separating the HTML and PHP aside from convenience?
-
Quote:
Originally Posted by
Riley H
Just wondering if there is any reason for separating the HTML and PHP aside from convenience?
Its easier to find code, cleaner for the eye and easier to use with oop.