TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   HOWTO: Create a Lightweight Front Controller for PHP5 (http://www.talkphp.com/advanced-php-programming/1719-howto-create-lightweight-front-controller-php5.html)

bdm 12-12-2007 05:38 PM

HOWTO: Create a Lightweight Front Controller for PHP5
 
http://www.w3style.co.uk/a-lightweig...ller-for-php-5

maZtah 12-13-2007 12:32 PM

Thanks for sharing. I've been through the whole article, but the whole principle's not very clear. Like this;

pages/guestbook/GuestbookActions.php
When I change $this->forward("guestbook", "tryLater"); to $this->forward("home", "tryLater"); it still gets to pages/guestbook/doTryLater.php. Am I doing something wrong?

maZtah 12-13-2007 12:42 PM

Never mind, I fixed it already. I had to create a HomeActions.php in pages/home/. :)

ReSpawN 12-13-2007 01:10 PM

Looks pretty good, just skimmed through it. Nothing to spike my intrests but my mate is working on a OOP class for images. Drawing grids and stuff.

maZtah 12-13-2007 01:26 PM

When I create a form in pages/guestbook/createPostView.php, where should I point it to? And where should I handle the form?


All times are GMT. The time now is 07:32 AM.

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