Hostma – Codeigniter Modern Web Hosting Template

Dashboard
Welcome to Hostma – Codeigniter Modern Web Hosting Template
  • Created Date : 06/April/2023
  • Author : Spruko
  • Company : Spruko Technologies Private Limited

Thank you for showing interest towards our admin template. Feel free to contact us any time. We have a dedicated team to provide you the best support. If you want any queries open support ticket https://support.spruko.com/.

Introduction
Welcome to Hostma – Codeigniter Modern Web Hosting Template

Hostma - Codeigniter Modern Web Hosting Template, With these template formats, it's very easy to create a presence and grab someone's attention around the web page Because the template is built using PHP, CSS3, Bootstrap 5 framework and with Sass. So please before you start working with the template take a quick look on the documentation so that you can easily built your website.

If You Love Our Template Design Please don't forgot to rate it. Thank you so much! 😊

Template Description

Hostma Codeigniter is a Modern Web Hosting Template using modern and minimal design. It is fully flexible user-friendly and responsive. Hostma Codeigniter Modern template is powered with PHP, SASS, & Bootstrap 5 which looks great on Desktops, Tablets, and Mobile Devices. This Template Includes 40+ PHP Pages . No Need to do hard work for this template customization. We already designed it and you can easily design your website just how you like it. This template using Bootstrap 5 framework. After Purchased this template you will get All PHP Files, CSS, SCSS and JS Files.

It has super clean flat user interface admin Backend design, easy customizable components and widgets.The Template comes with a awesome unique design also we ensure you can easily design template.

It is a fully responsive layout for all type of devices. Works on all major web browsers, Desktop, iPhone, iPad, Tablet and all other smart phone devices

Once you Purchase Hostma Codeigniter is a Modern Web Hosting Template, you will be able to get free download of all future updates.

Theme Features :

Light Theme

Dark Theme

LTR Version

RTL Version

Fullwidth & Boxed

Template Features
Dark Theme Ready RTL Version Boxed Layout
40+ PHP Pages Easy to Customize Bootstrap 5 Responsive Framework
24 * 7 Professional Company Support Error Page Under Construction Page
Color Theme Support (Primary and Background) Neat, clean and simple design W3C Validated
Installation Process of Composer

Note: The clear documentation of PDF is given on How To Run Codeigniter Project In Localhost - For Beginners. Please Check out the PDF before running the project.

In order to run Codeigniter we need to install composer by the following steps

Steps to Download & Installation of Composer


Step1: Please visit the Official Web Site of the Composer www.getcomposer.org

Step2: Click on the Download option

Step3: Click on the Composer-Setup.exe you are done with download

Step4: Now Right click on the Composer-Setup.exe file and select Run as administrator click on Yes

Step5: You'll be getting two options click as per your choice

Step6: I choose Recommended option here and if your developer you can check the box of the Developer Mode

Step7: And click on the Next button please make sure of installation path and then click Next

Step8: You'll be asked to enter proxy url please skip the step and click on the Next button

Step9: Please make sure with the PHP Version it should not be less than 8.0v, here we used 8.1.12 Version and then click on the next button

Step10: To confirm that Composer is installed in your system then type Composer in command prompt (if you are using XAMPP then go to C:\xampp\htdocs location and type composer)

Installation Process Of Codeigniter

Here we are using "Composer" to download "CodeIgniter" packages

Note : This installation is shown based on XAMPP server..

Step1: Open command prompt, find the path of your XAMPP that is installed in your system.

Step2: Set your path as (Example: C:\xampp\htdocs>) in command prompt.

Step3. Now type the following command line to install the CodeIgniter Packages in your "htdocs" folder composer create-project codeigniter4/appstarter my-project and press Enter.

Step4: Now your downloading is started please wait for sometime to download all the necessary dependencies and packages.

Step5: Once you are redirected to the Token (hidden):_ path then you are sucessfully installed CodeIgniter

Step6: You can also download the CodeIgniter framework using this link https://codeigniter.com/download

// Optional: If you want to asscess your index.php file from your root directory.

Step7: Once the framework is downloaded you need to make a small changes in index.php file that is located in your public folder.

Step8: Note : If you have any further queries in installation please refer to the official websites Click here

After installation run following command to get CodeIgniter development server
"php spark serve" or "php -S localhost:8080"

Note :
Please make sure with your "public $baseURL" (Set your "public $baseURL" according to your root path)
In your root directory app/config/app.php open app.php in your editor and set the url Example: public $baseURL = 'http://localhost:8080';

