the sun's not yellow it is chicken

Category: Lucas (Page 2 of 2)

Today’s Aha-Erlebnis

  • There’s a second, optional argument to CodeIgniter’s uri segment helper which allows for a fall back default in cases where the uri segment returns false:
    $this->uri->segment(2, date('Y'));
  • When loading a CI view, there’s an optional third argument which, when set to true, allows you to assign the view to a variable, instead of directly outputting it to the browser. Very very handy when constructing RSS feeds, PDF-downloads, or html emails:
    //mail config...
    $msg = $this->load->view('email_template', $data, TRUE);
    $this->email->message($msg);
    $this->email->send();
  • At age two and a half my son is a confirmed, certified Apple nerd (do disregard Khadaffi audio in the back):

  • Today’s favorite Beatles tune has to be Golden Slumbers.
Newer posts »

© 2024 moonbug.org

Theme by Anders NorenUp ↑