Part of the EllisLab Network
   
 
Most Anticipated Features of CodeIgniter 2.0
Posted: 28 October 2009 11:35 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  804
Joined  06-10-2009

I know we all can’t wait for the release of CI 2.0, tentatively scheduled for 2012 (I wonder if it will be before or after the dawning of the new Mayan sun?), I thought we could bide our time by sharing what we are most looking forward to in the new release.

Here’s my list

1- Web 3.0 View Handling. I know this has drawn a huge amount of debate in the forums, as a quick forum search would surely attest, but I think the decision to limit all views by default to 140 printable characters to allow maximum cross-application compatibility is a great idea. It really pushes the envelope.

2- PHP3 native support. I don’t use PHP3 much anymore, but I think EllisLabs’ decision to extend support to this much beleaguered community is the right thing to do. I know I’ve been wanting to use CI in my old PHP3 projects since I found CI, so this is going to be a real boon.

3- CSS4 native features. I don’t know why no other framework thought of this, but ever since I heard that CI2 will allow a webpage served by CI to look exactly same in every browser I am just floored that no one else seems to be trying to do this.

4- Performance improvements from precompilation and native system code. I don’t know enough about this to really speak intelligently on how it’ll work, but wow, I never would have expected Ellis to go so far as to rewrite CI in C and then compile it into native system binaries.

5- Restaurant Menu Class. This would make projects for restaurants so much easier. From a sneak peak from the SVN:

$this->load->library('restaurant_menu');
$this->restaurant_menu->add_special('Kung Pao Chicken'$price$additional_options_array); 

I think total support for UTF-16 and 2048-bit encryption just kinda goes without saying. These guys are just amazing…

So, what are you looking forward to in CI 2?

 Signature 

CreativeHalls Web Design and Printing
A few of my projects:
OurGulfCoast Property Management and Vacation Rental (ASP/.NET)
BukuBux - Money Saving Coupons and Gift Certificates (CodeIgniter, LAMP/MySQL)
Rentals800.com - Find a place to rent (CodeIgniter, LAMP/MySQL)
bdh (dot) hall (at) gmail (dotcom)

Profile
 
 
Posted: 28 October 2009 11:42 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  374
Joined  05-04-2008

I would love to say inject_beef() will be in CI 2.0 but it is such a badass debugging function that they might need to bow to it’s worthiness until CI 2.1 or later!

Mooooooooooooooooooo!!!!

:D

 Signature 

[ Adam Griffiths - Freelance Web Applications Developer ]
[ Follow me on Twitter ]

