EllisLab text mark
Advanced Search
4 of 9
4
   
Starting with CodeIgniter setup: suggestions & best practices
Posted: 08 September 2010 01:38 PM   [ Ignore ]   [ # 46 ]   [ Rating: 0 ]
Avatar
Joined: 2007-03-10
451 posts

Some updates (September 8):
- Added recommendation for CI2
- Simplified code examples for error reporting
- Added recommendation for Dan Horrigan’s UhOh! library
- Removed recommendation to move application outside the system dir as that’s in CI2 by default

Some more (September 9):
- Mentioned the new built in CSRF protection
- Mentioned the provided CAPTCHA helper

 Signature 

Starting with CodeIgniter setup
Senior dev of FuelPHP

 
Posted: 13 September 2010 07:09 AM   [ Ignore ]   [ # 47 ]   [ Rating: 0 ]
Joined: 2010-06-26
8 posts

Nice post.

 Signature 

Thanks and Regards,
Prensil Technologies Pvt. Ltd.
Offshore Web and PHP Development Company
http://www.prensil.com

 
Posted: 20 September 2010 09:31 PM   [ Ignore ]   [ # 48 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-24
24 posts

http://github.com/derekallard/BambooInvoice

^This might might be a good project to learn from, it’s by Derek Allard (creator of CodeIgniter).

 
Posted: 07 October 2010 05:02 AM   [ Ignore ]   [ # 49 ]   [ Rating: 0 ]
Avatar
Joined: 2010-06-07
21 posts

hi,

I have used CI few month ago but still feel like a beginer.

I have 2 questions I know it it not goot to mix many subject but it is related to begining

- If you start a new project from scratch what is the best : starting with CI 1.7 or version 2.0 I don’t want to migrate in few weeks / month when my project will be finish !!

- Second question relating with css and I can add javascript

where do you sugest to place addional css files or css in my previous projetct, I had 2 files in my directory : system ( where I have all CI files ) and includes where I had css, js and images and other scripts.  How do you do ? and what is the best I want to start with good practice now.

Thanks

 Signature 

CodeIgniter 2 ( beta ) installed 2010-10-07
Ubuntu 10.4

 
Posted: 07 October 2010 05:35 AM   [ Ignore ]   [ # 50 ]   [ Rating: 0 ]
Avatar
Joined: 2007-03-10
451 posts

- If you start a new project from scratch what is the best : starting with CI 1.7 or version 2.0 I don’t want to migrate in few weeks / month when my project will be finish !!

Did you even read the original posts? It’s covered the very first heading in there!

- Second question relating with css and I can add javascript

Do a forum search on “asset management”, there’s many solutions that might help you.
In general I’d suggest adding dirs like “css” and “images” in the same directory as the index.php, and then you can use CI’s HTML helper for instance like this:

echo img('images/picture.jpg');
echo 
link_tag('css/mystyles.css'); 
 Signature 

Starting with CodeIgniter setup
Senior dev of FuelPHP

 
Posted: 07 October 2010 07:24 AM   [ Ignore ]   [ # 51 ]   [ Rating: 0 ]
Avatar
Joined: 2010-06-07
21 posts

yes I read the begining of this post that is why I ask this question. I red “CodeIgniter 2.0 is unfinished at this point” so I imagine I have to wait… Sorry english is not my native language and as far as I understood it is too early.

And concerning the second point thanks it confirm that I will keep what I did. Just add a directory in the same level as index.php ( only one because in want a simple installation and I don’t want 100 folders to copy; I will have only 2 + index.php

 Signature 

CodeIgniter 2 ( beta ) installed 2010-10-07
Ubuntu 10.4

 
Posted: 07 October 2010 07:29 AM   [ Ignore ]   [ # 52 ]   [ Rating: 0 ]
Avatar
Joined: 2007-03-10
451 posts

yes I read the begining of this post that is why I ask this question. I red “CodeIgniter 2.0 is unfinished at this point” so I imagine I have to wait… Sorry english is not my native language and as far as I understood it is too early.

From what you write I’m guessing you do get most English, and it helps to keep reading after the first sentense. Here’s the third sentense in that paragraph:

As such the 2.0 code is considered by many to be as stable or more stable then the 1.7.2 version.

Also check out what Moderator Jamie Rumbelow wrote about this.

 Signature 

Starting with CodeIgniter setup
Senior dev of FuelPHP

 
Posted: 07 October 2010 08:33 AM   [ Ignore ]   [ # 53 ]   [ Rating: 0 ]
Avatar
Joined: 2010-06-07
21 posts

Thanks in that case, I have the green light and I will try CI2.0 smile

 Signature 

CodeIgniter 2 ( beta ) installed 2010-10-07
Ubuntu 10.4

 
Posted: 23 October 2010 04:34 AM   [ Ignore ]   [ # 54 ]   [ Rating: 0 ]
Joined: 2010-10-23
1 posts

thanks for all of these, very useful to us.

 
Posted: 28 October 2010 03:28 AM   [ Ignore ]   [ # 55 ]   [ Rating: 0 ]
Joined: 2010-10-28
1 posts

Great Job.. Thanks

 
Posted: 28 October 2010 05:50 AM   [ Ignore ]   [ # 56 ]   [ Rating: 0 ]
Joined: 2010-10-28
1 posts
Jondolar - 09 August 2009 01:38 AM

You couldn’t have posted this 3 months ago grin

Nice job and great contribution.

Thanks for taking the time in making this, nice contribution to the forums.

 
Posted: 30 October 2010 04:09 AM   [ Ignore ]   [ # 57 ]   [ Rating: 0 ]
Joined: 2010-08-23
1 posts

This is very helpful.Thanks for sharing it here.

 
Posted: 02 November 2010 03:24 AM   [ Ignore ]   [ # 58 ]   [ Rating: 0 ]
Joined: 2010-11-02
1 posts

Hey Jelmer,

Thanks for sharing your insights on CodeIgnitor.

I wished I’ve come across it earlier; it would have made things WAY easier for me.

Anyways, it’s never too late.

Thanks again!

Sean

 Signature 
 
Posted: 18 November 2010 01:43 PM   [ Ignore ]   [ # 59 ]   [ Rating: 0 ]
Joined: 2010-11-18
1 posts

Thanks for your sharing. That is very helpful to me, really.

 
Posted: 25 November 2010 08:12 AM   [ Ignore ]   [ # 60 ]   [ Rating: 0 ]
Joined: 2010-11-25
3 posts

Hat’s off. Well done, as we know that “hard work always pays off”, after a long struggle with sincere effort it’s done.
======================
PLR Private Label Rights

 
4 of 9
4