<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Marko Bischof</title>
	<atom:link href="http://blog.mbischof.de/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mbischof.de</link>
	<description>yes it is - meine yiiframework snippets</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:59:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Brainstorming App</title>
		<link>http://blog.mbischof.de/brainstorming-app</link>
		<comments>http://blog.mbischof.de/brainstorming-app#comments</comments>
		<pubDate>Thu, 02 Feb 2012 19:59:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Prototypen]]></category>
		<category><![CDATA[Yii]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=935</guid>
		<description><![CDATA[Ganz einfache Sache. Mittels Brainstorming sollen Ideen und Lösungsvorschläge gefunden werden. Jeder kann Fragen, Probleme posten und jeder kann auch Ideen, Kommentare abliefern. Als Datenbank wird hier SQLite verwendet, somit ist keine Installation notwendig. Demo]]></description>
			<content:encoded><![CDATA[<p>Ganz einfache Sache. Mittels Brainstorming sollen Ideen und Lösungsvorschläge gefunden werden. Jeder kann Fragen, Probleme posten und jeder kann auch Ideen, Kommentare abliefern. Als Datenbank wird hier SQLite verwendet, somit ist keine Installation notwendig.</p>
<ul>
<li><a href="http://apps.mbischof.de/brainstorming">Demo</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/brainstorming-app/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>isUTF8</title>
		<link>http://blog.mbischof.de/isutf8</link>
		<comments>http://blog.mbischof.de/isutf8#comments</comments>
		<pubDate>Thu, 26 Jan 2012 16:55:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=916</guid>
		<description><![CDATA[function isUTF8&#40;$str&#41; &#123; return preg_match&#40;'/^([\x09\x0A\x0D\x20-\x7E]&#124;[\xC2][\xA0-\xBF]&#124;[\xC3-\xDF][\x80-\xBF]&#124;\xE0[\xA0-\xBF][\x80-\xBF]&#124;[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}&#124;\xED[\x80-\x9F][\x80-\xBF]&#124;\xF0[\x90-\xBF][\x80-\xBF]{2}&#124;[\xF1-\xF3][\x80-\xBF]{3}&#124;\xF4[\x80-\x8F][\x80-\xBF]{2})*$/', $str&#41;; &#125;]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> isUTF8<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/^([\x09\x0A\x0D\x20-\x7E]|[\xC2][\xA0-\xBF]|[\xC3-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*$/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/isutf8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CDetailView in Sidebar anzeigen</title>
		<link>http://blog.mbischof.de/detailview-in-sidebar</link>
		<comments>http://blog.mbischof.de/detailview-in-sidebar#comments</comments>
		<pubDate>Tue, 24 Jan 2012 17:05:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=911</guid>
		<description><![CDATA[Problem: die th-Spalte im DetailView ist per CSS 160px breit, passt nicht so einfach in eine schmale Sidebar Lösung: class UserInfo extends CWidget &#123; public $user; &#160; public function run&#40;&#41; &#123; Yii::app&#40;&#41;-&#62;clientScript-&#62;registerCss&#40;'sidebar', 'table.sidebar th {width: 100px;}'&#41;; $this-&#62;widget&#40;'zii.widgets.CDetailView', array&#40; 'data' =&#62; $this-&#62;user, 'htmlOptions' =&#62; array&#40;'class' =&#62; 'detail-view sidebar'&#41;, 'attributes' =&#62; array&#40; 'firstname', 'lastname' &#41;, &#41;&#41;; &#125; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>die th-Spalte im DetailView ist per CSS 160px breit, passt nicht so einfach in eine schmale Sidebar</p>
<p><strong>Lösung:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> UserInfo <span style="color: #000000; font-weight: bold;">extends</span> CWidget
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$user</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    Yii<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">clientScript</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">registerCss</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sidebar'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'table.sidebar th {width: 100px;}'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">widget</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'zii.widgets.CDetailView'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
      <span style="color: #0000ff;">'data'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span><span style="color: #339933;">,</span>
      <span style="color: #0000ff;">'htmlOptions'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'detail-view sidebar'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #0000ff;">'attributes'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'firstname'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'lastname'</span>
      <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/detailview-in-sidebar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQueryUI-Theme ändern</title>
		<link>http://blog.mbischof.de/jqueryui-theme-andern</link>
		<comments>http://blog.mbischof.de/jqueryui-theme-andern#comments</comments>
		<pubDate>Mon, 23 Jan 2012 17:50:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=905</guid>
		<description><![CDATA[Theme hier runterladen. Den Ordner redmond nach framework/web/js/source/jui/css kopieren. Datei jquery-ui-1.8.17.custom.css umbenennen in jquery-ui.css. Assets-Ordner leeren. //framework/zii/widgets/jui/CJuiWidget.php public $theme='redmond'; //view.php $this-&#62;beginWidget&#40;'zii.widgets.jui.CJuiDialog', array&#40; 'id'=&#62;'mydialog', // additional javascript options for the dialog plugin 'options'=&#62;array&#40; 'title'=&#62;'Dialog box 1', 'autoOpen'=&#62;false, &#41;, &#41;&#41;; &#160; echo 'dialog content here'; &#160; $this-&#62;endWidget&#40;'zii.widgets.jui.CJuiDialog'&#41;; &#160; // the link that may open the dialog echo [...]]]></description>
			<content:encoded><![CDATA[<p>Theme <a href="http://jqueryui.com/themeroller/" target="_blank">hier</a> runterladen.<br />
Den Ordner <em>redmond</em> nach framework/web/js/source/jui/css kopieren.<br />
Datei <em>jquery-ui-1.8.17.custom.css</em> umbenennen in <em>jquery-ui.css</em>.<br />
Assets-Ordner leeren.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//framework/zii/widgets/jui/CJuiWidget.php</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$theme</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'redmond'</span><span style="color: #339933;">;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//view.php</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">beginWidget</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'zii.widgets.jui.CJuiDialog'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'id'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'mydialog'</span><span style="color: #339933;">,</span>
    <span style="color: #666666; font-style: italic;">// additional javascript options for the dialog plugin</span>
    <span style="color: #0000ff;">'options'</span><span style="color: #339933;">=&gt;</span>array<span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'title'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Dialog box 1'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'autoOpen'</span><span style="color: #339933;">=&gt;</span>false<span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'dialog content here'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">endWidget</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'zii.widgets.jui.CJuiDialog'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// the link that may open the dialog</span>
<span style="color: #b1b100;">echo</span> CHtml<span style="color: #339933;">::</span><span style="color: #990000;">link</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'open dialog'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'#'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
   <span style="color: #0000ff;">'onclick'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'$(&quot;#mydialog&quot;).dialog(&quot;open&quot;); return false;'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/jqueryui-theme-andern/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Highcharts</title>
		<link>http://blog.mbischof.de/highcharts</link>
		<comments>http://blog.mbischof.de/highcharts#comments</comments>
		<pubDate>Thu, 19 Jan 2012 13:09:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii]]></category>
		<category><![CDATA[Extensions]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=902</guid>
		<description><![CDATA[Diagramme erstellen kann man mit der Highcharts-Extension: Highcharts Website Extension Site Demo Site JSONLint a JSON-Validator &#160;]]></description>
			<content:encoded><![CDATA[<p>Diagramme erstellen kann man mit der Highcharts-Extension:</p>
<ul>
<li><a href="http://www.highcharts.com/" target="_blank">Highcharts Website</a></li>
<li><a href="http://www.yiiframework.com/extension/highcharts" target="_blank">Extension Site</a></li>
<li><a href="http://www.highcharts.com/demo/" target="_blank">Demo Site</a></li>
<li><a href="http://jsonlint.com/" target="_blank">JSONLint a JSON-Validator</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/highcharts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>renderPortlets</title>
		<link>http://blog.mbischof.de/renderportlets</link>
		<comments>http://blog.mbischof.de/renderportlets#comments</comments>
		<pubDate>Mon, 16 Jan 2012 14:55:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=893</guid>
		<description><![CDATA[//views/layouts.main.php &#60;div class=&#34;span-6 last&#34;&#62; &#60;div id=&#34;sidebar&#34;&#62; &#60;?php $this-&#62;renderPortlets&#40;'right'&#41;; ?&#62; &#60;/div&#62; &#60;/div&#62; //components/Controller.php class Controller extends CController &#123; public $portlets = array&#40;&#41;; &#160; public function addPortlet&#40;$position, $portlet&#41; &#123; $this-&#62;portlets&#91;$position&#93;&#91;&#93; = $portlet; &#125; &#160; public function renderPortlets&#40;$position&#41; &#123; if &#40;isset&#40;$this-&#62;portlets&#91;$position&#93;&#41;&#41; &#123; foreach &#40;$this-&#62;portlets&#91;$position&#93; as $portlet&#41; &#123; $this-&#62;beginWidget&#40;'zii.widgets.CPortlet', array&#40; 'title' =&#62; $portlet&#91;'title'&#93;, &#41;&#41;; $this-&#62;widget&#40;$portlet&#91;'class'&#93;, $portlet&#91;'params'&#93;&#41;; $this-&#62;endWidget&#40;&#41;; &#125; &#125; [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">//views/layouts.main.php
&lt;div class=&quot;span-6 last&quot;&gt;
  &lt;div id=&quot;sidebar&quot;&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">renderPortlets</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'right'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;/div&gt;
&lt;/div&gt;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//components/Controller.php</span>
<span style="color: #000000; font-weight: bold;">class</span> Controller <span style="color: #000000; font-weight: bold;">extends</span> CController
<span style="color: #009900;">&#123;</span>   
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$portlets</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> addPortlet<span style="color: #009900;">&#40;</span><span style="color: #000088;">$position</span><span style="color: #339933;">,</span> <span style="color: #000088;">$portlet</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">portlets</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$position</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$portlet</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> renderPortlets<span style="color: #009900;">&#40;</span><span style="color: #000088;">$position</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">portlets</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$position</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">portlets</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$position</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$portlet</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">beginWidget</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'zii.widgets.CPortlet'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
          <span style="color: #0000ff;">'title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$portlet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
        <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">widget</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$portlet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'class'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$portlet</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'params'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">endWidget</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//views/article/view.php</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addPortlet</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'right'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
  <span style="color: #0000ff;">'class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'zii.widgets.CMenu'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Operations'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'params'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #666666; font-style: italic;">//Configuration CMenu</span>
    <span style="color: #0000ff;">'items'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
      <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'List Article'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'index'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Create Article'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'create'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Update Article'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Delete Article'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'#'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'linkOptions'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'submit'</span> <span style="color: #339933;">=&gt;</span>
        <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'delete'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$model</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'confirm'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Are you sure you want to delete this item?'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'htmlOptions'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'operations'</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addPortlet</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'right'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
  <span style="color: #0000ff;">'class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ArticleInfoWidget'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ArticleInfo'</span><span style="color: #339933;">,</span>
  <span style="color: #0000ff;">'params'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'article'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$model</span>
  <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/renderportlets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3-spaltiges Layout</title>
		<link>http://blog.mbischof.de/3-spaltiges-layout</link>
		<comments>http://blog.mbischof.de/3-spaltiges-layout#comments</comments>
		<pubDate>Sat, 07 Jan 2012 16:19:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=887</guid>
		<description><![CDATA[//css/main.css #sidebar-left &#123; padding: 20px 0 20px 20px; &#125; //protected/views/layouts/column3.php &#60;?php $this-&#62;beginContent&#40;'//layouts/main'&#41;; ?&#62; &#60;div class=&#34;container&#34;&#62; &#160; &#60;div class=&#34;span-6&#34;&#62; &#60;div id=&#34;sidebar-left&#34;&#62; &#60;?php $this-&#62;renderPortlets&#40;'left'&#41;; ?&#62; &#60;/div&#62; &#60;/div&#62; &#160; &#60;div class=&#34;span-12&#34;&#62; &#60;div id=&#34;content&#34;&#62; &#60;?php echo $content; ?&#62; &#60;/div&#62; &#60;/div&#62; &#160; &#60;div class=&#34;span-6 last&#34;&#62; &#60;div id=&#34;sidebar&#34;&#62; &#60;?php $this-&#62;renderPortlets&#40;'right'&#41;; ?&#62; &#60;/div&#62; &#60;/div&#62; &#160; &#60;/div&#62; &#60;?php $this-&#62;endContent&#40;&#41;; ?&#62; //Controller.php public $layout [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">//css/main<span style="color: #6666ff;">.css</span>
<span style="color: #cc00cc;">#sidebar-</span><span style="color: #000000; font-weight: bold;">left</span>
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">//protected/views/layouts/column3.php
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">beginContent</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'//layouts/main'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;container&quot;&gt;
&nbsp;
    &lt;div class=&quot;span-6&quot;&gt;
        &lt;div id=&quot;sidebar-left&quot;&gt;
	    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">renderPortlets</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'left'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;
    &lt;/div&gt;
&nbsp;
    &lt;div class=&quot;span-12&quot;&gt;
        &lt;div id=&quot;content&quot;&gt;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;
    &lt;/div&gt;
&nbsp;
    &lt;div class=&quot;span-6 last&quot;&gt;
        &lt;div id=&quot;sidebar&quot;&gt;
	    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">renderPortlets</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'right'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;
    &lt;/div&gt;
&nbsp;
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">endContent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//Controller.php</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$layout</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'//layouts/column3'</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/3-spaltiges-layout/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phploc yiiframework 1.1.9</title>
		<link>http://blog.mbischof.de/phploc-yiiframework-1-1-9</link>
		<comments>http://blog.mbischof.de/phploc-yiiframework-1-1-9#comments</comments>
		<pubDate>Sun, 01 Jan 2012 10:31:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii]]></category>
		<category><![CDATA[phploc]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=880</guid>
		<description><![CDATA[C:\Users\mbi\Downloads\yii-1.1.9.r3527&#62;phploc framework phploc 1.6.1 by Sebastian Bergmann. &#160; Directories: 163 Files: 1471 &#160; Lines of Code (LOC): 596876 Cyclomatic Complexity / Lines of Code: 0.02 Comment Lines of Code (CLOC): 50628 Non-Comment Lines of Code (NCLOC): 546248 &#160; Namespaces: 0 Interfaces: 28 Classes: 629 Abstract: 54 (8.59%) Concrete: 575 (91.41%) Average Class Length (NCLOC): 122 [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="plain" style="font-family:monospace;">C:\Users\mbi\Downloads\yii-1.1.9.r3527&gt;phploc framework
phploc 1.6.1 by Sebastian Bergmann.
&nbsp;
Directories:                                        163
Files:                                             1471
&nbsp;
Lines of Code (LOC):                             596876
  Cyclomatic Complexity / Lines of Code:           0.02
Comment Lines of Code (CLOC):                     50628
Non-Comment Lines of Code (NCLOC):               546248
&nbsp;
Namespaces:                                           0
Interfaces:                                          28
Classes:                                            629
  Abstract:                                          54 (8.59%)
  Concrete:                                         575 (91.41%)
  Average Class Length (NCLOC):                     122
Methods:                                           4407
  Scope:
    Non-Static:                                    4074 (92.44%)
    Static:                                         333 (7.56%)
  Visibility:
    Public:                                        3397 (77.08%)
    Non-Public:                                    1010 (22.92%)
  Average Method Length (NCLOC):                     17
  Cyclomatic Complexity / Number of Methods:       3.41
&nbsp;
Anonymous Functions:                                  0
Functions:                                            0
&nbsp;
Constants:                                          200
  Global constants:                                  46
  Class constants:                                  154</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/phploc-yiiframework-1-1-9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Documentation Driven Development</title>
		<link>http://blog.mbischof.de/documentation-driven-development</link>
		<comments>http://blog.mbischof.de/documentation-driven-development#comments</comments>
		<pubDate>Wed, 14 Dec 2011 20:00:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=864</guid>
		<description><![CDATA[Tools, die für DDD oder generell für Doku-Erstellung geeignet wären: Pencil oder Balsamiq für die Erstellung von Frontend-Mockups MySQL Workbench Confluence für die Dokumentation]]></description>
			<content:encoded><![CDATA[<p>Tools, die für DDD oder generell für Doku-Erstellung geeignet wären:</p>
<ul>
<li><a href="http://pencil.evolus.vn/en-US/Home.aspx" target="_blank">Pencil</a> oder <a href="http://www.balsamiq.com/" target="_blank">Balsamiq</a> für die Erstellung von Frontend-Mockups</li>
<li><a href="http://www.mysql.de/products/workbench/" target="_blank">MySQL Workbench</a></li>
<li><a href="http://www.atlassian.com/de/software/confluence/overview" target="_blank">Confluence</a> für die Dokumentation</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/documentation-driven-development/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mögliche Ordnerstruktur für größere Sites</title>
		<link>http://blog.mbischof.de/moegliche-ordnerstruktur-fuer-groessere-sites</link>
		<comments>http://blog.mbischof.de/moegliche-ordnerstruktur-fuer-groessere-sites#comments</comments>
		<pubDate>Sun, 11 Dec 2011 14:03:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Yii]]></category>

		<guid isPermaLink="false">http://blog.mbischof.de/?p=860</guid>
		<description><![CDATA[ist hier erklärt bin ich drauf gestoßen, als ich mich fragte, ob es ein Backend-Modul geben sollte oder eine Backend-Application und finde den Ansatz ziemlich ok Grundidee: _mysite backend www (http://backend.mysite.vs) index.php common libraries yii console frontend www (http://www.mysite.vs) index.php]]></description>
			<content:encoded><![CDATA[<p>ist <a href="http://www.yiiframework.com/wiki/155/the-directory-structure-of-the-yii-project-site/">hier</a> erklärt</p>
<p>bin ich drauf gestoßen, als ich mich fragte, ob es ein Backend-Modul geben sollte oder eine Backend-Application und finde den Ansatz ziemlich ok</p>
<p>Grundidee:</p>

<div class="wp_syntax"><div class="code"><pre class="plain" style="font-family:monospace;">_mysite
    backend
        www (http://backend.mysite.vs)
            index.php
    common
        libraries
            yii
    console
    frontend
        www (http://www.mysite.vs)
            index.php</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mbischof.de/moegliche-ordnerstruktur-fuer-groessere-sites/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

