Extract URL value with CakePHP (params)
cakephp, mysql, php, url
Solution
Use this way
echo $this->params['url']['id'];
it's here on cakephp manual http://book.cakephp.org/1.3/en/The-Manual/Developing-with-CakePHP/Controllers.html#the-parameters-attribute-params
Problem
I know that CakePHP params easily extracts values from an URL like this one: ``` http://www.example.com/tester/retrieve_test/good/1/accepted/active ``` I need to extract values from an URL like this: ``` http://www.example.com/tester/retrieve_test?status=200&id=1yOhjvRQBgY ``` I only need the value from this id: id=1yOhjvRQBgY I know that in normal PHP $_GET will retrieve this easally, bhut I cant get it to insert the value into my DB, i used this code: ``` $html->input('Listing/vt_tour', array('value'=>$_GET["id"], 'type'=>'hidden')) ``` Any ideas guys?