First of all sorry if the question has been already posted, but I didn't got any ans ...
My question is .. Developing a app in codeigniter.
I am making a link like this
echo site_url('controller_name/book/'.$variable_name);
Which will display the details of a book . I would likes to make a URL like follows
http://www.sitename/book/book_name ( name of the book )
please help me how to do this ?
Thanks
Look at url_title() .
You can use this to set a SEO friendly URL. If you want underscores, don't forget to pass the second parameter.
$url_title = url_title($title, 'underscore');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.