Facing difficulty in moving the two id's

Posted by user1806560 on Stack Overflow See other posts from Stack Overflow or by user1806560
Published on 2012-11-18T04:53:58Z Indexed on 2012/11/18 5:00 UTC
Read the original article Hit count: 126

Filed under:
|

By means of <?php echo $productlist->productid;?> in href i am passing the productid,its fine based on that i can able to display the items. The url is looking like this when i am passing like this http://localhost/sample/index.php/userlogin/items/35 .

<ul class="left_menu">
                <li class="odd"><a href="<?php echo  BASE_INDEX_URL;?>/userlogin/items/<?php echo $productlist->productid;?>">
                        <?php 
                         echo $productlist->productname;
                        ?>
                    </a></li>
</ul>

My model is taking the value like this

public function items($productid=0)
    {
    }

But i want to pass one more id as categoryid in the href, how can i do that

My model is taking the value like this(for 2 parameters)

  public function items($productid=0,$categoryid=0)
    {

    }

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about codeigniter-2