title: Only variables should be passed by reference -ckeditor -codeigniter
body: <p>I try to make text editor using <strong>ckeditor</strong> in my <strong>codeigniter</strong> project. But I always get <code>Only variables should be passed by reference</code> error whenever I call method <code>display_ckeditor</code> from my view.</p>
  
  <p>This is my error log:</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Runtime Notice
  
  Message: Only variables should be passed by reference
  
  Filename: helpers/ckeditor_helper.php
  
  Line Number: 65
  
  Backtrace:
  
  File: /var/www/html/webapp/webappadmin/application/helpers/ckeditor_helper.php
  Line: 65
  Function: _error_handler
  
  File: /var/www/html/webapp/webappadmin/application/helpers/ckeditor_helper.php
  Line: 90
  Function: cke_create_instance
  
  File: /var/www/html/webapp/webappadmin/application/views/ubahabout.php
  Line: 7
  Function: display_ckeditor
  
  File: /var/www/html/webapp/webappadmin/application/controllers/Controll.php
  Line: 187
  Function: view
  
  File: /var/www/html/webapp/webappadmin/index.php
  Line: 292
  Function: require_once
  </code></pre>
  
  <p>Here's my controller that load view:</p>
  
  <pre><code>public function ubahabout($id,$tab,$lang){
      //Ckeditor's configuration
      $data['ckeditor'] = array(
  
          //ID of the textarea that will be replaced
          'id'    =&gt;  'content',
          'path'  =&gt;  'js/ckeditor',
  
          //Optionnal values
          'config' =&gt; array(
              'toolbar'   =&gt;  "Full",     //Using the Full toolbar
              'width'     =&gt;  "550px",    //Setting a custom width
              'height'    =&gt;  '100px',    //Setting a custom height
  
          ),
  
          //Replacing styles from the "Styles tool"
          'styles' =&gt; array(
  
              //Creating a new style named "style 1"
              'style 1' =&gt; array (
                  'name'      =&gt;  'Blue Title',
                  'element'   =&gt;  'h2',
                  'styles' =&gt; array(
                      'color'     =&gt;  'Blue',
                      'font-weight'   =&gt;  'bold'
                  )
              ),
  
              //Creating a new style named "style 2"
              'style 2' =&gt; array (
                  'name'  =&gt;  'Red Title',
                  'element'   =&gt;  'h2',
                  'styles' =&gt; array(
                      'color'         =&gt;  'Red',
                      'font-weight'       =&gt;  'bold',
                      'text-decoration'   =&gt;  'underline'
                  )
              )               
          )
      );
      $data['myid']=$id;
      $data['mylang']=$lang;
      $data['mytab']=$tab;
      $this-&gt;load-&gt;view('ubahabout',$data);    // &lt;---- ERROR GOES HERE
  }
  </code></pre>
  
  <p>and this is my view (ubahabout.php):</p>
  
  <pre><code>&lt;div class="main-container"&gt;
  &lt;?php
  $content = $this-&gt;contentmodel-&gt;load_main_content_by_id($myid);
  ?&gt;
  &lt;textarea name="content" id="content" &gt;&lt;p&gt;Example data&lt;/p&gt;&lt;/textarea&gt;
  &lt;?php 
  echo display_ckeditor($ckeditor);     // &lt;---- ERROR GOES HERE ?&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>The error points out to the line 90 and 65 inside <strong>ckeditor_helper.php</strong>, and I still couldn't figure out what's the problem. Here's those line in ckeditor_helper.php:</p>
  
  <p>line 90: <code>$return .= cke_create_instance($data);</code>, </p>
  
  <p>line 65: <code>if($k !== end(array_keys($data['config']))) {</code></p>
  
  <p>Please help me. Thanks in advance.</p>