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
Woh,
I upgrade success from CI3 to CI4 last version
Happy Heart
Thanks CI team
And using success package myth/auth
Hehe...
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 (https://codeigniter.com/user_guide/libra...quest.html)
- Like it, simple
Woh, Now I see Debug Bar, i like it
CI4 is Power kaka
Code:
<!-- 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">
    <head>
<script type="text/javascript"  id="debugbar_loader" data-time="1601295277" src="http://myappsvn.net/?debugbar"></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
Code:
$data['query'] = $model->myQuery()->paginate(10);

In Model, write a function myQuery()
Code:
function myQuery()
{
    $sql = "your query here";
    $this->db->query($sql);
    return $this;
}
Set Dynamic Base Url

In App\Config\Constants.php, (end of file)
Code:
/*
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
Code:
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