2007年11月17日土曜日

foreach ($list->result() as $address) {

    $this->email->clear();

    $this->email->to($address->email);

    $this->email->from($this->config->item('admin_email'), 'Name');

    $this->email->subject('Newsletter for ' . date ("F jS, Y"));

    $this->email->message($this->load->view('newsletter/daily_newsletter', $data, true));

    $email_sent = $this->email->send();



// this is assigned to a var rather then just

// if ($this->email->send()) because I needed to manually

// toggle that back and forth, and it just seemed easier



    if ($email_sent) {

        $this->user_model->update_sent_issue($address->email, $issueNumber);

        $output .= '
  • ' . $address->email . '
  • ';
        } else {

            $output .= '
  • Could not send to ' . $address->email . '
  • ';
        }

    codeigniter mailループ

    http://codeigniter.com/forums/viewthread/47669/

    2007年11月13日火曜日

    アンドロイド開発キットDL

    http://code.google.com/android/download.html

    2007年11月9日金曜日

    codeigniterでRSS生成

    http://www.derekallard.com/blog/post/building-an-rss-feed-in-code-igniter/

    2007年10月31日水曜日

    テーブルCSS 空欄セル

    CSSでボーダーを指定しているテーブルのセルが空欄だった場合にwindowsのIEではつぶれて表示されてしまう。パワー回避策としては全てのセルに を記述する。楽な回避策は以下のCSSを記述する。

    table, td, th {
    border-collapse: collapse;
    margin: 0; 
    padding: 0;
    }

    2007年10月29日月曜日

    2007年10月27日土曜日

    prototype.js ショートカット関数

    $()
    document.getElementById()

    $F()
    Form.Element.getValues()

    2007年10月24日水曜日

    codeigniter でURLエンコードを含むURIを表示するには?

    config.phpに以下を記述

    $config['uri_protocol'] = "REQUEST_URI";
    $config['permitted_uri_chars'] = 'a-z 0-9~%.:_?+-';