Git Product home page Git Product logo

ci4-starterpanel's Introduction

Hello World! ๐Ÿ‘‹ Iโ€™m @gheav

ci4-starterpanel's People

Contributors

abdus-sakur avatar gheav avatar prasseptrio 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ci4-starterpanel's Issues

an issue with php8.2

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
Capture erreur php8 2

I'm using wampserver v3.3.0 with php7.4, 8.0, 8.1, 8.2 and mysql8.0.32

readme.md

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

installiation problem

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

session Flashdata no work

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


get('notif_error'); $session->remove('notif_error'); ?>

that works well
bye
Gabriel
2023/07/4 UPDATE
To keep Flashdata mode update the login method
FIX
return redirect()->to(base_url());
replace with
return redirect()->to(base_url('login'));
modify in two places, reason: two simultaneous redirects, empty the Flashdata especially in CI4_modular module mode

Table 'adminci4.user_submenu_category' doesn't exist

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.

Suggested enhancement to the ci4_admin_panel source by byoosdigital.com

hello dev's
config: PHP 8.2 - CI4.3.1 - debian 11.6

correctifs byoosdigital.com

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

error exeption

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>

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.