Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Forum Home

You got Cake in my PHP

UserMessage
Posted : Sunday, 06 May 2012, 07:41 | Permalink | Mark Here
CodersRule


Is anyone here experienced with CakePHP? How did you get past the steep learning curve that comes with using such a peculiar framework in PHP? I’ve never used a MVC framework before.
Posted : Sunday, 06 May 2012, 07:41 | Permalink | Mark Here
JL235


WW Entries : 7
I've not used Cake, but I've heard terrible things about it. Kohana is meant to be much better for PHP. MVC though is pretty straight forward, and makes a lot of sense once you get your head around it. It's also pretty predictable, which is useful for big sites.

Code Igniter's user document starts with an excellent breakdown on MVC, which applies to most web frameworks. Although Code Igniter it's self isn't that great. It's documentation is one of the very few awesome qualities about it.

The main issue with MVC frameworks is the level of 'magic' they provide, that 'just happens' to work and do stuff for you, with no direct reason given as to how or why.

Rails is what I started with, and it used to do this a lot, but I've heard they have toned it down in recent years. Rails is an awesome framework, but it's magical qualities were easily the hardest bit of it's learning curve.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Posted : Sunday, 06 May 2012, 08:13 | Permalink | Mark Here
CodersRule


I was getting confused looking at the Cake docs, just because, like you said, the "magic" is a bit too much for me. I can't tell how I'm actually supposed to be getting stuff done if it's all being done for me. I'll look into Kohana. My main goal here is to start programming PHP sites the "right" way, because PHP in general is pretty messy.
Posted : Sunday, 06 May 2012, 12:47 | Permalink | Mark Here
JL235


WW Entries : 7
Tbh, don't use PHP. It's a really horrible language.

I'd recommend you get started with Rails, or you could try out Sinatra. Sinatra is pretty slim, but offers a very clean basic structure for a site.

Although a little magical, there are good reasons why people rave about how amazing Rails is.

You could also have a look at TodoMVC. It's the same Todo app, built using different JavaScript web frameworks. You could use it to get a taste for any JS frameworks you like the look of, and try out one of them.

Seriously, don't use PHP. It's just horrific.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Posted : Sunday, 06 May 2012, 15:39 | Permalink | Mark Here
CodersRule


The issue is that everything supports PHP, and at this point I don't have the ability to use everything else. Trust me, I want to stay as far away from PHP as possible: but in some circumstances, like the ones I'm in right now, I don't really have a choice.
Posted : Sunday, 06 May 2012, 17:33 | Permalink | Mark Here
steve_ancell


JL235 I'd recommend you get started with Rails

Right!, I know I'm gonna sound dumb here, I know that phpinfo() tells me if PHP is included with a webspace host package but how can I find out if Rails is included?, I have heard that Rails is the dog's bollocks but I don't know for certain unless I try it for myself and I would really be interested in giving it a go.
Posted : Sunday, 06 May 2012, 18:42 | Permalink | Mark Here
Afr0


WW Entries : 3
The issue is that everything supports PHP


Everything what?
There's CGIC for C, Django for Python and Rails for Ruby.



-----
Afr0 Games

Project Dollhouse on Github - Please fork!
Posted : Sunday, 06 May 2012, 18:44 | Permalink | Mark Here
Afr0


WW Entries : 3
I have heard that Rails is the dog's bollocks


I sincerely doubt that it could be worse than PHP.

-----
Afr0 Games

Project Dollhouse on Github - Please fork!
Posted : Monday, 07 May 2012, 04:40 | Permalink | Mark Here
steve_ancell


Afr0, the phrase "dog's bollocks" means something is good. LOL
Posted : Monday, 07 May 2012, 04:44 | Permalink | Mark Here
steve_ancell


OK, I will rephrase my original post...

I've heard that Ruby on Rails is good but I don't know where to start.
Posted : Monday, 07 May 2012, 05:29 | Permalink | Mark Here
JL235


WW Entries : 7
Take a look at XAMPP, I believe that comes with Ruby on Rails. I've not tried that myself, but XAMPP is excellent, and I'd be very surprised if it goes wrong.

Personally I setup Ruby and Rails manually, but it's a nightmare to get right. The issue is that if I say 'use Ruby', do I mean JRuby, Ruby 1.8 or Ruby 1.9? Those are the main versions, and each have differences, and work well with different versions of Rails.

If you want to go down this road, I'd just find a tutorial online, and stick religiously to what versions of Ruby and Rails they pick. But the official Rails site should be able to help you get started.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Posted : Monday, 07 May 2012, 05:45 | Permalink | Mark Here
steve_ancell


Thanks for that DD, I have got XAMPP and I was completely unaware that R on R was included. LOL

I will have a look into it later.
Latest Posts
Musical Tastes
Dabz Sat 11:38
FIRST!!!
steve_ancell Sat 11:22
Coder's Block
Jayenkai Thu 09:01
Consumer Lockout
9572AD Thu 06:09
Professor Oak, Honest!!
spinal Wed 23:24
Position in Mind
steve_ancell Wed 20:11
Sonic Adventure v0.x
Jayenkai Wed 07:08
Noel's Graduation
waroffice Wed 02:55
Monkey vs iOS tweaks
spinal Tue 22:51
Fucking Pound Sign Unicode Bullshit Bollocks
Dabz Tue 13:00
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
Dabz
Sat, at 12:04
steve_ancell
Sat, at 11:44
spinal
Sat, at 11:42
shroom_monk
Sat, at 11:38
Hotshot
Sat, at 11:37
Jayenkai
Sat, at 11:13
Cower
Sat, at 10:35
CodersRule
Sat, at 09:12
rockford
Sat, at 09:05
9572AD
Sat, at 08:15
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.