CodeIgniter 3.0

21,563 views

Published on

Published in: Technology
4 Comments
16 Likes
Statistics
Notes
No Downloads
Views
Total views
21,563
On SlideShare
0
From Embeds
0
Number of Embeds
508
Actions
Shares
0
Downloads
313
Comments
4
Likes
16
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • CodeIgniter 3.0

    1. WELCOME TO CICONF! San Francisco 2012
    2. THREE POINT OOOH!CodeIgniter 3.0 - Best Version Ever
    3. Number of Commits per CodeIgniter Release 3,000 2,700 2,400 2,100Number of Commits 1,800 1,500 1,200 900 600 300 0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.7.3 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 3.0-dev
    4. “The best person to fix a bug in CodeIgniter is whoever found it.” -- me! 2011
    5. 100% LESS SEXIST!foreach ($model AS $single_model)
    6. ACTIVERECORD =>QUERY BUILDER
    7. GENERAL DB IMPROVEMENTS- Added an optional parameter that allows to disable escaping (useful for customfields) for methods join(), order_by(), where_in(), or_where_in(), where_not_in(),or_where_not_in().- Added support for join() with multiple conditions.- Added support for USING in join().- Changed limit() to ignore NULL values instead of always casting to integer.- Changed offset() to ignore empty values instead of always casting to integer.- Added dsn configuration setting for drivers that support DSN strings (PDO,PostgreSQL, Oracle, ODBC, CUBRID).
    8. MYSQLI DB IMPROVEMENTS- OOP style of the PHP extension is now used, instead of theprocedural aliases.- Server version checking is now done via MySQLi::$server_infoinstead of running an SQL query.- Added persistent connections support for PHP >= 5.3.
    9. PDO GOT SOME BALLS
    10. CACHINGRedis + Wincache = YAY!
    11. OUTPUT MINIFICATION $config[minify_output] = TRUE;
    12. PAGINATION + SEARCH CodeIgniter 1.x & 2.x /search/results/2 CodeIgniter 3.0: $config[‘reuse_query_string’] = TRUE; /search/results/2?q=business/search/results?q=business&filter[blog]=blog:posts
    13. PROPER EMPTY VALUES CodeIgniter 1.x & 2.x $foo = $this->input->post(‘dunno’); var_dump($foo); // FALSE CodeIgniter 3.0: $foo = $this->input->post(‘dunno’); var_dump($foo); // NULL
    14. CSRF TWEAKS Invalid Messages no more $config[csrf_regeneration] = TRUE; Exclude URIs$config[csrf_exclude_uris] = array(paypal/confirm);
    15. FAILOVER DB CONNECTIONS $db[default][failover] = array( array( hostname => foo.com, username => , password => , database => , dbdriver => mysqli, char_set => utf8, dbcollat => utf8_general_ci, autoinit => TRUE, ), array( //... ), );
    16. PHP 5.2.4Old things are old, and sometimes that is ok.
    17. EVERYONE LOVES CALLBACKS$route[products/([a-z]+)/edit/(d+)] =function($product_type, $id){ return "catalog/product_edit/" . strtolower($product_type) ."/" . $id;};
    18. UNIT TESTING FINALLY!
    19. UNIT TESTING Faking it
    20. UNIT TESTING At LEAST PHP v1.2.0

    ×