How to handle eror message in controller ? |
[eluser]Edy S[/eluser]
Hi Everybody, i have a problem with my controller programs. Here's my code : Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); It will display error message and disturb the website display when people visit http://www.mysite.com/home/pages/ without insert a value for $id And my question now, How to handle an empty $id, so that it will not display an error message ? |
Messages In This Thread |
How to handle eror message in controller ? - by El Forum - 08-13-2011, 08:01 AM
How to handle eror message in controller ? - by El Forum - 08-13-2011, 08:29 AM
How to handle eror message in controller ? - by El Forum - 08-13-2011, 08:30 AM
How to handle eror message in controller ? - by El Forum - 08-13-2011, 09:00 AM
|