mufidjamaluddin / codeigniter4-hmvc Goto Github PK
View Code? Open in Web Editor NEWCodeIgniter 4 Starter with HMVC
License: MIT License
CodeIgniter 4 Starter with HMVC
License: MIT License
Mas,
Jika ada submodul dan RBAC tiap submodul gimana maas?
Hi after i set up in i face this issue.
We seem to have hit a snag. Please try again later...
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
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
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
/**
*/
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!
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
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
after i added new module get error when php spark serve
Edit
updated
Change This
app/Config/Kint.php has been updated for Kint 5.0. You need to replace Kint\Renderer\Renderer with Kint\Renderer\AbstractRenderer and replace Renderer::SORT_FULL with AbstractRenderer::SORT_FULL.
source: https://forum.codeigniter.com/showthread.php?tid=86106
hi i'm just asking why does the view folder get separated from Modules folder i found this kinda strange since i'm just starting to learn the hmvc in code igniter 4, this is not issue sorry to post this question here
thanks you for awesome work. btw can you please add command to create module via cli
ie. php spark create module : module_name Controller_name Model_name
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.