• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI4 Modules Code not work

#15
Just think of namespaces as folders ( Directories )

app
.... Config
.... Controllers
Blaasvaer <--------- ( namespace is - Blaasvaer ) ( Your namespace should be your name or company name )
.... Config <------- ( namespace is - Blaasvaer\Config )
.... Controllers <-- ( namespace is - Blaasvaer\Controllers )

It's not hard to learn namespaces just think of them as folders.

Read this may help you to understand it better.

Complete Guide to PHP Namespaces
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
CI4 Modules Code not work - by Nome - 05-25-2018, 12:50 AM
RE: CI4 Modules Code not work - by InsiteFX - 05-27-2018, 04:47 AM
RE: CI4 Modules Code not work - by Nome - 05-28-2018, 08:35 AM
RE: CI4 Modules Code not work - by dave friend - 05-27-2018, 06:54 AM
RE: CI4 Modules Code not work - by Nome - 05-28-2018, 08:28 AM
RE: CI4 Modules Code not work - by blaasvaer - 09-02-2020, 12:28 PM
RE: CI4 Modules Code not work - by dave friend - 05-28-2018, 11:03 AM
RE: CI4 Modules Code not work - by Nome - 06-04-2018, 03:51 AM
RE: CI4 Modules Code not work - by InsiteFX - 06-04-2018, 04:23 AM
RE: CI4 Modules Code not work - by Nome - 06-04-2018, 04:40 AM
RE: CI4 Modules Code not work - by InsiteFX - 09-03-2020, 04:46 AM
RE: CI4 Modules Code not work - by blaasvaer - 09-03-2020, 04:49 AM
RE: CI4 Modules Code not work - by InsiteFX - 09-03-2020, 08:10 AM
RE: CI4 Modules Code not work - by blaasvaer - 09-03-2020, 08:18 AM
RE: CI4 Modules Code not work - by InsiteFX - 09-04-2020, 08:30 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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