As title states, I need help using both query strings and segment urls. Any ideas I'm at a loss?
iamthwee
Recommended Answers
Jump to PostI'm not sure I've understood but you can use both at the same time. For example you have a method like this one:
public function activation($id) { $data = array( 'id' => $id, 'code' => $this->input->get('code', true) ); $this->load->view('signup/activation', $data); }
And call the url in …
Jump to PostThe first argument of the
anchor()
function can accept an array or a string, so:$segments = array( 'product', 'id', '1', '?version=12&name=mydoc' ); # with array echo anchor($segments, 'click me'); # with string echo anchor('/product/id/1?version=12&name=mydoc', 'click me');
the difference between the two is that the …
All 7 Replies
gabrielcastillo
40
Web Developer
iamthwee
cereal
1,524
Nearly a Senior Poster
Featured Poster
iamthwee
commented:
spot on
+14
gabrielcastillo
40
Web Developer
iamthwee
commented:
ty
+14
iamthwee
cereal
1,524
Nearly a Senior Poster
Featured Poster
iamthwee
commented:
comprehensive answer
+0
iamthwee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.