php - How to pass value to popup window using codeigniter? -


i know can use anchor_popup() open new window in codeigniter, cant figure out how pass values using that.

here code using,

$attr = array('width'=>'800','height'=>'700'); echo anchor_popup('friends/'.$uid.'/'.$suid.'','add friend',$attr);  

now popup window links friends/34/34 friends controller , rest values want give controller. iam getting error 404,

404 page not found page requested not found. using uri segment grab values.

could tell me doing wrong?

the link friends/34/34/ looking controller called "friends" , method called "34", hence why can't found.

if friends controller has no other methods, change link this:

echo anchor_popup('friends/index/'.$uid.'/'.$suid,'add friend',$attr);

else, add appropriate method.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -