Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Codeigniter with Apache on alpine linux
    primarykey
    data
    text
    <p>i have written a small codeigniter test app that is currently running on my windows box. i created a linux vm and have tried to install the app on this new virtual server. some of my web app is running properly but other parts, no. specifically, this works: </p> <pre><code> http://123.123.123.123/myapp/controller1/ </code></pre> <p>but this does not: </p> <pre><code> http://123.123.123.123/myapp/controller2/mymethod/1/2/3 </code></pre> <p>It fails with an error that it can't load controller2_model.</p> <p>Here's the actual code for the controller that is failing (it's really called xferLogger vs. controller2):</p> <pre><code> class xferLogger extends CI_Controller { public function __construct() { parent::__construct(); echo(2); $this-&gt;load-&gt;model('xferLogger_model'); $this-&gt;load-&gt;helper('date'); //this library is needed for the base_url() method that is being called in the view "result.php" $this-&gt;load-&gt;helper('url'); } </code></pre> <p>and here's the model: </p> <pre><code>class xferLogger_model extends CI_Model { public function __construct() { $this-&gt;load-&gt;database(); } </code></pre> <p>The full error message is: An error was encountered. Unable to locate the model you have specified: xferlogger_model.</p> <p>Here's something I noticed. in the error message, you'll notice that the "L" in logger is lowercase. but in my code, it's a capital L. I've checked in my controller, the model itself, and also the routes.php file. I can't seem to find any problems with my casing.</p> <p>??</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload