url_title not set to lowercase by default - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: url_title not set to lowercase by default (/showthread.php?tid=76192) |
url_title not set to lowercase by default - sevmusic - 04-20-2020 On this page: https://codeigniter.com/user_guide/tutorial/create_news_items.html it reads: "This contains a new function url_title(). This function - provided by the URL helper - strips down the string you pass it, replacing all spaces by dashes (-) and makes sure everything is in lowercase characters." But looking at the function: PHP Code: function url_title(string $str, string $separator = '-', bool $lowercase = false): string { ... } the lowercase argument is set to false. Is this intentional? RE: url_title not set to lowercase by default - InsiteFX - 04-21-2020 Yes, It is allowing you to set the character case. Default is to leave it alone. RE: url_title not set to lowercase by default - jreklund - 04-21-2020 Hi, thanks for pointing that out, the code example dosen't match description. I must have missed that the last time I updated that part of the userguide. Will fix it ASAP. RE: url_title not set to lowercase by default - sevmusic - 04-21-2020 (04-21-2020, 03:17 AM)jreklund Wrote: Hi, thanks for pointing that out, the code example dosen't match description. Glad to help. |