Giter Club home page Giter Club logo

codeigniter4-hmvc's People

Contributors

cijagani avatar mufidjamaluddin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter4-hmvc's Issues

The application environment is not set correctly.

When I updated composer, suddenly an error like this appeared

Warning: Use of undefined constant ENVIRONMENT - assumed 'ENVIRONMENT' (this wil
l throw an Error in a future version of PHP) in C:\laragon\www\ltrtrs\vendor\cod
eigniter4\framework\system\CodeIgniter.php on line 583

Warning: Cannot modify header information - headers already sent by (output star
ted at C:\laragon\www\ltrtrs\vendor\codeigniter4\framework\system\CodeIgniter.ph
p:583) in C:\laragon\www\ltrtrs\vendor\codeigniter4\framework\system\CodeIgniter
.php on line 587
Screenshot 2023-09-10 232743

vendor/codeigniter4 ... failed to open stream

I am error following:
Warning: require(C:\xampp\htdocs\study\codeigniter\4hmvc\app\Config/../../vendor/codeigniter4/framework/system/bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\study\codeigniter\4hmvc\public\index.php on line 36

I do not see folder: "vendor/codeigniter4....". How do I get there ?

Thanks & Regards

Your codes can be upgrade to 4.5.4

My PHP version 8.3.10

These are the steps i done

composer create-project mufidjamaluddin/codeigniter4-hmvc ci4-hmvc

cd ci4-hmvc
copy folder Config from ci4 latest 4.5.4 overwrite

copy index and spark

cp vendor/codeigniter4/framework/public/index.php public/index.php
cp vendor/codeigniter4/framework/spark spark

copy env to .env
edit .env uncomment
app.baseURL = 'http://ci4-hmvc.test/'

Config/Routes.php tambah ini

/**


  • HMVC Routing

*/

foreach(glob(APPPATH . 'Modules/*', GLOB_ONLYDIR) as $item_dir)
{
if (file_exists($item_dir . '/Config/Routes.php'))
{
require_once($item_dir . '/Config/Routes.php');
}
}

Config/Routing.php comment dan tukar

/**
* For Defined Routes and Auto Routing.
* The default namespace to use for Controllers when no other
* namespace has been specified.
*
* Default: 'App\Controllers'
*/
//public string $defaultNamespace = 'App\Controllers';
public string $defaultNamespace = 'App\Modules\Land\Controllers';

//nota - working
php spark list
php spark app:info
php spark env

Create Module - working

php spark module:create User

Browse to...
http://ci4-hmvc.test/user

ERROR!

syntax error, unexpected token \

Fatal error: Uncaught Error: Call to undefined method CodeIgniter\Debug\ExceptionHandler::cleanPath() in E:\laragon-6.0.0\www\ci4-hmvc\app\Views\errors\html\error_exception.php:33 Stack trace: #0 E:\laragon-6.0.0\www\ci4-hmvc\vendor\codeigniter4\framework\system\Debug\BaseExceptionHandler.php(266): include() #1 E:\laragon-6.0.0\www\ci4-hmvc\vendor\codeigniter4\framework\system\Debug\BaseExceptionHandler.php(269): CodeIgniter\Debug\BaseExceptionHandler->CodeIgniter\Debug{closure}() #2 E:\laragon-6.0.0\www\ci4-hmvc\vendor\codeigniter4\framework\system\Debug\ExceptionHandler.php(114): CodeIgniter\Debug\BaseExceptionHandler->render(Object(ParseError), 500, 'E:\laragon-6.0....') #3 E:\laragon-6.0.0\www\ci4-hmvc\vendor\codeigniter4\framework\system\Debug\Exceptions.php(163): CodeIgniter\Debug\ExceptionHandler->handle(Object(ParseError), Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response), 500, 1) #4 [internal function]: CodeIgniter\Debug\Exceptions->exceptionHandler(Object(ParseError)) #5 {main} thrown in E:\laragon-6.0.0\www\ci4-hmvc\app\Views\errors\html\error_exception.php on line 33

Please help me to fix this. Thanks!

Failed load vendor ...

Warning: require(C:\xampp\htdocs\study\codeigniter\4hmvc\app\Config/../../vendor/codeigniter4/framework/system/bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\study\codeigniter\4hmvc\public\index.php on line 36

Redirecting page to Home

Every time I try to add module and try to access the route, it always redirect me to the Home page. please enlighten me in the issue, thanks

Error adding new module

Hi, i added a new module Login and modifit Routes.php to set default controller; then I added a new module Modulos from command line also update like the indications. But when I use http://localhost:8080/Modulos/index the result is 404 error like this Controller or its method is not found: \App\Modules\Login\Controllers\Modulos::index. I also use the function: return redirect()->to('/Modulos/index'); and is the same error. Whast can I do??? Thanks

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.