I do not use "php spark serve" command every time. Is it possible to us that without cmd command? I searched and found something. They are saying that move files from public directory to htdocs and change
$pathsConfig = FCPATH . '../app/Config/Paths.php';
to
$pathsConfig = FCPATH . 'app/Config/Paths.php';
but it does not work. By the way, my main location is htdocs/cms. And I changed base url in App.php like this
public $baseURL = 'http://localhost:8080/cms/';
and .env like this
app.baseURL = 'http://localhost:8080/cms/'
CodePudding user response:
Unfortunately, you can't run CodeIgniter 4 without php spark serve
. CodeIgniter 4 comes with a local development server, leveraging PHP’s built-in web server with CodeIgniter routing (
- Open your favourite web browser and search
http://local.cms