I want to create a page that render a template (.tpl) file with this:
hook_menu
$items['news'] = array(
'title callback' => 'check_plain',
'title arguments' => array('News'),
'page callback' => 'theme',
'page arguments' => array('news', array()),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
hook theme
$items['news'] = array(
'template' => 'templates/news',
);
All works well if i go to www.mydomain/news
But if i go to www.mydomain/news/aaaaa (that is a non existing page) i will see again the template page and not a 404 error page, why?
Is this a normal d7 behaviors and i need to fix this in a callback function? ...or i need to check into other code/modules that cause this bug ?