0

I would like the view the country list, state list and city list in the layout side menu in all the pages.

<div class="container side-menu">

            <div class="row">
                <div class="col-md-3">
                    <?php $countries = array();?>
                    <select class="form-control">
                        <option value="">All</option>
                        <?php foreach($countries as $country) { ?>
                        <?php echo "<option>".$country['name']."</option>"; ?>
                        <?php } ?>
                    </select>
                </div>

                <div class="col-md-3">
                    <?php $categories = array(); ?>
                    <select class="form-control">
                        <option value="">All</option>
                        <?php foreach($categories as $category) { ?>
                        <?php echo "<option>".$category['name']."</option>"; ?>
                        <?php } ?>
                    </select>
                </div>
user3929758
  • 233
  • 2
  • 3
  • 15
  • And what is the problem with your current code? What exactly is the question? – Wilt May 19 '16 at 09:32
  • Possible duplicate of [How to pass variables to layout.phtml globally in ZF2?](http://stackoverflow.com/questions/18439364/how-to-pass-variables-to-layout-phtml-globally-in-zf2) – blackbishop May 19 '16 at 15:38

0 Answers0