In CakePHP I am trying to pass a simple parameter to my controller class method. However it looks like the parameter has to be visible in the URL. Can't I pass a parameter without it being visible in the URL?
My routing:
Router::connect(
'/',
array(
'controller' => 'Pages',
'action' => 'display'
),
array(
'pass' => array(
'pageName' =>'home'
)
)
);
And my Controller method:
public function display($p_sPageName=null) {