CodeIgniter From Scratch: Day 4videos

CodeIgniter From Scratch: Day 4 – Newsletter Signup

DiggThis

Continuing on from Day 3, we’ll expand our little application into a simple newsletter signup form. This will allow us to taker a closer look at both the email and the form_validation classes. Learn it all in this 30 minute screencast.

Catch Up

Day 4

If you’re having trouble viewing the video, watch it here instead.


Related Posts

Add Comment

Discussion 96 Comments

Comment Page 2 of 2 1 2
  1. Howard says:

    Is there a “best practice” for multiple page forms?

    For example, the user goes to page and enters some registration information. Based on the choices made in the form, the user is sent to a second page to fill out more information.

    Do you hold the user data in session variables? Or to you update the database after every page?

    Thanks!

  2. Rich Webster says:

    First, thank you for the series… quite good. I did have one problem with it, and maybe it was my fault. But for other newbies:

    this->email->set_newline(‘\r\n’); gave me problems.

    it put a newline in the middle of the header, after sending. I think this is because the sending server (qmail, masquerading as sendmail) prepended some header info, then the newline appeared, then the rest of the header info supplied by the Email class appeared… The newline caused part of the header to appear in the body, including the multipart stuff, causing the html to not render, the mime info and some of the header info to look wonky, and me to tear out what little hair I have left. Removing the newline code restored my sanity.

    So is my mail server weird? Did you ever figure out why the line needs to be there (since it seemed to solve MY problems to take it out)? Has anyone else had a similar experience?

    The one thing I’ve done a bit different than this tutorial is: I was loading a pre-designed HTML page as the message, using read_file(), with the intent of creating a system that sends a series of emails to anyone who signs up, starting with the first and continuing monthly for a year… rather than your system that sends a just-saved message on demand. But that shouldn’t have affected the headers.

  3. Gregory says:

    Hi Jeff,

    I noticed when you referenced the stylesheet it was for that single view, is it possible to reference a css file for all your views?

    Thanks!

  4. Maxx90 says:

    And third, and probably most importantly, simplifying the benefit formula as part of a larger Social Security reform. ,

  5. anzahen says:

    http://nettuts.blip.tv/file/2466799?filename=NETTUTS-CodeIgniterFromScratchDay4184.flv
    where the video?
    problem loading page
    The server at nettuts.blip.tv is taking too long to respond.

  6. t0m3k says:

    Hi.
    I’m getting strange issue:
    Fatal error: Call to undefined function form_open() in C:\Program Files\WebServ\httpd\codeigniter\application\views\newsletter.php on line 15

    Somebody knows what’s the problem?
    I downloaded files from this page and I’m getting the same error.

  7. ChoiZ says:

    Hi, i try to send an email with Code Igniter.

    With plain/text it’s works (with smtp protocol like your screecast).

    But when i set: $config['mailtype'] = ‘html’; in my config/email.php file it’s doesn’t works… Any ideas ?

    Thank you for this great tutorials ;)

  8. ChoiZ says:

    Ok i’ve got my answer in my config/email.php you have to specify :

    $config['charset'] = ‘iso-8859-1′;

    if you want to send an html mail with code igniter ;)

    Regards,

  9. red says:

    Jeffrey, this series is truly great. So great, I’m going to subscribe to the Plus program.

  10. Alexanxer says:

    I love this series! thank you very much. Keep up the good work Jeffrey!

  11. adelle says:

    That Such an explained Screencast .. so great . GO ON

  12. Kit says:

    I watched the first video in this series way before I understood MVC at all. It was a little advanced for me then, but now it’s perfect! Understanding frameworks has to be one of the most useful things I have ever learned. I spent all of yesterday trying to send HTML emails by hand when this thing does all the work for me!

  13. Kris says:

    Great tut as usual! Unfortunately, the ‘get the source code’ link is broken. If it matters, I am a premium member and am currently signed in.

  14. Kris says:

    I was finally able to download the source files. It didn’t work when I first logged into the member’s area and then navigated to this page.

    It did work when I navigated to this page and then logged on via the input boxes on this page and then hit the ‘back’ button on my browser.

    In what is probably an unrelated issue, half the time I reload this page, I get no css.

  15. Yvan says:

    Hey ! Great series, very clear and useful.

    But when I try to send the e-mail, I get the following error :

    A PHP Error was encountered

    Severity: Warning

    Message: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set()

    Filename: libraries/Email.php

    Line Number: 1519

    I tried to use the mail protocol (instead of ssl) and also tried to modify the smtp info in the php.ini file, but it doesn’t change anything. I just don’t understand. Has anyone any idea ? Could it be because I am at the office and can’t do everything I want on my computer ? I guess not, because I have full rights on my wamp folder and I can of course send e-mail, but there may be something I miss…

    Thanks

    • Edward says:

      Just email configurations error to call mail functions:

      Refer to Day 3: Sending Emails. to solve this error

      Cheers!

Comment Page 2 of 2 1 2

Add a Comment