Coder Social home page Coder Social logo

Class 'Config\App' not found about codeigniter4 HOT 10 CLOSED

exbit avatar exbit commented on September 2, 2024
Class 'Config\App' not found

from codeigniter4.

Comments (10)

benedmunds avatar benedmunds commented on September 2, 2024

v3 is not functional yet. Please use v2.

from codeigniter4.

exbit avatar exbit commented on September 2, 2024

Which version is it?

from codeigniter4.

benedmunds avatar benedmunds commented on September 2, 2024

ha my bad, I replied to the wrong project

from codeigniter4.

lonnieezell avatar lonnieezell commented on September 2, 2024

First - you realize this hasn't been released, yet, right? Which means I can't support it a whole lot right now. :)

Additional details are always helpful, though:

  • how fresh is the code you're trying to install?
  • What OS are you running?
  • Have you tried debugging it at all yourself and, if so, what did you find?

from codeigniter4.

exbit avatar exbit commented on September 2, 2024

latest revision - 852d49f
W10-x64+php-7.0.4RC1-Win32-VC14-x64+httpd-2.4.18-win64-VC14
if before
$config = new \Config\App();
add
require_once APPPATH.'Config/App.php';
is displayed
404 - File Not Found
Sorry! Cannot seem to find the page you were looking for.

from codeigniter4.

sv3tli0 avatar sv3tli0 commented on September 2, 2024

Interesting why there is a namespace "Config" and with that classes as Config/App ..
It should be Appnamespace/Config/App.

Those configurations are part of the application and I don't see what point may exist of having them under different namespace ?

One big minus will be if there exists and is used some namespace which is really common word as "Config" . I have met a few times problems related to same namespaces usage in a project and required library loaded with Composer..

How ever.. this is a build in progress so there is no big point of such discussions 👍

from codeigniter4.

lonnieezell avatar lonnieezell commented on September 2, 2024

@exbit - The autoloader should take care of finding that file for you. Strange that it's not, though I haven't run any tests on Windows yet, as I'm on a Mac. I guess it's finally time to upgrade Parallels so I can run some tests on Windows. :) Any chance you can step through the code with XDebug and see why it's not finding it in the autoloader until I have time to get a working Windows rig setup here again?

@sv3tli0 There is the possibility of a namespace collision, using something simple like Config, true, although I don't know that I've ever seen that one show up. It was done to make it possible to change the App namespace and yet still allow system to know how to find the config files. Seems I tried using the constant and didn't have any luck in system files, but will have to investigate again.

from codeigniter4.

lonnieezell avatar lonnieezell commented on September 2, 2024

@exbit - did you find a solution for this other than simply requiring the file explicitly? I've finally got a setup up and running where I can start to explore it on Windows. Need to get xdebug installed and step through the code, but I'm out of time for today.

from codeigniter4.

exbit avatar exbit commented on September 2, 2024

While no solution found, Timeline: Bootstrap
Routing Timer
Controller Timer
Controller Constructor
View: welcome_message.php - not to goes

index.php
require './vendor/autoload.php';

CodeIgniter.php
require APPPATH.'Config/App.php';
require APPPATH.'Config/Logger.php';

I think the problem is in the paths to the files

from codeigniter4.

lonnieezell avatar lonnieezell commented on September 2, 2024

I believe I found it. Filename sanitizer in Autoloader was doing too good of a job.

from codeigniter4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.