| @@ 21-28 (lines=8) @@ | ||
| 18 | return $temp; |
|
| 19 | } |
|
| 20 | ||
| 21 | function view( $_path, $_parameters = [] ) { |
|
| 22 | try { |
|
| 23 | $temp = jBlockFile("bundles/views/$_path", $_parameters); |
|
| 24 | } catch (Exception $e) { |
|
| 25 | throw new JException($e->getMessage(), 1); |
|
| 26 | } |
|
| 27 | return $temp; |
|
| 28 | } |
|
| 29 | ||
| 30 | function sql( $_path, $_parameters = [] ) { |
|
| 31 | try { |
|
| @@ 30-37 (lines=8) @@ | ||
| 27 | return $temp; |
|
| 28 | } |
|
| 29 | ||
| 30 | function sql( $_path, $_parameters = [] ) { |
|
| 31 | try { |
|
| 32 | $temp = jBlockFileMan("bundles/sql/$_path", "sql", $_parameters); |
|
| 33 | } catch (Exception $e) { |
|
| 34 | throw new JException($e->getMessage(), 1); |
|
| 35 | } |
|
| 36 | return $temp; |
|
| 37 | } |
|
| 38 | ||
| 39 | function jBlockFileMan( $_path, $_type, $_parameters = [] ) { |
|
| 40 | try { |
|