{"id":374,"date":"2011-05-10T21:20:48","date_gmt":"2011-05-10T19:20:48","guid":{"rendered":"https:\/\/www.moonbug.org\/log\/?p=374"},"modified":"2011-05-10T23:50:19","modified_gmt":"2011-05-10T21:50:19","slug":"todays-aha-erlebnis","status":"publish","type":"post","link":"https:\/\/www.moonbug.org\/log\/2011\/05\/10\/todays-aha-erlebnis\/","title":{"rendered":"Today&#8217;s Aha-Erlebnis"},"content":{"rendered":"<ul>\n<li>There&#8217;s a second, optional argument to CodeIgniter&#8217;s uri segment helper which allows for a fall back default in cases where the uri segment returns false:<br \/>\n<code>$this->uri->segment(2, date('Y'));<\/code><\/li>\n<li>When loading a CI view, there&#8217;s an optional third argument which, when set to <i>true<\/i>, 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:<br \/>\n<code>\/\/mail config...<br \/>\n$msg = $this->load->view('email_template', $data, TRUE);<br \/>\n$this->email->message($msg);<br \/>\n$this->email->send();<\/code><\/li>\n<li>At age two and a half my son is a confirmed, certified Apple nerd (do disregard Khadaffi audio in the back):\n<p><iframe loading=\"lazy\" src=\"http:\/\/player.vimeo.com\/video\/21452439?title=0&amp;byline=0&amp;portrait=0\" width=\"600\" height=\"450\" frameborder=\"0\"><\/iframe>\n<\/li>\n<li>Today&#8217;s favorite Beatles tune has to be <i>Golden Slumbers<\/i>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a second, optional argument to CodeIgniter&#8217;s uri segment helper which allows for a fall back default in cases where the uri segment returns false: $this->uri->segment(2, date(&#8216;Y&#8217;)); When loading a CI view, there&#8217;s an optional third argument which, when set to true, allows you to assign the view to a variable, instead of directly outputting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[28,24,12,29],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts\/374"}],"collection":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":21,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":397,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/posts\/374\/revisions\/397"}],"wp:attachment":[{"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonbug.org\/log\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}