Honestly CI is great and I've used it tons of times for tons of projects, but it'd be better to start out with something more modern, CI still have alot of bad ways of doing things, that where good back in the day but make no sense now. So it's really not the best place to 'learn'.
I'd strongly recommend going with laravel it's very similar but utilises modern concepts and features.
Seriously I love Codeigniter, but if you get on that bandwagon now you'll either have to jump off very soon or be left behind, i've found it so dificult to move on from CI even though I know there are better things out there, simply because I know CI well.
So seriously put yourself on firmer ground to start off with and go with laravel.
I'm quite fond of Aptana. It sort of reminds me of what I liked about the 'code' view of Dreamweaver, without all the unnecessary crashing. It is designed to work well for web development, and has good editing (/syntax colouring) support for php/css/js out of the box.
The test keep being published, and depending on the test, shows how the difference is between CI and Laravel/Symfony based frameworks
http://docs.phalconphp.com/en/latest/reference/benchmark/hello-world.html
http://www.yiiframework.com/performance/
I hope for those that enjoy Laravel, there isn't too much lost in the move to 5 as they restructure their directories once again.
Also hope eloquent ORM becomes more efficient and helps process speeds.
It also looks like 5 will offer some speed improvements as well.
So for you, the fans of Laravel, may it continue to get better.
Have a good day Peter, just stop bashing those who use other frameworks. Your comments do not make anyone want to join the community of Laravel when the attitude is that of Apple users. (btw you are not the first to come off this way about it)
Your syntax looks like CI3. There are many solutions for this. But my favorite is:
$this->db->db_select($database2_name);
And in this document page you will find all the information:
Could you care to elaborate on the "CI3 is dangerously out of date" statement? What exactly makes it dangerous? The last version (3.1.11) was released in 2019, and until version 4.1 a few months ago, CI3 was still the current stable version. According to codeigniter.com, "This version is in maintenance, receiving mostly just security update".
It would be more correct to say that CI3 is obsolete.
If your not using 4.0 and you don’t want to setup .env you can add a config environment directory to .gitignore https://codeigniter.com/userguide3/libraries/config.html#environments then you’ll have a directory you can put config files in that doesn’t get checked in and isn’t an environment variable. Dotenv is really the way to go though. You put your production secrets in your apache configuration and just use the .env file for development.