Welcome Guest, Not a member yet? Register   Sign In
Photo LeekCMS - A Full-featured CMS built with CodeIgniter 4
Posted by: devcodewithai - 05-28-2025, 09:37 PM - No Replies

Hello CI4 Community,
I'd like to introduce a project I've been developing called LeekCMS. It's a fully-featured CMS built from the ground up using CodeIgniter 4, designed specifically for managing and monetizing digital content.

Quote:Goal: To create a CMS that is lightweight, fast, and ready-to-use out of the box for creators selling digital content such as videos, photo galleries, or paid memberships.

? Core Technologies:
  • Framework: CodeIgniter 4 (no 3rd-party CMS base)
  • Database: MySQL
  • Cloud Storage: Amazon S3-compatible
  • Dashboard: Built-in from scratch (no external themes/plugins)

? Key Features:
  • User management with Member Levels
  • Point-based and Subscription-based monetization
  • Full support for Video & Gallery content with Pay-per-view option
  • S3 integration with automatic thumbnail & folder scan for image galleries
  • Auto-generated Pricing & Activation Pages based on Member Levels
  • Activation Code System for points or member upgrades (independent from payment gateways)
  • Built-in Ads Module
  • Custom CSP Header Management via Admin Panel
  • Multi-language support (coming soon)
  • Admin dashboard 100% custom built with a simple, clean UI
  • Email settings, Analytics & Tracking, Site customization all within GUI

? A note from the developer:
This project is solo-developed by me, and while most of the core logic is complete, I'm currently looking for contributors or suggestions — especially help with building the multi-language module.
Many advanced features were created with end-user simplicity in mind, and I would love to bring this to a broader CI4 audience.
Quote:? The first GitHub version will be shared privately to early interested users. It will be made public 2 weeks later.
? Register your interest via Email: [email protected]

?️ Screenshots:

[Image: LeekCMS.jpg]
  • Dashboard
  • Member Levels
  • Video Management
  • Gallery Management
  • Page Builder
  • Settings (Email, Ads, Analytics, S3)

? Future Plan:
  • Open-source under MIT License (with optional paid Pro version)
  • SaaS cloud version: deploy-on-click, integrated domain + hosting (for creators to launch instantly)
  • Pro version includes direct Payment Gateway integrations (PayPal, Stripe, etc.)
  • Community Plugin System
  • Install wizard (
    Code:
    install.php
    ) for easy deployment
  • Improved Multi-language system with GUI text manager
  • Admin theming system (dark/light/custom themes)
  • Potential integration into CI4 official Showcase or community team

? Want to explore or contribute?
  • GitHub link: (Coming soon)
  • Live demo: (Coming soon )
I'm opening this topic to gather feedback, suggestions, or even contributors.
If LeekCMS is considered helpful, I'd be honored to see it listed in CI4's official showcase. ?
Thanks for reading!
Best,
Trí


Exclamation Error in Model class "must implements abstract method idValue" after up to V 4.6.1
Posted by: Seva - 05-28-2025, 01:56 AM - No Replies

Updated the application to version 4.6.1 via composer. As a result, such an error in the classes BaseModel and Model.
Replaced the class BaseModel code from https://github.com/codeigniter4/CodeIgni...eModel.php
And now everything works.
On github in BaseModel class the method is called getIdValue, not idValue.


  No web server configuration
Posted by: Franky 5831 - 05-27-2025, 07:04 AM - Replies (5)

Hello, I was wondering why there were no webserver configs,
a simple .htaccess config for apache would be really usefull.


  Configuring the Database Connection in CodeIgniter 4
Posted by: Witimpat - 05-27-2025, 02:25 AM - No Replies

Hi all,
After installing CodeIgniter 4, the next important step is setting up your database connection. Here’s how you do it:

  • Open
    Code:
    app/Config/Database.php
    file.
  • Update the
    Code:
    $default
    group settings with your database credentials (hostname, username, password, database name).
  • Make sure the database driver matches your DBMS (e.g., MySQLi for MySQL).
  • Save the file and test your connection by running a simple model query.
If you want to use environment variables for better security, CodeIgniter supports that too! Just edit the
Code:
.env
file at the root and set your DB credentials there.
Let me know if you want me to share sample code snippets or troubleshoot errors.
Cheers!


  How to Install CodeIgniter 4 on Local Machine – Step-by-Step Guide
Posted by: Witimpat - 05-27-2025, 02:23 AM - No Replies

Hello everyone,
I’m new to CodeIgniter and wanted to share a simple step-by-step guide for installing CodeIgniter 4 on your local machine. It’s pretty straightforward:

  1. Download the latest CodeIgniter 4 release from the official site.
  2. Extract the files to your local web server’s root directory (like
    Code:
    htdocs
    for XAMPP).
  3. Make sure you have PHP 7.3 or higher installed.
  4. Open your terminal, navigate to the project folder, and run
    Code:
    php spark serve
    to start the built-in development server.
  5. Open your browser and go to
    Code:
    http://localhost:8080
    to see the welcome page
    If anyone encounters issues with permissions or PHP extensions, feel free to ask here!
Happy coding!


  Codigniter 4.6.1 not loading config files based on environment
Posted by: chenzen - 05-25-2025, 10:34 PM - Replies (16)

