Is my library function from common file a good practice ? |
I created this library function in app/Common.php because i want to call easier my libraries but i don't know if this function is a good practice for codeigniter 4. Please tell me if this function is a good practice.
app/Common.php PHP Code: if ( !function_exists('library') ) { app/Controllers/Home.php PHP Code: <?php namespace App\Controllers; app/Libraries/ShopLibrary.php PHP Code: <?php namespace App\Libraries; |
Messages In This Thread |
Is my library function from common file a good practice ? - by cvlancvlan - 06-30-2020, 01:22 PM
RE: Is my library function from common file a good practice ? - by ivantcholakov - 06-30-2020, 04:13 PM
RE: Is my library function from common file a good practice ? - by cvlancvlan - 06-30-2020, 11:36 PM
RE: Is my library function from common file a good practice ? - by ivantcholakov - 07-01-2020, 03:16 PM
RE: Is my library function from common file a good practice ? - by cvlancvlan - 07-02-2020, 01:31 AM
|