Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8128743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:01:10+00:00 2026-06-06T08:01:10+00:00

I am getting a Unable to load the requested file: default.php error in codeigniter

  • 0

I am getting a Unable to load the requested file: default.php error in codeigniter whenever i load up the website in a mobile device. It loads perfectly in desktop browser.

here is how my controller is set up,

class Welcome extends CI_Controller {

    public function index()
    {
        $this->template->set_layout('default')->build('welcome_en');
    }

}

Default is Sparks template i am using for the current template i am using for the “welcome_en” view page.

I have been trying to figure out this problem for a while now, there is no user agent detection script being used, there was before but i took it out in hopes of getting rid of the error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:01:12+00:00Added an answer on June 6, 2026 at 8:01 am

    You may need to create web and mobile folder. More info

    Instead of application/views/layouts/default.php try application/views/web/layouts/default.php and application/views/mobile/layouts/default.php.

    Same for all your other layout files, they will load the mobile version if you browse to the page with anything CodeIgniter thinks is a mobile phone (not an iPad).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting, an unable to load requested file error. Does anybody know how
I am getting this error log in my new dedicated server. PHP Startup: Unable
Getting System.IO.FileLoadException: Unable to load file or assembly when trying to bind localized resources
I am getting the error - Unable to load the metadata for assembly 'Aurora.UIResources'.
I'm getting PHP Startup: Unable to load dynamic library: c:/wamp/.../php5.3.10/php_ffmped.dll - %1 is not
Why am I getting Unable to find the requested .Net Framework Data Provider when
I am getting an error in my asp.net app that reads Unable to evaluate
I was wondering why do I keep getting an error and unable to return
I am getting this error from eway token payment API, soap:ReceiverServer was unable to
I am getting this error with my new unit test: Unable to get type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.