CodeIgniter Forums
Success to CI4 Last Version - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Success to CI4 Last Version (/showthread.php?tid=77586)

Pages: 1 2


Success to CI4 Last Version - nc03061981 - 09-21-2020

Woh,
I upgrade success from CI3 to CI4 last version
Happy Heart
Thanks CI team


RE: Success to CI4 Last Version - nc03061981 - 09-21-2020

And using success package myth/auth
Hehe...


RE: Success to CI4 Last Version - MGatner - 09-22-2020

Congratulations! Welcome aboard ?
What did you find was the hardest thing about making the transition?


RE: Success to CI4 Last Version - nc03061981 - 09-22-2020

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


RE: Success to CI4 Last Version - nc03061981 - 09-25-2020

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


RE: Success to CI4 Last Version - nc03061981 - 09-26-2020

I updated my manual curl with CURLRequest CI4 (https://codeigniter.com/user_guide/libraries/curlrequest.html)
- Like it, simple


RE: Success to CI4 Last Version - nc03061981 - 09-28-2020

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>



RE: Success to CI4 Last Version - nc03061981 - 09-29-2020

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;
}



RE: Success to CI4 Last Version - nc03061981 - 09-30-2020

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;



RE: Success to CI4 Last Version - someone - 09-30-2020

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