Welcome Guest, Not a member yet? Register   Sign In
[resolved]Function in controller
#9

[eluser]John_Betong[/eluser]
Hi Isabelle,

Try this in your view:

Code:
function show_row($row) {
  $list = explode(",", $row->tags);
  $cnt     = count($list);
?>

  <h1>&lt;?= $row->app_name ?&gt;</h1>
    
  <p>
      <span class="pink">
          Description :             &lt;?= $row->app_short_description    ?&gt;
      </span>
  </p>
  <p>      
    <span class="pink">
        Url :
    </span>
    <a     href    =    "&lt;?= $row->app_url ?&gt;"
        title    =    "&lt;?= $row->app_short_description ?&gt;"
    >
        &lt;?= $row->app_url ?&gt;
    </a>
  </p>
  <p>      
    <span class="pink">
        Description :
    </span>
    <small>
        &lt;?= $row->app_description    ?&gt;
        </small></p><br />
    
    <small>
      <span class="pink">
        Mots-clĂ© :
      </span>
      <a href="" title="">
         &lt;?= $cnt ?&gt;
      </a> |
      </small>
  </p>&lt;!-- </div> --&gt;
        
&lt;?php
}// endfunc show_row($row)  

  foreach($query->result() as $row):
         show_row($row);
  endforeach;
  echo '</div>';


Messages In This Thread
[resolved]Function in controller - by El Forum - 10-22-2007, 06:25 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 06:32 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 06:35 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 06:48 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 06:59 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 07:08 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 07:11 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 07:11 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 07:31 AM
[resolved]Function in controller - by El Forum - 10-22-2007, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB