• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Started with CodeIgniter 4 PreAlpha 1

#1
I've written a short blog post with some helpful info for those wanting to get started playing with CodeIgniter.

Hope it helps.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#2
Thank you for your hard work!

> From the terminal type: [email protected]:bcit-ci/CodeIgniter4.git which will pull down the latest version of the develop branch into a new directory called CodeIgniter4.

Do you mean "type: git clone [email protected]:bcit-ci/CodeIgniter4.git"?
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply

#3
Doh! Yes, that's exactly what I meant. Thanks for pointing it out. Changing it now.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#4
One thing I forgot to mention in that post, but that is worth knowing is that the default environment is now "production" to save any accidents when pushing to a live site. To change the environment to development, the best thing is to edit the .htaccess file (if using Apache) that came with the download. Toward the top is a line like:

Code:
# SetEnv CI_ENV development

Uncomment that line and you're good to go.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#5
Awesome news. I have been a CI admirer for quite some time. I'm looking forward to digging in to the new 4.0 and contributing to the CI community.
Reply

#6
Hi.. I recently started my personal project in Ci 3.
I target it to work with php 7. I just want to know that is there upgrade from 3 to 4 possible.
If yes. which point i have to take care. while developing in CI3.???
Reply

#7
(11-14-2016, 02:25 AM)Vimal Wrote: Hi.. I recently started my personal project in Ci 3.
I target it to work with php 7. I just want to know that is there upgrade from 3 to 4 possible.
If yes. which point i have to take care. while developing in CI3.???

1st - PHP 7.1 ? is almost but not yet in Final stage..
Do you really wan't to write something based on completely new PHP version which won't be found over any host services in next months? 
Does it worth?

2nd - CI 4 is still far away but it's already known that it will be complete rewrite of CI 3 ..
So migration will be impossible without rewriting your app.
Best VPS Hosting : Digital Ocean
Reply

#8
(11-14-2016, 02:40 AM)sv3tli0 Wrote: So migration will be impossible without rewriting your app.

Ya sure. Rewrite means I can not use existing code in any situation?
I understand I have to change the code where I created and called model.

for example
$this->load->model('user');

to
use App\Models\User; and than dependency injection.

Or I have to start from scratch?? Undecided

Edit.
I want to use CI4 but its not ready yet. And I can't wait for it.
Reply

#9
(11-15-2016, 05:10 AM)Vimal Wrote:
(11-14-2016, 02:40 AM)sv3tli0 Wrote: So migration will be impossible without rewriting your app.

Ya sure. Rewrite means I can not use existing code in any situation?

Your upgrade will equal a rewrite.. Understand it as you want.

No more direct core overwrites with MY_, no more $this->load , no more get_instance, required namespaces on all files where you are extending some code classes as controllers as models and many other small or big differences ..

I count such app "upgrade" as rewrite. It won't be just a regular upgrade..
Best VPS Hosting : Digital Ocean
Reply

#10
(06-26-2016, 09:24 PM)kilishan Wrote: One thing I forgot to mention in that post, but that is worth knowing is that the default environment is now "production" to save any accidents when pushing to a live site. To change the environment to development, the best thing is to edit the .htaccess file (if using Apache) that came with the download. Toward the top is a line like:

Code:
# SetEnv CI_ENV development

Uncomment that line and you're good to go.

How to do this in nginx?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.