TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-12-2007, 04:38 PM   #1 (permalink)
bdm
The Acquainted
Good Samaritan 
 
Join Date: Nov 2007
Posts: 127
Thanks: 14
bdm is on a distinguished road
Default HOWTO: Create a Lightweight Front Controller for PHP5

http://www.w3style.co.uk/a-lightweig...ller-for-php-5
bdm is offline  
Reply With Quote
The Following 3 Users Say Thank You to bdm For This Useful Post:
maZtah (12-13-2007), Nor (12-12-2007), Wildhoney (01-04-2008)
Old 12-13-2007, 11:32 AM   #2 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

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 is offline  
Reply With Quote
Old 12-13-2007, 11:42 AM   #3 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

Never mind, I fixed it already. I had to create a HomeActions.php in pages/home/. :)
maZtah is offline  
Reply With Quote
Old 12-13-2007, 12:10 PM   #4 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-13-2007, 12:26 PM   #5 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

When I create a form in pages/guestbook/createPostView.php, where should I point it to? And where should I handle the form?
maZtah is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:20 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design