I tried to pass url from current page to controller but it dosen't show me full url.
EX, http://xxxxxx.localhost/cards/card_list/page:2
when i echo it in controller it shows xxxxxx.localhost
. I knew because of the special character such as ("/" ":" )
...etc.
My project purpose is pass url with the form to controller after controller finished the work, I will redirect it to the current page.
card_list (View)
<?php echo $url5 = urlencode(Router::url($this->here, true)); ?>
<?php echo $form->create('CardSaleAll', array('url'=> array('controller' => 'cards', 'action' => 'complete_sale_card', $url5)));?>
<input type="hidden" name="data[CardSaleAll][sale_card_id]" value="'+id+'">
<?php echo $form->submit('Submit', array('alt' => '売却','type' => 'image', 'src' => '../../img/btn_52.png', 'style' => 'width: 307px;'));?>
cards (controller) => complete_sale_all (action)
function complete_sale_card($url5){
echo $url5;
exit();
}