Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Error pages
#155
Error pages 2 Years, 3 Months ago Karma: 0
Hey Alex,

Would it maybe be possible to explain something about error pages in ZF? I've looked around a bit and found some about using exceptions but don't really know wether that is the right way to do it.

For example I've got a userController with the action view in the url I also send the ID like this:
/default/user/view/id/2

If there for example wouldn't be a user in the DB with ID = 2 I would like to set the headers to 404 and redirect to a page where the users are listed (and maybe include a little message saying the user was not found)

Maybe a tutorial about this?
Yorian
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#156
Re:Error pages 2 Years, 3 Months ago Karma: 16
Error handling in ZF ... sounds like a must do!! Thanks for mentioning.
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1388
Content : 42
Web Links : 1
Content View Hits : 190527

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 39 guests online