EllisLab text mark
Advanced Search
5 of 9
5
   
Starting with CodeIgniter setup: suggestions & best practices
Posted: 28 November 2010 05:05 PM   [ Ignore ]   [ # 61 ]   [ Rating: 0 ]
Joined: 2010-11-28
2 posts

Thanks, I could fix a problem.

 
Posted: 05 December 2010 02:41 PM   [ Ignore ]   [ # 62 ]   [ Rating: 0 ]
Joined: 2010-12-05
1 posts

Nice post and That is very helpful to me.

 Signature 

Radar

 
Posted: 25 December 2010 07:03 AM   [ Ignore ]   [ # 63 ]   [ Rating: 0 ]
Joined: 2010-12-25
2 posts
Jelmer - 23 September 2009 12:03 PM

Someone mentioned an inconsistancy to me about error reporting. It used to say:

On any public site error_reporting should be set to E_ERROR

And then I went on to set error reporting to 0 instead of E_ERROR.

E_ERROR essentially means 1 and is as such one level more reporting than 0 (none at all). According to php.net, setting error reporting to E_ERROR means:

Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted.

My view is that in a live site any error should be either written by me (the programmer) or not shown at all. The users shouldn’t know, remove duplicate files what went wrong except when I explicitly told the system what it should tell the user. Which is why in the example code error reporting is set to 0 and not to E_ERROR.

Which is why I’ve changed the suggested error reporting to 0 instead of E_ERROR for any live site. I’ve corrected the comment explanation of the levels in the error reporting switch code because in the PHP code 1 means fatal errors & DB errors (instead of only DB errors) and 2 means compiler errors & db errors (instead of fatal & db errors). Also I’ve added a link to the error reporting pre-defined constants on php.net (http://nl2.php.net/manual/en/errorfunc.constants.php).

Thank You Thanks For Helping Me!!!!!

 
Posted: 30 December 2010 12:07 PM   [ Ignore ]   [ # 64 ]   [ Rating: 0 ]
Joined: 2010-04-06
16 posts

I’ve only seen this referenced in one other place, but if you use Horrigan’s UhOh Error Reporting with the latest version of CI2, you need to change line 66 of MY_Exceptions.php

parent::CI_Exceptions(); 

to

parent::__construct(); 

Otherwise you’ll get:

Fatal error: Call to undefined method CI_Exceptions::CI_Exceptions()

 
Posted: 31 December 2010 02:51 PM   [ Ignore ]   [ # 65 ]   [ Rating: 0 ]
Joined: 2010-12-31
6 posts

Wish I’d seen this a while ago. Really good guide though.

 
Posted: 01 January 2011 05:19 AM   [ Ignore ]   [ # 66 ]   [ Rating: 0 ]
Joined: 2011-01-01
6 posts

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

 
Posted: 01 January 2011 05:22 AM   [ Ignore ]   [ # 67 ]   [ Rating: 0 ]
Joined: 2011-01-01
6 posts

Thanks, I could fix a problem.

 
Posted: 01 January 2011 10:40 AM   [ Ignore ]   [ # 68 ]   [ Rating: 0 ]
Joined: 2010-12-25
2 posts

Security is the degree of protection against danger, damage, loss, and retrieved from “http://en wikipedia.org/wiki/security “. State security, providing and servicing fully integrated fire and welcome to 1st security bank of washington, your leading financial institution and home for all of your personal and business financial needs. Security - wikipedia, the free encyclopedia transportation, print directories security administration (tsa) protects the nation’s transportation systems to ensure freedom of movement for people and commerce tsa’s regulations, restrictions. Security bank of kansas city privacy statement contact us security home equal housing lender member fdic 2010 security bank of kansas city all rights reserved. Tsa transportation security administration u s department of state security, roanoke, va is a locally owned, licensed virginia security dealer and class a contractor.

 
Posted: 11 January 2011 08:40 AM   [ Ignore ]   [ # 69 ]   [ Rating: 0 ]
Joined: 2011-01-11
1 posts

StudyExpert – образование за рубежом. Всегда только индивидуальный подход и актуальные предложения.  Языковые курсы, высшее образование, MBA, курсы искусства и дизайна. Цены Вас приятно удивят. http://www.studyexpert.ru

 
Posted: 23 January 2011 08:06 AM   [ Ignore ]   [ # 70 ]   [ Rating: 0 ]
Joined: 2010-01-31
26 posts

Jelmer

Starting with CodeIgniter setup: suggestions & best practice

Thanks you for this work

it’s possible of translate this POST on codeigniter.fr ?

gabriel

 Signature 

Gabriel and CandleCMS devTeam
CandleCMS website

 
Posted: 24 January 2011 11:34 AM   [ Ignore ]   [ # 71 ]   [ Rating: 0 ]
Avatar
Joined: 2007-03-10
451 posts

@gabybob

I hereby license the first 2 posts under MIT license, so feel free to translate or reproduce them in whatever way you see fit wink

 Signature 

Starting with CodeIgniter setup
Senior dev of FuelPHP

 
Posted: 12 February 2011 01:51 AM   [ Ignore ]   [ # 72 ]   [ Rating: 0 ]
Joined: 2010-08-14
36 posts

Just Help References,... very very simple for beginners…..

“CodeIgniter”

why there is no standard package?

CodeIgniter for user-login, make the Auth class examples

 
Posted: 27 February 2011 06:36 AM   [ Ignore ]   [ # 73 ]   [ Rating: 0 ]
Joined: 2011-02-27
2 posts

now it is easy to install it

 Signature 

Offer wowgold http://www.wowgold-shop.com msn:allenwang@wowgold-shop.com skype:wowgold-shop

 
Posted: 07 March 2011 02:13 PM   [ Ignore ]   [ # 74 ]   [ Rating: 0 ]
Joined: 2009-12-18
10 posts

Awesome post, thanks so much for this.

In terms of ORM, do you still recommend RapidDataMapper?  Looks like it’s dead now?

 
Posted: 08 March 2011 08:50 AM   [ Ignore ]   [ # 75 ]   [ Rating: 0 ]
Avatar
Joined: 2007-03-10
451 posts

@night_day
When starting out and if you got less of an opinion than me on the subject I’d recommend DMZ, it’s both active and very powerfull.
When I chose I prefered RDM for a couple of reasons: I like the practice of clean models with all DB stuff separate; I prefer the query builder from RDM a lot over CI’s AR; and it’s faster. The first 2 however are the most important for making your choice, the speed arguement won’t be of any signifigance for over 99% of CI based projects.

Even though the project is indeed pretty much dead I still use RDM as it was very reliable and fast for the documented use, rough edges only appear once you try very complex usage (and I fix any bugs where they appear as I know the code pretty well). For new projects I’ll probably use either php.activerecord, Doctrine2 (if the project is very complex) or whatever comes of the new Fuel ORM we’re currently rewriting. When PHP5.3 isn’t an option I’ll probably stay with RDM.

 Signature 

Starting with CodeIgniter setup
Senior dev of FuelPHP

 
5 of 9
5