Spartan CMS [OOP, MVC, PDO]

Results 1 to 14 of 14
  1. #1
    Member lai0n is offline
    MemberRank
    Jul 2015 Join Date
    ~/LibraryLocation
    71Posts

    Spartan CMS [OOP, MVC, PDO]

    Hi! C:

    About
    Spartan is a content management system coded in PHP following the MVC architecture, using Prepared Statements, classes and objects(OOP) and PDO.

    Features
    MVC ~ Model–view–controller (MVC) is a software architecture pattern that separates the representation of information from the user’s interaction with it. – Wikipedia

    Easy install ~ The spartan has an almost complete installation.

    Quick translation ~ The translations will be made by the community

    Ajax - AJAX is a technique for creating fast and dynamic web pages - w3schools

    Snippets
    <?php class Application { private $url_controller = null; private $url - Pastebin.com
    <?php class Controller { public $db = null; public $model = null; pu - Pastebin.com

    If got any questions, just ask :D!
    Wait for updates! :P


  2. #2
    Enthusiast fantje is offline
    MemberRank
    Oct 2013 Join Date
    41Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Any screens please?

  3. #3
    Proficient Member Xesause is offline
    MemberRank
    Feb 2015 Join Date
    181Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Cool, but it seems like it is copy-pasted from MVC example code.
    My critique:
    - You are making a somewhat complex application, a CMS. That would need multiple models, such as a User model, a News Article model, etc.
    - There is one controller. It's name ("Controller"). It's name is not explaining what it does. If you would use a controller that handles everything, you are making a God class which isn't really a good thing. (>wikipedia)

  4. #4
    Novice misakie is offline
    MemberRank
    Apr 2015 Join Date
    3Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Quote Originally Posted by Xesause View Post
    Cool, but it seems like it is copy-pasted from MVC example code.
    My critique:
    - You are making a somewhat complex application, a CMS. That would need multiple models, such as a User model, a News Article model, etc.
    - There is one controller. It's name ("Controller"). It's name is not explaining what it does. If you would use a controller that handles everything, you are making a God class which isn't really a good thing. (>wikipedia)
    "- You are making a somewhat complex application, a CMS. That would need multiple models, such as a User model, a News Article model, etc." Yeah

    "There is one controller. It's name ("Controller"). It's name is not explaining what it does. If you would use a controller that handles everything, you are making a God class which isn't really a good thing. (>wikipedia)" Wrong, the file calls a controller depending on the link

  5. #5
    Member lai0n is offline
    MemberRank
    Jul 2015 Join Date
    ~/LibraryLocation
    71Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Update: I will use Eloquent ORM-Laravel
    Eloquent ORM - Laravel - The PHP Framework For Web Artisans

    Habbo.com google insights:
    Screenshot by Lightshot (pt-br)

    Spartan CMS google insights:
    Screenshot by Lightshot (pt-br)
    Last edited by lai0n; 24-07-15 at 12:29 AM.

  6. #6
    git bisect -m ovflowd is offline
    MemberRank
    Sep 2011 Join Date
    2,191Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Why using Laravel?!! This doesn't have any sense! Also if you want use a PhP framework why not using phalconphp or Yii? A lot of array functions useless, a really lol PDO socket opening class... Reason: using Wikipedia reference. Also why putting you will use Ajax? '-' your cms will be old school? ajax isn't a concept. Is only a data transfer implementation.. Like a void ... Like a plugin... Also ajax is not secure.
    Last edited by Droppy; 31-07-15 at 02:32 AM. Reason: Removed not needed stuff.

  7. #7
    Gaby is offline
    MemberRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    What are you doing to that poor constructor of your Application class? o.o

  8. #8
    Typescript XOXO LeChris is offline
    MemberRank
    Sep 2011 Join Date
    749Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    If you're using Laravel, it already handles the initial database connections, and everything so why recheck on your controller?

  9. #9
    git bisect -m ovflowd is offline
    MemberRank
    Sep 2011 Join Date
    2,191Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Is because he ever don't know what is Laravel. He only say these words from Wikipedia to appears something cool. He is a really bad Dev I know him. And his ego is really big

  10. #10
    Proficient Member Xesause is offline
    MemberRank
    Feb 2015 Join Date
    181Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Quote Originally Posted by bi0s View Post
    Is because he ever don't know what is Laravel. He only say these words from Wikipedia to appears something cool. He is a really bad Dev I know him. And his ego is really big
    Nice to say that.

  11. #11
    No need of reading this Rush Retros is offline
    MemberRank
    Dec 2013 Join Date
    DenmarkLocation
    365Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Quote Originally Posted by bi0s View Post
    Is because he ever don't know what is Laravel. He only say these words from Wikipedia to appears something cool. He is a really bad Dev I know him. And his ego is really big
    You or any other Azure developer shouldnt talk about Ego...

  12. #12
    Ask me about Daoism FullmetalPride is offline
    MemberRank
    Nov 2010 Join Date
    2,172Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Quote Originally Posted by Rush Retros View Post
    You or any other Azure developer shouldnt talk about Ego...
    How about you just stop talking? The fact that they developed one of the most popular emulator edits merits some level of pride for them.

    Besides, he has a point. There's enough evidence to support the idea that OP doesn't know how to use the tools he's working with.

  13. #13
    git bisect -m ovflowd is offline
    MemberRank
    Sep 2011 Join Date
    2,191Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    Quote Originally Posted by FullmetalPride View Post
    How about you just stop talking? The fact that they developed one of the most popular emulator edits merits some level of pride for them.

    Besides, he has a point. There's enough evidence to support the idea that OP doesn't know how to use the tools he's working with.
    i think.. if he know about these things.. why search in wikipedia? ... also, real developers, never explain what the "siglas" means.. because, everyone here know what that "siglas" means.. if you are watching development section...

    Brief topic about the cms I'm developing

    OOP - Structure in classes
    PDO - Connection safer MySql
    MVC - software architecture standard that separates the information of the interface with which the user interacts.
    LAVVOS - no longer compatible with lavvos (After all, was outdated)
    Redone classes, in order to structure and delete useless classes
    JS / AJAX - Not sure, but I want to put.
    New Setup / Install
    templates:
    Standard template:
    HTML5 / CSS3
    Design retro
    Anyone should be able to edit the template
    No built-in PHP
    Last edited by lai0n on Mon Jun 22 2015 - 15:16, edited 2 time (s)
    That's what he posted in original thread.. (is on portuguese, used google translator, i don't have time to translate these LOL words..."
    Really, a guy that say these words...
    But ...
    Okay...
    And he is Brazillian...
    e.e
    I don't know what i can say anymore..

  14. #14
    iiiiiiiiiii Brought is offline
    MemberRank
    Aug 2013 Join Date
    469Posts

    Re: Spartan CMS [OOP, MVC, PDO]

    This thread hasn't been updated in ages from the OP. Is this still being developed?!



Advertisement