gheav / ci4-starterpanel Goto Github PK
View Code? Open in Web Editor NEWStarter application admin panel template using CodeIgniter 4 and Bootstrap Framework with login and user menu management
License: MIT License
Starter application admin panel template using CodeIgniter 4 and Bootstrap Framework with login and user menu management
License: MIT License
Hello guys ! need help I got an issue when i change my php version from 8.0 to 8.2, in the developper admin dashboard when i click at the "CRUD generator" menu ci4 raises this exception :
Steps to reproduce the behavior : "ErrorException
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated"
"APPPATH\Views\developers\crudGenerator.php at line 98".
things work well in php8.0 but the issue come when i move to php8.2
I'm using wampserver v3.3.0 with php7.4, 8.0, 8.1, 8.2 and mysql8.0.32
hello dev's
this line is not good - Run php spark db:seed users
to seeding default database user
Replace to - Run php spark db:seed Users
to seeding default database user
IN /root/app/Views/deveopeurs/crudGenerator.php
$functionName = str_replace(' ', '', ucwords(strtolower(str_replace('_', ' ', $tableName))));
issue
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
cordialement
follow this link for test http://byoosdigital.xyz
login [email protected]
pass 12345678
i get error when try
php spark db:create
Fatal error: Uncaught Error: Undefined constant "CodeIgniter\ENVIRONMENT" in C:\laragon\www\deals\vendor\codeigniter4\framework\system\CodeIgniter.php:595
Stack trace:
#0 C:\laragon\www\deals\vendor\codeigniter4\framework\system\CodeIgniter.php(207): CodeIgniter\CodeIgniter->bootstrapEnvironment()
#1 C:\laragon\www\deals\spark(83): CodeIgniter\CodeIgniter->initialize()
#2 {main}
thrown in C:\laragon\www\deals\vendor\codeigniter4\framework\system\CodeIgniter.php on line 595
I detected a problem with flashdata sessions not working!!!
in the alert.php view the session key is NULL
FIX at the beginning of the script add
$session = session();
IN controllers
replace session()->getFlashdata(...
by session()->set(...
IN view alert.php replace session()->getFlashdata(...
by $session->get(...
then after the message is displayed, erase the key
First, thanks for this clever starter panel. Easy and very usefull.
Btw, i updated CI4 up to ver. 4.2.3 with composer and it's working fine.
Error when creting a submenu. It seems that table user_submenu_category is not inside seeds folder.
hello dev's
config: PHP 8.2 - CI4.3.1 - debian 11.6
IN /root/app/Config/Exceptions.php
// byoosdigital.com
public $sensitiveDataInTrace;
public $logDeprecations;
public $deprecationLogLevel;
IN /root/app/Controllers/BaseController.php
// byoosdigital.com
protected $session;
protected $segment;
protected $db;
protected $validation;
protected $encrypter;
protected $menuModel;
IN /root/app/Controllers/Welcome.php
FILTER_SANITIZE_STRING is deprecated, what to use instead?
htmlspecialchars($this->request->getVar('inputEmail', FILTER_UNSAFE_RAW));
IN /root/App/Filters/Authorization.php
Creation of dynamic property App\Filters\Authorization::$userModel is deprecated
class Authorization implements FilterInterface
{
// byoosdigital.com
protected $userModel;
protected $menuModel;
IN /root/App/Filters/CRUDGenerator.php
class CRUDGenerator extends BaseController
{
// byoosdigital.com
protected $developerModel;
AND
IN /root/app/Databnase/Migrations/2021-05-20-124435_Session.php
replace $this->forge->addKey('ip_address', true);
to
$this->forge->addKey('timestamp', true);
best regards
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
<div class="col-12 col-lg-8 col-xxl-8 d-flex"> 92 <div class="card border flex-fill"> 93 <div class="card-header mb-0"> 94 <h5 class="card-title "> Source Code </h5> 95 </div> 96 <div class="card-body"> 97 <?php 98 $functionName = str_replace(' ', '', ucwords(strtolower(str_replace('_', ' ', $tableName)))); 99 $modelName = str_replace(' ', '', ucwords(strtolower(str_replace('_', ' ', $menu)))); 100 $title = ucwords(strtolower(str_replace('_', ' ', $menu))); 101 102 ?> 103 104 <?php if ($file == 'controller') : ?> 105 <h5 class="fw-bold"> Constructor</h5>
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.