tags:

views:

45

answers:

1

I need to display 404 and 403 error pages if some conditions are true in my component code. I'm using /index.php?option=com_live_editor&format=raw to call a component. raiseError just shows me an output from component with no messages.

A: 

Why are you using format=raw in your query string? Is this an Ajax call?

JError::raiseError(404, "Message");

is the appropriate way to show error pages in Joomla.

Jarrod