CodeIgniter Forums
Does the controller name support hump to underline? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Does the controller name support hump to underline? (/showthread.php?tid=69225)



Does the controller name support hump to underline? - miaojun - 10-21-2017

Does the controller name support hump to underline?

like this:


Code:
class data extends CommonController {

    public function getData()    {
        return view('get_data');
    }
}

url like this:

Code:
http://www.test.com/data/get_data



RE: Does the controller name support hump to underline? - kilishan - 10-22-2017

No, it doesn't do any auto-magic conversion between the two naming types.


RE: Does the controller name support hump to underline? - enlivenapp - 10-22-2017

(10-22-2017, 02:42 PM)kilishan Wrote: No, it doesn't do any auto-magic conversion between the two naming types.

A quick, probably silly question, And slightly off topic, But I'm going to ask it before someone else does. 

In his example above the URL would be?

Code:
http://www.test.com/commoncontroller/getdata/...

I.E.: all lowercase as is normal?