Skip to content

NickLikesPHP/CodeIgniter4-Plus-Bootstrap-Starter-Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Getting Started

Follow the instructions below on how to add the starter files to your CodeIgniter 4 project.

Environment File

Add the following variables .env file.

WEBSITE_NAME = 'My Website'
WEBSITE_NAME_SEPARATOR = '—'
WEBSITE_NAME_POSITION = 'L'

Autoloading html_title Helper

Add html_title to your Config/Autoload.php to the $helpers array.

public $helpers = ['html_title'];

The Rest Of It

Copy the file into your app and public folders into the respective directorys.

Extra - View Example

public function index(): string {
	$data = [
		'title' => 'Home',
		'title_options' => [
			'website_name' => 'Website Name',
			'seperator' => '||',
			'website_name_position' => 'R'
		]
	];
	return view('basic-page-template-1', $data);
}

About

Quickly get started with CodeIgniter 4 and Bootstrap.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published