Try Tuts+ Premium, Get Cash Back!
CodeIgniter from Scratch: Extending the Framework
videos

CodeIgniter from Scratch: Extending the Framework

Tutorial Details
  • Difficulty: Intermediate Advanced
  • Length: 30 Minutes
This entry is part 13 of 17 in the CodeIgniter From Scratch Session
« PreviousNext »

In today’s screencast we are going to learn how to create our own helpers and libraries. We are also going to learn how to extend the existing helpers and libraries that come with CodeIgniter. At the end of the tutorial we will extend the Form Validation library to give it the ability to check for password strength.


Catch Up


Day 13: Extending the Framework

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-extending-the-framework/ First comment, WOOT

    First comment.

  • http://wpcanyon.com Slobodan Kustrimovic

    Thanks Burak. Watching it now. Learned a lot from your CI screencasts, thank you so much.

  • http://adnan.miljkovic.info Adnan Miljkovic

    Once again thanx Burak, your CI tutorials are amazing.

  • http://www.twitter.com/mamunabms Abdullah Al Mamun

    Thanks a lot. This is the most exciting series of nettuts.

  • Carlos

    Thankyou Burak!!

    I think this is the best series of the whole internet!!

  • http://www.fatlizardmedia.com Juan C. Rois

    Thank you very much Burak, it’s great that you took over this series and have given us such great tutorials during the last few weeks.
    I have one question though, are the lastest CI screencasts going to be posted to Itunes? I’d like to download from there as I am suscribed to NetTuts on the Itunes store.

    Again, thanks for your contribution.

  • Jose Perales

    Will be something like this so for Zend framework?

  • http://www.ipatrick.hu iPatrick

    I’d appreciate that Zend screencast idea, too. BTW These series are the best, it helped me a lot in my thesis workflow, i’m doing it with CI & jQuery as well :) You rocks !

  • http://eyoosuf.com Yoosuf

    cool screen cast, but yet dint sync with iTunes :S

  • http://www.jsxtech.com Jaspal Singh

    Thanks Burak for sharing this excellent screencast on extending the codeigniter framework.

  • http://laranz.com lawrence77

    why not .mp4, why flv? :(

    flv sized more :(

    I hope this is a nice tut, downloading and watch it later :D

  • Tom Van Assche

    Much appreciated! A request, a guide on how to program modular with CI.

    • bretticus

      Ya know what we be really cool? How about a tutorial on Unit Testing with CI. I am always too much “under the gun” to write a test suite. Later, when changes are made and bugs are fixed, I always regret not having a testing suite. Truthfully, it’d just be nice to see how PHP developers are doing unit testing these days. And particularly, if anyone is doing this with Codeigniter.

  • http://www.mment.at mment

    Great Burak! Best CI Tutorial so far. Can’t wait to see more

  • http://felixb.se Felix

    great series!
    thanks

  • walter

    Best series ever!
    Don’t stop it.

  • http://www.twitter.com/mamunabms Abdullah Al Mamun

    Could you please make a part describing working with moneybookers API?
    That will be great.
    Thanks.

  • Robert

    I love this series and I’ve quite a bit from it. Keep up the good work.

    One little thing in the screencast though. When you extend a helper file, you have to prefix it with MY_ just like with libraries. So, if you want to extend the date_helper file, you put a file named MY_date_helper.php in your applications/helpers folder. If you don’t prefix your helper files with MY_ then you are overriding all of the functionality of the native helper file instead of just extending it.

    http://codeigniter.com/user_guide/general/helpers.html

    • Robert

      that first line should read “I love this series and I’ve *learned* quite a bit from it. Keep up the good work.”

    • http://www.phpandstuff.com/ Burak
      Author

      Thank you for the correction!

      • Robert

        no problem :o), glad to help.

    • http://parscat.com Norik Davtian

      tnx for pointing this out :)

  • adrian

    Great series, i must say i’m learning more from your tutorials than jeff way’s. One question though, do you plan on eventually making a fully featured blog platform like the original series said it would?

  • http://www.ertankayalar.com.tr ertan

    great series burak, very helpful

    thank you.

  • http://brianswebdesign.com Brian Temecula

    All I see is a blank post… seriously.

    • http://brianswebdesign.com Brian Temecula

      Yes, I am replying to my comment…. I finally was able to watch the video. Don’t know why it wouldn’t display at first. I thought the end of the tutorial sort of went astray, off into the world of form validation a bit, but overall these CI tutorials are great. I won’t say that everyone should use CI, because there’s some times when I like plain HTML for smaller sites, or sometimes that I use WordPress. I can’t say how great I think CI is though. It’s a dream come true for getting things done fast, clean, organized, and for maintenance.

  • Phi

    Can you take care of the *index.php somehow?

    • http://www.woony.be woony

      yeah would really like a decent solution for that all I find keeps messing it up..

  • http://sp2hari.com Harishankaran

    Become a great fan of tutsplus after seeing this series :) Love you tutsplus. :). Seriously, I was so damn scared of frameworks and this totally removed the phobia.

  • Fede Isas

    Greetings from Argentina! This series are great. I’m happy you could continue Jeff’s work.
    After reading tons of forums pages trying to set up a more advanced enviroment to develop (until now I was using e-text) I can’t get Aptana to auto complete anything. I’ve tried both 1.5 and 2.0 versions with no luck. And, for what I’ve read, there are many with the same problem. Could you share your Aptana config to us? Thanks in advance.

    Ps: Sorry if my english isn’t great, I speak spanish :D

    • http://www.phpandstuff.com/ Burak
      Author

      I am using 1.5 that doesn’t have PDT.

  • http://www.colourspace.net.au twisty

    I love this series but the last few episodes have never been released on itunes!
    What’s the go?
    You’ve basically killed it for anyone who watches on their iphone/ipod!

  • Mike

    Hello,

    Thanks for a nice tutorial!

    Does anyone know the name of the code editor that he is using?

    Thank!

    • Adam

      Aptana Studio with Aptana PHP plugin (not PDT!).

      • http://codemonkeys.biz Kris

        I’m seeing NetBeans 6.9 in this video. I use use NetBeans as well, but I haven’t figured out how to get code autocomplete to work for CI yet. Anyone else here figure that out?

  • maulik

    thanks
    your tutorial is very nice.
    but you have forgot to pur source file code.
    i learned more about ci
    thanks once again

  • speedyjunior

    I want to work with CI directory in Aptana studio. Right now I have to go through couple of directories to go to CI application and system folders. Any help will be appreciated . Thanks in advance ….

  • mooret

    Nice tutorial, again. Thank you!

  • http://www.maikdiaz.com maik

    Hi Burak, I am trying to use the aptana because I saw is the one you are using, I already install it and I am having problems with the instalation I dont know why is sending me and error with the files of codeigniter if i create my php file I dont have problems but when I open a codeigniter file it send me this error Could not open the editor: Editor could not be initialized. Can you help me telling me what I am doing wrong

  • http://nexeta.in parth buch

    Where is the download Version?

  • http://www.robinmitra.com Robin Mitra

    This has been a very useful tutorial! Thanks a lot!

  • erminio ottone

    GREAT serie :) please don’t stop :)

  • Adam

    Hi Burak,

    I am just wondering if you can add tutorial of how to perform multiple files upload using CI upload library? General idea over the internet is to loop over the $_FILES array and change its key to ‘userfile’ – accepted by CI’s upload library. Still I couldn’t find elegant solution so I was wondering if a professional PHP programmer such as You or Jeffrey might help?

    Thanks in advance, still i am not pushing you do do so. :)

    Adam

  • alx

    hello! thanks for the great tutorials! I am “catching up” (video number 3 now) and I hope I can start using CI very soon!
    thanks for making it look so easy! I am learning everyday something new thanks to u guys! :)

    quick question: are you planning on explaining how to develop a multilingual website in CI?

    I will need to have 4 languages supported in a website and I really dont know where to start from as text and images have to change depending on the language selected by the user + I’d like to display the website in the ‘correct’ language depending on the language of the browser OR the selection of the user (if he has already registered an account and kept the session alive)

    languages are English, French, Chinese and Bahasa…

    Any suggestion / screencast would be great at this stage :)

    Thanks!

    • http://www.cojita.ro Cristi

      Hi,

      if you find a good solution for multilingual website in CI, please let me know.

      Thanks!

    • Mini0n

      x2

      A multi language site would be a very nice idea for a next tutorial. :)

    • http://vivelibre.net Maria

      I second this!! Looking forward for a screencast about a good way to go multilanguage with CodeIgniter.
      I think its a basic thing to do in most of the middle size sites to reach more users, why isnt it it the first x-days series on CodeIgniter?
      I saw some writen tuts around using language.php (already available in CodeIgniter) thought not complete.
      They tell u some ways, more or less eficient, to use the class to translate the content but are lack of basic information like:
      -How to get the right language content from the bd (using the session variable, for example)
      -How to translate the friendly urls correctely so the system doesnt point in english (ie default language) to a section in other language (for example: http://site/es/news/ should be http://site/noticias or site/es/noticias)

      Hope it will be reaching soon, as i guess lots of us are in need of some complete tut on this :)

  • Gibon

    Hi, can you please tell me how to build template system in CI for website?

  • Andikajagat

    Thanks for the great series on CI. Keep it up with more of your splendid hands out ….Your the best gurus.

  • http://anyulled.blogspot.com anyulled

    great tutorial! very helpful, but where is the zip file? could yoou guys try to do one with symfony?

  • T_wreaks

    I really like this series but I would be great to see the videos available as a podcast.

  • LoganWolfer

    Thanks Burak for the nice tuts, I love these screencasts !! =)

    I remember when Jeff first started the series, he was supposed to cover how to integrate a custom CMS to a website with CodeIgniter.

    I’d love to see that in the future, I’m planning to do that this summer for a project of mine, hope you can cover that until then, that would be really appreciated.

    Keep it up, theses tuts are amazing ! =)

  • david

    this was awesome! Im on day 4 of the CI tutorials. great way to get up and running. Is there more stuff regarding CI with that monthly subscription for $9?

  • http://mskhirwar.wordpress.com Man Mohan

    Can anybody suggest me some good articles for creating search functionality with codeigniter.

    Thanks in advance

  • http://twitter.com/gemmes gemmes

    Why are these tutorials no longer being added to the itunes video podcast?

  • Luque

    Thanks Burak! you’re doing a great job, keep it up!

    I would love to learn about phpUnit and testing code with CI

    Cheers!

    Luque

  • http://www.davidbehrend.com David

    I could watch these all day… Actually I did.

    This is the most excited I’ve been about updating the ol’ knowledge base since learning javascript.
    Are we still heading towards creating a CMS?

  • http://newdailyblog.blogspot.com Tahsin Hasan

    Hello,

    See different types of weakness and their solving techniques on tahSin’s gaRAge

  • http://codemonkeys.biz Kris

    Really great tut Burak! Please keep this series alive!

  • http://- Jammaz

    I have to ask question, cause i have been fighting days and days with this problem.

    I use URI language selector with CI and it extends core Language library with MY_Language.php file. Inside that file there is MY_Language function. So this “language thingy” will load itself automatically and you don’t have to call it anywhere and it does it’s job on background.

    My problem is that i want to make little changes there. That it would store lastly used language from URI to cookie, so when user next time visits on site it would load default lang from there. Problem occurs when i try to load helpers inside MY_Language function. Cause i can’t assign $CI =& get_instance(); inside MY_Language function and for that reason i can’t load helpers.

    Is there any way that i could use helpers in this situation… OR is there better way to do this?

    • fdsasljkdf

      :)

      • fsdrer

        yes.. this is testing.

      • fjasldfj

        how many levels this comments hirarchy is..?? now 3..

      • osl3fsadfsadf

        4vxcvs ti s

      • tojwl

        this is using handle.. lols

      • thisiscrazy

        what about n-hierachy commenting. is it good to use n-level??

      • sdfg

        ghg

  • http://www.idizajn.sk/ ilo

    Thanks very much from Slovakia!

  • kakoo verma

    seriously u’re the best……
    i’ve searched a lot on you tube abt CI…..& found ur some videos…..

    thanx a lot man

  • http://dventurin.wordpress.com Dam

    Amazing! Thank you!