Minimum Requirements

  • PHP >= 8.1.6 or Newer
  • Composer >= 2.5.4 or Newer
  • CodeIgniter >= 4.3.3 or Newer
  • *intl* Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • JSON PHP Extension
The Basic Structure Of Codeigniter Project
 
			
					β”œβ”€β”€ app
					β”œβ”€β”€ public
					β”œβ”€β”€ tests
					β”œβ”€β”€ vendor
					β”œβ”€β”€ writable
					β”œβ”€β”€ .gitignore
					β”œβ”€β”€ builds
					β”œβ”€β”€ composer.json
					β”œβ”€β”€ composer.lock
					β”œβ”€β”€ env
					β”œβ”€β”€ LICENCE
					β”œβ”€β”€ phpunit.xml.dist
					β”œβ”€β”€ preload.php
					β”œβ”€β”€ README.md
					└── spark
			
		
SCSS & CSS

Django comes with power of SCSS. The css files can be generated from scss by simply following below steps:

  • Gulp

    Gulp is a JavaScipt streaming task runner. It automate many development tasks. Using gulp you can perform tasks like running a local server, minifying code, compilation, Browser sync, optimizing images, etc... We are using gulp which allows to easily compilation of scss to css. You can read it more about it here.

Prerequisites

Please follow below steps to install and setup all prerequisites:

  • Nodejs

    Make sure to have the Node.js installed & running in your computer. If you have already installed nodejs on your computer, you can skip this step, otherwise install nodejs on your computer,

  • Gulp

    Make sure to have the Gulp installed & running in your computer. If you have already installed gulp on your computer, you can skip this step. In order to install, just run command npm install -g gulp from your terminal.

  • Gulp Variables

    After Completion of gulp Install. open gulpfile.js And install the "Declaration of gulp variables" in your command promt. In order to install, just run command
    npm install gulp,
    npm install gulp-sass,
    npm install gulp-postcss,
    npm install autoprefixer,
    npm install gulp-sourcemaps,
    npm install browser-sync,
    npm install gulp-cssbeautify
    npm install gulp-beautify from your terminal.

    Make sure to have all above prerequisites installed & running in your computer. If you want to install more variables for your template, just declare the variables in gulpfile.js after that run in command promt

Installation

To setup, follow below mentioned steps:

  • Install Prerequisites

    Make sure to have all above prerequisites installed & running in your computer

  • Install Dependencies

    Open your terminal, go to your folder and enter the command npm install. This would install all required dependencies in node_modules folder.

After you finished with above steps, you can run the command to compile scss files into css: gulp

SCSS & CSS

Here we provided package.json and gulpfile.js files in your project, you just need to run npm install in your terminal in your project root path.

After compilation of download, you can compile your SCSS files into CSS files by following below procedure.

Command Description
gulp watch In Noa template gulp watch command is used for, whatever the changes made in scss files, will watch and compiled into css files.
How to Run CodeIgniter Project in localhost

If you have installed XAMPP on your machine then please follow the below steps

Step:1 Quick view of Installations

1. Download and Install the Composer from official site https://getcomposer.org/

2. Install CodeIgniter by using Composer as mentioned in the installation process above.

Step:2 Run project

1. After installing your CodeIgniter, Open Xampp and click on the start button on the Apache server and MySQL server

2. Extract the zip file of CodeIgniter project that you received.

3. Please set your public $baseURL before going to run your project, go to /app/Config/app.php Example: public $baseURL = 'http://localhost:8080'; and set your project path in command prompt.

4. If your project is placed in Local Server, Example: C:\xampp\htdocs\myprojectfolder

5. If your project is placed in Desktop, Example: cd C:\Users\Admin\Desktop\myprojectfolder

6. Now run the command line: "php spark serve" or "php -S localhost:8080"

