TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   The Lounge (http://www.talkphp.com/lounge/)
-   -   A totally non-OOP PHP CMS? (http://www.talkphp.com/lounge/5002-totally-non-oop-php-cms.html)

Dave 10-06-2009 02:47 AM

A totally non-OOP PHP CMS?
 
Lots of new CMS' out there. Most that I've looked at were OOP-based. Does anyone know of a CMS for PHP that is completely free of OOP?

Just curious,

Thanks!

Enfernikus 10-06-2009 02:57 AM

No, any decent developer involved in CMS development would immediately see the benefits of treating data as an object with special properties/methods per type of data.

Jim 10-06-2009 08:41 AM

I made one about 4 years ago :+

Tanax 10-06-2009 12:05 PM

Why on earth would you want a Non-OOP CMS?! :-/

Dave 10-06-2009 02:20 PM

Thanks for your replies.

As a learner, I'm a l-o-n-g way from OOP concepts. I knew it was a long shot, but...you never know.

Dave

ioan1k 10-06-2009 02:33 PM

Wordpress?

Dave 10-06-2009 02:39 PM

Enfernikus, your "my blog" link appears to be broken...?

Village Idiot 10-06-2009 03:09 PM

If you don't understand OOP, a CMS is not a practical option for you to learn from.

Dave 10-06-2009 03:55 PM

Thanks, VI. I see what you mean, but I disagree to some extent. Obviously, I wouldn't learn much from OOP-based code, but I think it is good to think in terms of M-V-C principles as soon as is practical, and MVC is not an OOP-only concept.

Dave

ETbyrne 10-06-2009 05:43 PM

Basically, and I'm generalizing a ton here, OOP scripts use classes. So in order to have a script that is not OOP, then it would have to have no classes.

It would be nearly impossible to create a large, well structured, program without the organization that classes offer.

OOP isn't that hard, and there are some good tutorials on it around here somewhere...

PHP Code:

class message
{
    public 
$msg;

    public function 
display()
    {
        echo 
$this->msg;
    }

    public function 
set($text)
    {
        
$this->msg $text;
    }
}

$message = new message();
$message->set('Hello, World!');
$message->display(); 

The above outputs:

Code:

Hello, World!

Dave 10-06-2009 06:55 PM

Thanks, ETbyrne --

Yes, you're exactly right. I was just trolling for a VERY light-weight CMS that was "functionally programmed." Interestingly, I noticed that some of the smaller OOP CMS' are well below 50K in size.

But on the second part, OOP (for some of us) is a really challenging subject. My wife is an accomplished artist. Sometimes when she is drawing, I ask her, "How do you DO that?" She smiles and says, "It's easy."

Yeah, right.

Dave

ETbyrne 10-06-2009 07:37 PM

It is true that OOP can be challenging to get used to at first, but once you get the hang of it you can never go back! It's just kind of an "aha" moment when you finally get it.

I'll dig around and see if I can find any good tutorials...

Dave 10-06-2009 07:51 PM

ETbyrne,

Thanks again! However, I have 5 or 6 really good tuts on OOP saved on my computer right now. My eyes glaze over when I start in on them because I'm simply not "concept-ready" yet.

I've just gotten used to the "foreach...as...=>..." loop. For me, that is a difficult proposition.

It is going to be a couple of years, at least. Just sayin'.

Dave

ETbyrne 10-06-2009 11:19 PM

Ah I see. I just assumed you were more advanced, but you are still learning the core concepts. My bad.


All times are GMT. The time now is 10:06 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0