Welcome Guest, Not a member yet? Register   Sign In
load section folder like config folder
#1

hii how can i load section folder like config folder
the folder and file is like this images in link
https://ibb.co/rFDMctR
so i want like call the some helper ex : section('some')->section like in build in config helper from codeigniter config('App')->indexPage
Reply
#2

The namespace should be App\Sections.

PHP Code:
use CodeIgniter\Config\Factories;

$sections Factories::sections('some_sections')->sections
Reply
#3

(Yesterday, 05:51 PM)kenjis Wrote: The namespace should be App\Sections.

PHP Code:
use CodeIgniter\Config\Factories;

$sections Factories::sections('some_sections')->sections

thanks you it's work
Reply




Theme © iAndrew 2016 - Forum software by © MyBB