TIP: Use Markdown or, <pre> for multi line code blocks / <code> for inline code.
These forums are read-only and for archival purposes only!
Please join our new forums at discourse.kohanaframework.org
Kohana Database
  • Hello,

    i'm creating a small shopping cart and i'm saving my products in a session (no database). My session sets the product id. But how can get the correct product from my database that matches the product id in my stored session?


    `foreach ( (isset($shopcart) && is_array($shopcart) && count($shopcart) > 0) ? $shopcart : array() as $item )
        $this->template->shopcart =  $shopcart;

    <?php if( isset( $shopcart ) ): ?> <?php foreach ($shopcart as $item): ?> <?php echo $item['id'] ?> <?php endforeach ?> <?php endif; ?>

  • Placed my first topic in the wrong cato. sorry about that guys!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion