Example #1
0
	<!--End response_before_content_sidebar hook-->
		<div id="content" class="<?php 
echo $content_grid;
?>
">
			<div class="content_padding">
		
			<!--Begin response_before_404 hook-->
      			<?php 
response_before_404();
?>
      		<!--End response_before_404 hook-->
		
      		<!--Begin response_404 hook-->
      			<?php 
response_404();
?>
      		<!--Begin response_404 hook-->
      		
      		<!--Begin response_after_404 hook-->
      			<?php 
response_after_404();
?>
      		<!--End response_after_404 hook-->
      		
			</div><!--end content_padding-->
		</div><!--end content_wrap-->
	
	<!--Begin response_after_content_sidebar hook-->
		<?php 
response_after_content_sidebar();
Example #2
0
File: app.php Project: phpish/app
function next($req, $data = array())
{
    $matches = array();
    $handler = _next_handler_match($req, $matches);
    $req['matches'] = $matches;
    if (!is_null($handler)) {
        if (is_callable($handler['func'])) {
            return call_user_func($handler['func'], $req, $data);
        } else {
            return response_500("Invalid handler function: {$handler['func']}");
        }
    }
    return response_404('Matching handler function not found');
}