Apache not loading view inside another view of codeigniter

Mubeen Ali

I wrote a codeigniter app and deployed in apache. after checking in browser, single view controllers are loading very fine. but i made all css headers and some session management codes into one php file named header.php. So i had to call this php view in every other views. But, browser shows

Unable to load the requested file: Header/header.php

i wrote this line in my all views to call header view <?php $this->load->view('Header/header.php'); ?>. Any help would be appreciated.

Mubeen Ali

I finally found solution. When running CI app in localhost, it is not that case sensitive. actually i tested it in windows. Windows is not much case sensitive in directory names. But, when CI app deployed in apache ubuntu it becomes more case sensitive. Inside every module, CI models, controllers, views folder names should be in lowercase. In my case, views folder of Header module was Uppercase.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

CodeIgniter - Loading View inside subfolder with Id

CodeIgniter - Loading a view from another function in the controller

Loading different views inside another view?

Issue loading data via controller/view placed inside another view

Center view inside another view

Codeigniter View is loading view two times

Loading destination anchor view - codeigniter

Loading a View Controller inside a View In Xcode

Loading a ViewController inside a Container View

How to send view data to another view in codeigniter?

codeigniter redirect to another directory view

How to move a view inside another view in storyboard

How to get the frame of a view inside another view?

How to create View inside another view with SwiftUI?

codeigniter issue with loading view from controller

(CodeIgniter) What is the proper way of loading model into view

getting strange character while loading view in codeigniter

View in codeigniter loading plain html tags

How to add loading bar to the adapter class where the view is inside another activity

How to return another view with its own url after login instead of loading inside same login page? MVC

CodeIgniter - Loading an application package prevents loading of view and dealing with collisions

CodeIgniter 4 - How to display Flashdata inside a View?

CodeIgniter get view tables of another database

how call another php file to Codeigniter view

Unable to include variables in a view that was defined in another view in codeigniter

passing array from view using ajax to another view codeigniter

Include a view with a variable inside another view (Laravel's 5.6 - Blade)

How do I display a View inside another View

How to center a view inside another view in React Native?