Profile
 
 
Posted: 28 October 2009 11:48 AM   [ Ignore ]   [ # 2 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3150
Joined  06-11-2007

No better debugging exists. Screw unit testing, screw benchmarking, you don’t need any of it!

/**
* Inject some beef into your day
*
* @return void
* @access public
* @see pre_echo()
*/
function inject_beef()
{
        $check 
'';
        list(
$msec$sec) = explode(' ',microtime());
        
$BAM = ((double) $sec) + ((double) $msec);
        
// Record time (note we ignore time spent IN this function)
        
global $SPEED_CHECK_LAST_HIT$SPEED_CHECK_TOTAL;
        if (
$SPEED_CHECK_LAST_HIT{
                $elapsed 
$BAM $SPEED_CHECK_LAST_HIT;
                
$SPEED_CHECK_TOTAL += $elapsed;
                
$check sprintf('%.5f / %.5f',$elapsed,$SPEED_CHECK_TOTAL);
        
}

        
list($msec$sec) = explode(' ',microtime());
        
// initialize
        
$SPEED_CHECK_LAST_HIT = ((double) $sec) + ((double) $msec);

        
$len strlen($check);
        if (!
$len) return;

        static 
$i;
        
$i++;
        
$string '
                .--,       '
.str_repeat(' ',$len).'       ,--.
                l_/ \     _'
.str_repeat('_',$len).'_     / \_J
                 \   `-./__'
.str_repeat('_',$len).'__\.-\'   /
                  `
..---'.str_repeat('-',$len).'----..\'
                        
`-/    '.str_repeat(' ',$len).'     \'
                          |    '
.$check.'     |
                           `.__'
.str_repeat('_',$len).'___.\'
        ';
        pre_echo($string);

}//end inject_beef() 

The bigger the cow, the slower the page. No cow, your application has timed out.

 Signature 

————————
Blog | Twitter | GitHub | BitBucket
————————-
PyroCMS - open source modular CMS built with CodeIgniter
PancakeApp - Simple, hosted invoicing/w project management

Profile
 
 
Posted: 28 October 2009 04:24 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  06-13-2009

Where exactly does one put that code? It looks really useful.

Profile
 
 
Posted: 28 October 2009 04:26 PM   [ Ignore ]   [ # 4 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3150
Joined  06-11-2007

After following advice from Jamie Rumbelows workshop I would reccomend a plugin. wink

 Signature 

————————
Blog | Twitter | GitHub | BitBucket
————————-
PyroCMS - open source modular CMS built with CodeIgniter
PancakeApp - Simple, hosted invoicing/w project management

Profile
 
 
Posted: 28 October 2009 05:07 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  647
Joined  05-02-2009
Phil Sturgeon - 28 October 2009 08:26 PM

After following advice from Jamie Rumbelows workshop I would reccomend a plugin. wink

A plugin written while having a hangover that is !

 Signature 

READ THE USERMANUAL BEFORE POSTING ON THE FORUM

Profile
 
 
Posted: 27 November 2009 10:37 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
RankRank
Total Posts:  191
Joined  11-09-2007

I want HMVC as standard, and backed by the makers of CodeIgniter with full/good documentation.  I still do not understand why modules are not supported out of the box.

I want a ORM library to come as standard with CodeIgniter, and backed by the makers of CodeIgniter.  Whether its Propel ORM, or one of the others—I really want it to come out of the box, with full documentation.

I want control over whether to use $_GET() or not, I use $_GET for filtering search results, and other issues—I don’t want to be forced to use $_POST every time.

Profile
 
 
Posted: 27 November 2009 11:04 AM   [ Ignore ]   [ # 7 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3150
Joined  06-11-2007

HMVC will be coming at some point. Think about it, EE2 is modular, therefore, CI must at some point be modular. That and Derek told me, but its a logical guess if you think about it.

Why does ORM have to come out of the box? There are loads around with great documentation. EE2 does not use ORM, so why would EllisLab waste their time developing one, when shitloads exist already?

And of course you can use GET variables. Did you not see $this->input->get()?

RTFM and try configuring your app properly before making stupid feature requests on a thread that was clearly started in jest by people annoyed by EXACTLY this kind of post. shut eye

 Signature 

————————
Blog | Twitter | GitHub | BitBucket
————————-
PyroCMS - open source modular CMS built with CodeIgniter
PancakeApp - Simple, hosted invoicing/w project management

Profile
 
 
Posted: 27 November 2009 11:08 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
RankRankRank
Total Posts:  390
Joined  04-21-2009

One thing I’d like to see is error as arrays. Like the display_errors in the form_validation class. The form_validation class is nice and all but it’s not handling FILES. If the errors where rendered as arrays it would be easier to handle errors in controllers.

$status[] display_error('','',as_array TRUE);
//etc...

//then
$status[] = array(errors_form_filehandling); 
 Signature 

I love the smell of code in the morning.

Profile
 
 
Posted: 27 November 2009 11:20 AM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  686
Joined  05-24-2007

The one thing missing is the automated RTFM library. Could the methods WhipAss() and OrderReadingGlasses() be implemented? I guess UseTheF-ingSearch() is out of the question, or is it?

 Signature 

The art of managing is to explain tomorrow why yesterdays solution doesn’t work today.
livecodes.eu

Profile
 
 
Posted: 27 November 2009 11:36 AM   [ Ignore ]   [ # 10 ]  
Grad Student
Avatar
Rank
Total Posts:  72
Joined  07-19-2008

All of your request are there for your personal use if you want them. If you need a modular extension there is HMVC and you can go for it.

You want an ORM? There is Doctrine (is really great), Data Mapper and DMZ (Data Mapper Z Edition).

GET? use $this->input->get() and that’s all…


I think CI is a great framework, would be great to see it in PHP5 but nothing more (and I know it wont happen so I don’t care and I’ll continue using it anyways). All the 3rd party hooks/libraries/helpers/ and modifications are if you need some of them.

btw, RTFM next time wink

Cheers..

 Signature 

www.demogar.com

Profile
 
 
Posted: 27 November 2009 12:06 PM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  647
Joined  05-02-2009

I’d love to see CI being able to compile C++ and Objective-C applications, that would be great ! raspberry

 Signature 

READ THE USERMANUAL BEFORE POSTING ON THE FORUM

Profile
 
 
Posted: 27 November 2009 12:23 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  374
Joined  05-04-2008

I’d love to see CodeIgniter clean my house, wash my dishes, cook my dinner and perform sexual favours. But it ain’t happening, so I’m chillin’ it out waiting for the day it happens. And when that day comes it will be oh-so-sweet.

 Signature 

[ Adam Griffiths - Freelance Web Applications Developer ]
[ Follow me on Twitter ]

Profile
 
 
Posted: 28 November 2009 05:10 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
RankRankRank
Total Posts:  390
Joined  04-21-2009
Adam Griffiths - 27 November 2009 05:23 PM

I’d love to see CodeIgniter clean my house, wash my dishes, cook my dinner and perform sexual favours. But it ain’t happening, so I’m chillin’ it out waiting for the day it happens. And when that day comes it will be oh-so-sweet.

Now we’re talking! But… maybe you should do the dishes while you wait.

 Signature 

I love the smell of code in the morning.

Profile