Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 2.1
#19

[eluser]jedd[/eluser]
[quote author="Phil Sturgeon" date="1256931518"]The article. Leave a comment to get free CodeIgniter 2 & Diablo IV Beta keys :-p[/quote]

Nice article, Phil.

I don't know enough javascript to comment, but starting to wrap my head around it now - and I can start to see the potential usefulness of a helper or library, particularly if it ties into something like jquery.

Have never used modules, but tend to agree (judging by the popularity) that they could/should be shifted in as (optional) core functionality.

I suspect that your suggestion that libraries deal with non-array data as a parameter is unlikely to be acted on. Occasionally this frustrates me - PHP can certainly cope with sending different types of data around, of course - but I suspect that it's simply too big a performance hit for EVERY CI function to test for the type of data it just got, before acting on it. Plus you'd have to come up with default $keys for instances where you send a single datum. The extra 15 characters or so that it requires (as your sample code observes) doesn't seem hugely onerous, and keeps the interfaces consistent.

Finally, this bit is probably a typo:
Quote:The problem for me is that pre_controller exists very early in the system flow and has no access to the database or a great deal of the CodeIgniter instance. The pre_controller_constructor hook has access to everything CodeIgniter has to offer, but it runs after your controller constructor ...

Either it's really broken or just badly named.


Messages In This Thread
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:32 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:37 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:40 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:45 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:53 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:53 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:55 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 09:55 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 10:38 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 10:47 AM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 01:14 PM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 01:23 PM
CodeIgniter 2.1 - by El Forum - 10-28-2009, 03:08 PM
CodeIgniter 2.1 - by El Forum - 10-29-2009, 11:00 AM
CodeIgniter 2.1 - by El Forum - 10-29-2009, 12:24 PM
CodeIgniter 2.1 - by El Forum - 10-29-2009, 12:38 PM
CodeIgniter 2.1 - by El Forum - 10-30-2009, 08:38 AM
CodeIgniter 2.1 - by El Forum - 10-30-2009, 08:59 AM
CodeIgniter 2.1 - by El Forum - 10-30-2009, 09:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB