1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

  /**
   * construit le html des modules
   * @param  varchar $module
   * @param  array   $options
   */
  public static function renderModule($module, $options)
  {
    extract($options);
    switch ($module)
    {
      case 'order/countProduct':
        return include_component('order', 'countProduct');
        break;
      case 'pharmacy/pharmacy_contact':
        return include_partial('pharmacy/pharmacy_contact', compact('pharmacy'));
        break;
      case 'user/titulaire':
        return include_component('user', 'titulaire', compact('pharmacy'));
        break;
      case 'pharmacy/header_links':
        return include_partial('pharmacy/header_links', compact('pharmacy'));
        break;
      case 'pharmacy/menu':
        return include_component('pharmacy', 'menu');
        break;
    }
  }