• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does the controller name support hump to underline?

#1
Tongue 
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
Reply

#2
No, it doesn't do any auto-magic conversion between the two naming types.
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
Reply

#3
(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?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.