error handling: how to handle missing secondary database gracefully
I am reading a list of job numbers from a mysql database on an old
server on my intranet. This server is completely independent from the
server for my cakephp app and database. If the server is there, I
populate a combobox with the list of job numbers, however, if it is
down, I would like to handle the error gracefully and just show an
empty textbox (for manual data entry) instead of the list of job
numbers.
Any ideas on how to do this? I have tried to override the missingTable
function in error.php, but have trouble redirecting to my original
page. I think it would work better if I could avoid the error being
triggered altogether.
Thanks.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home