Hi,
I was wondering, what's the advantage of having following code
instead of simply use a regular file with a regular top2down (procedural) code for controllers, per file (./whatever/index.php, whatever/read.php etc).PHP Code:class Controller_Whatever extends Controller
{
public function index()
{
}
public function read()
{
}
}
Sorry if this is a stupid question, there's probably an advantage since everybody's doing it, but I just don't see it!







Anyhow, I just have to read more examples, I'm buying a book next week, hopefully that will help.
Bookmarks