frocco
(Farocco)
1
Hello,
Learning yii, and in codeigniter, I would create a link like:
http://localhost/myapp/param1/param2
and then get param1 using $this->uri->segment(3)
and param2 like $this->uri->segment(4)
How do I create params in yii and get their values for links?
Thanks in advance.
frocco
(Farocco)
2
I figured it out.
Yii::app()->createUrl($path, $p)
Yii::app()->session['category'] = CHttpRequest::getParam('category');
logos010
(Logos010)
3
Hi Frocco,
Did you mean if i want to get param in url with segment, I should did it:
HttpRequest::getParam('id');
In above code “id” param is following format in CUrlManager Class
.
In my case, it’s worked, thanks 