CodeIgniter Forums

Full Version: Success to CI4 Last Version
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I upgrade success from CI3 to CI4 last version
Happy Heart
Thanks CI team
And using success package myth/auth
Congratulations! Welcome aboard ?
What did you find was the hardest thing about making the transition?
Thanks MGatner,
With me, the hardest is not see any project have CI4 running. But after, i see source code CI4 website2 on github, yes i read code, see structure,... and i can upgrade my project to CI4, it is great
- the second, hard when not start. But when start and read code, read guide is easy

Thanks MGatner, thanks CI Teams,

Hehe my english is bad bad, sorry about that
Rewriting the project from CI 3.2 to CI 4.04 was my best decision
- CI4 is a great choice
- Thanks CI Team

If you are new to CI4, learn it, get started right away, you may have difficulty, but gradually you will understand it better and when you understand it, you will find it easier than you ever thought
I updated my manual curl with CURLRequest CI4 (
- Like it, simple
Woh, Now I see Debug Bar, i like it
CI4 is Power kaka
<!-- DEBUG-VIEW START 3 2 1 APPPATH/Config/../Views/theme/header.php -->
<!-- DEBUG-VIEW START 2 1 APPPATH/Config/../Views/theme/header.php -->
<!doctype html>
<html lang="en">
<script type="text/javascript"  id="debugbar_loader" data-time="1601295277" src=""></script><script type="text/javascript"  id="debugbar_dynamic_script"></script><style type="text/css"  id="debugbar_dynamic_style"></style>
Custom result of pagination (I learn from InsiteFX)

In Controller
$data['query'] = $model->myQuery()->paginate(10);

In Model, write a function myQuery()
function myQuery()
    $sql = "your query here";
    return $this;
Set Dynamic Base Url

In App\Config\Constants.php, (end of file)
Defined Base Url
if ((! empty($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] == 'https') ||
    (! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ||
    (! empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443')) {
    $http = 'https://';
} else {
    $http = 'http://';
$host    = $_SERVER['HTTP_HOST'];
$baseUrl = $http . $host;
defined('APP_BASE_URL') || define('APP_BASE_URL', $baseUrl);

In App\Config\App.php
public $baseURL = APP_BASE_URL;
We're planning to use CI4 for our CRM and online order application. Before that, we used CI3 to our real estate website Smile

Now, CI4 looks much better. Thanks
Pages: 1 2