title: How to use call a plugin inside my view in cakephp
body: <p>I have a portion of code/view that I am going to use in many places on my cakephp application, it's a filter that I want to add to certain listings of some table.</p>
  
  <p>I don't know if I have to use a view element and embed some php code in it, or create a plugin that I will call each time I need this filter.</p>
  
  <p>I tried both ways but I have some difficulties.</p>
  
  <p>Using Element view :</p>
  
  <pre><code>&lt;?php 
      Controller::loadModel('City');
      $cities = $this-&gt;City-&gt;find('all');
  ?&gt;
  &lt;select name="city" id="city" class="input-medium"&gt;
      &lt;option value=""&gt;City ...&lt;/option&gt;
      &lt;?php foreach ($cities as $city): ?&gt;
          &lt;option value="&lt;?php echo $city['City']['id']; ?&gt;"&gt;&lt;?php echo $city['City']['name']; ?&gt;&lt;/option&gt;
      &lt;?php endforeach; ?&gt;
      &lt;?php unset($city); ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Using this results on the following error : </p>
  
  <pre><code>Missing Helper
  Error: usesHelper could not be found.
  
  Error: Create the class usesHelper below in file: app\View\Helper\usesHelper.php
  </code></pre>
  
  <p>Using a plugin :</p>
  
  <p>I did follow the tutorial on the official site but I have no idea how to call the the plugin's view (the filter) into my view.</p>
  
  <p>Please Help !</p>
  
  <p>Thank you.</p>