I have an environment, apart from development and production, called "sandbox", and I have created "Config/sanbox/Apx.php". Am able to access values in the "Config/Apx.php" but unable to Access values in the Config/sandbox/Apx.php, even when I set the environment to sandbox. I have also created Boot/sandbox.php. The environment loads correctly, but codeigniter does not load the sanbox configuration. Any help ? I need to have the sandbox configuration for the custom configuration.
Thanks
<?php namespace Config\sandbox;

use CodeIgniter\Config\BaseConfig;

class Apx extends BaseConfig
{
    public string $logo_url = 'img/sanbox_logo.png'
;

}


  PHP, the Dark Horse No One Saw Coming In PHP AI Agents development
Posted by: php_rocs - 05-25-2025, 08:18 PM - Replies (1)

Interesting read (DEV.TO): https://dev.to/inspector/php-the-dark-ho...opment-o88


  How to Use CodeIgniter Global Functions (e.g., helper(), model()) Inside Custom "Mana
Posted by: massimiliano1.mancini - 05-23-2025, 10:15 AM - Replies (12)

Hi everyone,
I'm working on a project where I'm using an MVCM (Model-View-Controller-Manager) pattern. Here's how I’ve structured it:

  • Model: Represents the database table.
  • Entity: Represents a single row of the table.
  • Manager: Contains the business logic that coordinates between models and entities.
  • Controller: Talks to the Manager, which then handles the lower-level details.
I've created a Managers directory inside app/ , and I intend for my controllers to interact only with Managers — not directly with Models or Entities.
The issue: inside the Manager classes, I’m unable to use common global functions like helper(), model(), etc., that work seamlessly in Controllers.

Question:
Is there a way to make these global CodeIgniter functions available inside my custom Managers classes, just like they are in Controllers?

Thanks in advance!


  Is CodeIgniter right for me?
Posted by: Adriano55 - 05-23-2025, 08:39 AM - Replies (2)

Hi there,
Greetings to all as this is my first post.
I am a complete novice at this business of frameworks.
I would like to start learning and using CodeIgniter as I have read many positive reviews about it.
Though I have developed applications using php but none have utilised the MVC principles.
I have tried to learn programming by myself using examples and snippets of codes, and always try to adhere to best practice.
I would appreciate if seasoned CI developers answer a very fundamental question for me:
The question is about re-using libraries, classes, functions, etc., in a modular framework environment.
[which I suppose could be applicable to all PHP frameworks, not necessarily to CI]
Let's say that you are developing a project that needs a good search function in it.
Now you come across an open-source application and/or you have purchased an application that has got that 'desirable' search facility built in it.
Can I re-use that in my project? 

Thank you in advance for any helpful suggestion and/or advice.


  CI Shield setup: can't connect to database
Posted by: SpingMan - 05-23-2025, 12:38 AM - Replies (5)

I've run into a problem that is driving me nuts. I installed CI4.6.1 and everything went as expected. I need an authentication system, so I turned to CI Shield. Followed the docs and installation seemed to run smoothly. And that's when things went south: ran the setup through spark - everything worked until the last step and this got thrown at me:

Code:
Running all new migrations...
[CodeIgniter\Database\Exceptions\DatabaseException]
Unable to connect to the database.
Main connection [MySQLi]: No such file or directory
at SYSTEMPATH/Database/BaseConnection.php:467
I double checked my database config and everything seemed to be fine:

Code:
public local -> array (20) [
        'DSN' => string (0) ""
        'hostname' => string (9) "localhost"
        'username' => string (4) "root"
        'password' => string (4) "root"
        'database' => string (10) "benzaiten2"
        'DBDriver' => string (6) "MySQLi"
        'DBPrefix' => string (0) ""
        'pConnect' => boolean false
        'DBDebug' => boolean true
        'charset' => string (7) "utf8mb4"
        'DBCollat' => string (18) "utf8mb4_general_ci"
        'swapPre' => string (0) ""
        'encrypt' => boolean false
        'compress' => boolean false
        'strictOn' => boolean false
        'failover' => array (0) []
        'port' => integer 8889
        'numberNative' => boolean false
        'foundRows' => boolean false
        'dateFormat' => array (3) [
            'date' => string (5) "Y-m-d"
            'datetime' => string (11) "Y-m-d H:i:s"
            'time' => string (5) "H:i:s"
        ]

    ]
I changed "localhost" to "127.0.0.1",  just as a test and tried running the migration again, and got the same result. I checked the connection with both the CLI and a PHP script and had no issues.
I'm using MAMP as my development enviroment, and it's running PHP8.3.9 and MySQL8.0.35.
Any suggestions or pointers in the right direction would be greatly appreciated.


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
Block IP addresses of bad...
by sevmusic
1 hour ago
Validation does not appea...
by Tokioshy
2 hours ago
The Hidden Cost of “Innov...
by LordKaos
Yesterday, 06:33 PM
Best Way to Implement Aff...
by InsiteFX
06-28-2025, 09:35 PM
Unable to scroll left nav...
by Crenel
06-28-2025, 07:58 PM
After GIT Clone: Call to ...
by paulbalandan
06-28-2025, 02:49 AM
I want to install the CI ...
by InsiteFX
06-27-2025, 03:12 AM
HTML6 and CSS5: What's ne...
by HarryKDowns
06-26-2025, 09:08 PM
Installation & Setup on W...
by mohamedtg
06-26-2025, 04:18 AM
Server Push/preloading?
by sanjay210
06-25-2025, 09:38 PM

Forum Statistics
» Members: 154,149
» Latest member: 8kbet79kcomm
» Forum threads: 78,433
» Forum posts: 379,684

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB