SHARE
TWEET

slug

freddy0512 Apr 23rd, 2015 (edited) 364 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. <?php  
  4. $no = $offset;
  5. foreach($data as $row ) {
  6. ?>
  7. <h3 class="judul"><a href="<?php echo base_url() ?><?php echo $lang; ?>/web/artikel/<?= $row->id_artikel ?>"><?php echo $row->judul ?></a></h3>
  8.                                 <img src="<?php echo base_url()?>image/artikel/<?php echo $row->gambar?>" class="responsive artikel-image">
  9.                                 <p class="text-justify artikel"><?php  echo substr($row->ringkas,0,240) ; ?>
  10.                                 <br>
  11.  
  12. <!-------------how can i make slug being dinamis cause when change languange i debugging slug still old slug before change to another lang -------------->
  13.                                 <a href="<?php echo base_url() ?><?php echo $lang; ?>/web/artikel/<?= $row->id_artikel ?>/<?= $row->slug ?>">Read More</a>
  14.                                 <hr>  
  15. <?php  }  ?>
  16.                        
  17. <br>
  18. <?php echo $halaman ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top