7. Your CodeIgniter PHP Development Server as been started (http://localhost:8080)

8. Copy the url and past it in your favorite browser

Installation Instructions For both CPANEL’S and FTP
Installation Instructions

Upload the Project that you have purchased in below directory based on your server

FTP Uploading Process
    Access FTP:
  1. Login to your FTP server using your login credentials provided by your hosting provider.
  2. Upload Project Files:
  3. Now extract the project folder that you have received, in any of your directories
  4. Now navigate to that directory using FTP panel and upload the project in Path: public_html/ directory in your FTP server .
  5. Once the uploading completes you can access your domain Example: www.example.com
cPanel Uploading Process
    Access cPanel:
  1. Login to your cPanel server using your login credentials provided by your hosting provider.
  2. Upload Project Files:
  3. Once you successfully accessed your cPanel dashboard, navigate and click on File Manager
  4. Now open public_html and click on Upload
  5. Here you can select your zipped project folder or you can simply drag and drop your zipped project folder, once the uploading is completed go back to the public_html folder
  6. In the public_html folder, you will find your zipped project folder now you need to extract that project folder
  7. Once the extraction is completed you can access your domain Example: www.example.com
Versions:
  • php:- ^8.1.12
  • composer:- ^2.5.4
  • "codeigniter/framework": "^4.3.3"
Over All Folder Structure
		
				β”œβ”€β”€ app/
				|   β”œβ”€β”€ Config
				|   |   β”œβ”€β”€ Routes.php
				|   β”œβ”€β”€ Controllers
				|   |   β”œβ”€β”€ Pages.php
				|   β”œβ”€β”€ Database
				|   β”œβ”€β”€ Filters
				|   β”œβ”€β”€ Helpers
				|   β”œβ”€β”€ Language
				|   β”œβ”€β”€ Libraries
				|   β”œβ”€β”€ Models
				|   β”œβ”€β”€ ThirdParty
				|   β”œβ”€β”€ Views
				|   |   β”œβ”€β”€ errors
				|   |   β”œβ”€β”€ layouts
				|   |   |   β”œβ”€β”€ components
				|   |   |   |   β”œβ”€β”€ accept-cookie.php
				|   |   |   |   β”œβ”€β”€ custom-scripts.php
				|   |   |   |   β”œβ”€β”€ custom-scripts2.php
				|   |   |   |   β”œβ”€β”€ custom-scripts.php
				|   |   |   |   β”œβ”€β”€ custom-styles.php
				|   |   |   |   β”œβ”€β”€ footer.php
				|   |   |   |   β”œβ”€β”€ header.php
				|   |   |   |   β”œβ”€β”€ scripts.php
				|   |   |   |   β”œβ”€β”€ sidebar.php
				|   |   |   |   β”œβ”€β”€ styles.php
				|   |   |   |   β”œβ”€β”€ switcher-icon.php
				|   |   |   |   β”œβ”€β”€ switcher-scripts.php
				|   |   |   |   β”œβ”€β”€ switcher-styles.php
				|   |   |   |   β”œβ”€β”€ switcher.php
				|   |   |   β”œβ”€β”€ custom-main.php
				|   |   |   β”œβ”€β”€ custom-main2.php
				|   |   |   β”œβ”€β”€ custom-main3.php
				|   |   |   β”œβ”€β”€ main.php
				|   |   |   β”œβ”€β”€ switcher-main.php
				|   |   β”œβ”€β”€ pages		
				|   |   |   β”œβ”€β”€ 40+ php files	
				|   β”œβ”€β”€ .htaccess
				|   β”œβ”€β”€ Common.php
				|   └── index.html
				β”œβ”€β”€ public/
				|   β”œβ”€β”€ assets/
				|   |   β”œβ”€β”€ css
				|   |   β”œβ”€β”€ icon-fonts
				|   |   β”œβ”€β”€ images
				|   |   β”œβ”€β”€ js
				|   |   β”œβ”€β”€ libs
				|   |   β”œβ”€β”€ scss
				|   β”œβ”€β”€ .htaccess
				|   β”œβ”€β”€ .favicon.ico
				|   β”œβ”€β”€ index.php
				|   β”œβ”€β”€ robots.txt
				β”œβ”€β”€ tests
				β”œβ”€β”€ vendor
				β”œβ”€β”€ writable
				β”œβ”€β”€ .env
				β”œβ”€β”€ .gitignore
				β”œβ”€β”€ .htaccess
				β”œβ”€β”€ builds
				β”œβ”€β”€ composer.json
				β”œβ”€β”€ composer.lock					
				β”œβ”€β”€ env					
				β”œβ”€β”€ gulpfile				
				β”œβ”€β”€ LICENCE				
				β”œβ”€β”€ package-lock.json
				β”œβ”€β”€ package.json
				β”œβ”€β”€ phpunit.xml.dist
				β”œβ”€β”€ preload.php
				β”œβ”€β”€ README.md
				└── spark
			
		
Switcher?

If you want to add switcher to your template follow the below process.

FAQ'S

1) How to Change Font Style ?

Step 1:

Go To _fonts.scss (public/assets/scss/style.scss )

if you want to change another font-family Go to the site Google Fonts And Select One font Family and import In to style.css file

How to Select font Family

Example:

Step 2:

And paste Your Selected font-family in _style.scss

Example:

Step 3:

And add the Your Selected font-family in _customs.scss(public/assets/scss/custom/_customs.scss)

Example:

	body {
		font-size: 1rem;
		font-family: "Hind Siliguri", sans-serif;
		font-weight: 400;
		color: #{$color};
		background-color: #{$background};
		line-height: 1.5;
		text-align: start;
		overflow-x: clip;
		padding: 0;
		margin: 0;
	}

				

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

2) How to Change Logo ?

Go To "public/assets/images/brand" folder and replace your logo with Previous Logos within in image size. note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.

3) How to change Menu Icons ?

By default menu icons are feather icons if you want to change icons please follow below steps

To change Menu icons, Go to Root Path: Views/Shared/Layouts/ and open _sidebar.cshtml, in that section you will find feather icons of menu in i tag, there you can replace previous icon with your icon. Example as shown in below

    

4) How to Enable RTL Version?

Please follow the below steps to enable RTL Version
Step 1 :

To enable RTL Version you have to open custom-switcher.js (public/assets/js/custom-switcher.js) file and remove comments for rtl as shown in below



	//RTL

		if (!localStorage.getItem("hostmartl")) {
		// html.setAttribute("dir" , "rtl") // for rtl version 
		}

				
Step 2 :
Remove the comments to enable rtl as shown below


	//RTL

		if (!localStorage.getItem("hostmartl")) {
			html.setAttribute("dir" , "rtl") // for rtl version 
		}

				

5) How to Enable Dark Theme?

Please follow the below steps to enable Dark Theme
Step 1 :

To enable Dark Theme you have to open custom-switcher.js (public/assets/js/custom-switcher.js) file and remove comments for dark-mode as shown in below



	//Dark Theme Style

		if (!localStorage.getItem("hostmadarktheme")) {
		// html.setAttribute("data-theme-mode" , "dark") // for dark theme 
		}

				
Step 2 :
Remove the comments to enable dark-mode as shown below


	//Dark Theme Style

		if (!localStorage.getItem("hostmadarktheme")) {
			html.setAttribute("data-theme-mode" , "dark") // for dark theme 
		}

				

6) How to Enable Boxed?

Please follow the below steps to enable Boxed
Step 1 :

To enable Boxed you have to open custom-switcher.js (public/assets/js/custom-switcher.js) file and remove comments for layout-boxed as shown in below


	//Boxed Style

		if (!localStorage.getItem("hostmaboxed")) {
		// html.setAttribute("data-width" , "boxed") // for boxed style
		}
				
Step 2 :
Remove the comments to enable boxed as shown below

	//Boxed Style

		if (!localStorage.getItem("hostmaboxed")) {
			html.setAttribute("data-width" , "boxed") // for boxed style
		}
				
Local Storage

How to clear LocalStorage (cookie)?

Step1:

Open custom-switcher.js file public/assets/js/custom-switcher.js

To clear LocalStorage loading functions you need to remove localStorageBackup() function in custom-switcher.js as shown below



				function localStorageBackup() {
				}

				
Step2:

To remove complete LocalStorage saving you need to remove all localstorage related calling functions in custom-switcher.js public/assets/js/custom-switcher.js files.

LocalStorage related functions like localStorage.setItem, localStorage.removeItem, localStorage.getItem, localStorage.clear. Below are the some examples to find out.


				localStorage.setItem("hostmadarktheme", true);
				localStorage.removeItem("hostmalighttheme");
				localStorage.getItem('hostmaboxed')
				localStorage.clear();
				localStorageBackup();
				
Theme Styles
Primary Color

How to Change Primary Color?

Please follow the below steps to change Primary Color
Step 1 :

To change Primary Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (public/assets/scss/_variables.scss )

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

Dark Theme Style

If you want to change Dark Theme color you need to follow the below process.

How to Change Dark body Color?

Please follow the below steps to change Dark body Color
Step 1 :

To change Dark body Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (public/assets/scss/_variables.scss )

Note : After Changing font you must run gulp command i.e, gulp watch . Refer gulp page for more gulp commands click here.

Sources
Plugins Versions URL
Bootstrap v5.2.2 https://www.npmjs.com/package/bootstrap
Choices js v7.0.0 https://www.npmjs.com/package/choices.js
Swiper js v8.4.4 https://www.npmjs.com/package/swiper
Icons References
Font Awesome https://fontawesome.com/v4.7.0/icons/
Feather Icons https://feathericons.com/
Tabler Icons https://tabler-icons.io/
Bootstrap Icons https://icons.getbootstrap.com/
Images References
Vecteezy https://www.vecteezy.com/
Iconscount https://iconscout.com/
Unsplash https://unsplash.com/
Bootstrap Icons https://icons.getbootstrap.com/
Font Used

Google fonts are used in the template. They are as follows: Google Fonts

THANK YOU!