[eluser]bang_dayat[/eluser]
[quote author="JanDoToDo" date="1268528416"]Its called a ternary operator. Its a shorthand IF statement. it tests the first condition, i.e. isset($_SESSION['cart']) and then if that returns true it assigns $cart a value of $_SESSION['cart'] else it assigns it as an empty array fo you to work with
[/quote]
yeaa,,I got it,..you and wikipedia really help me bout that "ternary operator"...
my last question is,,I call the ci session
Quote:$this->session->set_flashdata('conf msg',"anda telah menambah produk ini ke keranjang belanja");
then in the view I call that session look like this:
Quote:<?php
if($this->session->flashdata('conf_msg')){
echo "<div class='message'>";
echo $this->session->flashdata('conf_msg');
echo "</div>";
}
?>
but that message not appear in the browser,..perhaps you can help bout that,..
really Thanx,..