Be a Supporter!

Best web to organize a website

  • 293 Views
  • 5 Replies
New Topic Respond to this Topic
Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
Best web to organize a website Dec. 16th, 2012 @ 10:01 AM Reply

Alright, so I've got a website built in php, but the organization is a little shoddy. I'm try to reorganize it, but I'm not sure how.
I thought about MVC, but I don't want to only have an index page that directs users via ?this=param&that=param. I'd rather have physical pages.

My next turn was to the many systems out there, like Joomla or Drupal, but they also use MVC, Drupal being a bit looser than Joomla.

Anyway, my point is, is there a way to implement MVC without using only one page as the controller? Or should I just write my thoughts in a journal, cry about it when I'm alone, and do it this way?


Hello, from the past!
[ PHP: Main ]

BBS Signature
Diki
Diki
  • Member since: Jan. 31, 2004
  • Offline.
Forum Stats
Moderator
Level 13
Programmer
Response to Best web to organize a website Dec. 16th, 2012 @ 07:54 PM Reply

At 12/16/12 10:01 AM, Momo-the-Monkey wrote: I thought about MVC, but I don't want to only have an index page that directs users via ?this=param&that=param.

Yeah that wouldn't work very well.
If you want to use an MVC framework then I highly recommend Laravel. It's an excellent framework with easily understandable documentation. If you've never used an MVC framework before it will be a little confusing at first, and seem like more work than it's worth, but ultimately it is worth it.

Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
Response to Best web to organize a website Dec. 16th, 2012 @ 10:12 PM Reply

At 12/16/12 07:54 PM, Diki wrote: If you want to use an MVC framework then I highly recommend Laravel.

Hey thanks! I'll have to give that a swing. I want to know though, is there a better way to organize a site? If MVC is the best route, I have no problem with that, but I was curious if there were alternatives that might be better for web development, especially smaller sites or sites that don't have too much input from the user.


Hello, from the past!
[ PHP: Main ]

BBS Signature
Diki
Diki
  • Member since: Jan. 31, 2004
  • Offline.
Forum Stats
Moderator
Level 13
Programmer
Response to Best web to organize a website Dec. 16th, 2012 @ 11:17 PM Reply

For web development I'd say that MVC is your best choice, even for small websites that aren't complex.

citricsquid
citricsquid
  • Member since: Jun. 25, 2005
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to Best web to organize a website Dec. 17th, 2012 @ 11:50 AM Reply

At 12/16/12 07:54 PM, Diki wrote: If you want to use an MVC framework then I highly recommend Laravel. It's an excellent framework with easily understandable documentation. If you've never used an MVC framework before it will be a little confusing at first, and seem like more work than it's worth, but ultimately it is worth it.

I recently switched to laravel (from codeigniter) and it really is a great framework, it does some really awesome things, however depending on how someone learns I would not recommend it as a first framework. The documentation is "okay" but it isn't very friendly for new users. Example code is few and far between and there aren't any really good example applications. Personally I'd recommend codeigniter as a "my first framework" because it's very straightforward, it has examples of everything and if you have a problem it's guaranteed than 100 people have had that problem before and at least 10 have documented the solution.

So far in the last month of using Laravel I've already come across a couple of things that have made me think "huh?" and nobody had talked about them anywhere (no forum posts, no blog posts, no documentation) so I had to go through the api documentation and work why things were happening that way. That isn't a bad thing per-se, but it would have confused the hell out of me when I moved to using codeigniter for the first time (from never using an MVC framework before).

For momo, if you do decide to try out Laravel there's a really great ebook available for $10: https://leanpub.com/codehappy

Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
Response to Best web to organize a website Dec. 17th, 2012 @ 10:39 PM Reply

At 12/17/12 11:50 AM, citricsquid wrote: For momo, if you do decide to try out Laravel there's a really great ebook available for $10: https://leanpub.com/codehappy

Thanks for the advice. Although I have never really played around with too many frameworks before, I'm going to mess around with Laravel to see if I can't get anything working. If not I'll do what you say and start with CodeIgnitor. And is the book more helpful (or I should say, clearer) than the documentation? Although it's not The Heart of Darkness (which was awful by the way), I'm not afraid to sift through the docs.


Hello, from the past!
[ PHP: Main ]

BBS Signature