Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace error in centos7 #959

Closed
jinmarcus opened this issue Mar 7, 2018 · 2 comments
Closed

namespace error in centos7 #959

jinmarcus opened this issue Mar 7, 2018 · 2 comments

Comments

@jinmarcus
Copy link

jinmarcus commented Mar 7, 2018

namespace error in centos7

environment: centos7 + php7

in windows is ok, but in centos7 is wrong

code is

<?php namespace App\Controllers\category;

class Product extends Controller
{
	public function index()
	{
		echo 'test';
	}
}

url is

http://www.xxxx.com/category/product

file path is

/ci4/application/Controllers/category/Product.php

result is

404 - File Not Found
HTTP.pageNotFound

@lonnieezell

@natanfelles
Copy link
Contributor

Create the file: application/Controllers/Category/Product.php

<?php namespace App\Controllers\Category;

use CodeIgniter\Controller;

class Product extends Controller
{
	public function index()
	{
		echo 'test';
	}
}

Go: http://www.xxxx.com/category/product


Please ask for support in the forum.

@jinmarcus
Copy link
Author

@natanfelles it's ok, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants