@@ -20,7 +20,7 @@ |
||
20 | 20 | if ($this->query('contact_id')) { |
21 | 21 | $gateway = new Intraface_modules_newsletter_ListGateway($this->getKernel()); |
22 | 22 | $lists = $gateway->findByContactId($this->query('contact_id')); |
23 | - $tpl = $this->template->create(dirname(__FILE__) . '/templates/contact-lists'); |
|
23 | + $tpl = $this->template->create(dirname(__FILE__).'/templates/contact-lists'); |
|
24 | 24 | return $tpl->render($this, array('lists' => $lists)); |
25 | 25 | } |
26 | 26 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | { |
25 | 25 | $module = $this->getKernel()->module("newsletter"); |
26 | 26 | |
27 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/letters'); |
|
27 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/letters'); |
|
28 | 28 | return $smarty->render($this); |
29 | 29 | } |
30 | 30 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $module = $this->getKernel()->module("newsletter"); |
34 | 34 | |
35 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/letter-edit'); |
|
35 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/letter-edit'); |
|
36 | 36 | return $smarty->render($this); |
37 | 37 | } |
38 | 38 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | function renderHtml() |
47 | 47 | { |
48 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/show'); |
|
48 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/show'); |
|
49 | 49 | return $smarty->render($this); |
50 | 50 | } |
51 | 51 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | function renderHtml() |
21 | 21 | { |
22 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/index'); |
|
22 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/index'); |
|
23 | 23 | return $smarty->render($this); |
24 | 24 | } |
25 | 25 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | function renderHtmlCreate() |
49 | 49 | { |
50 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/edit'); |
|
50 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/edit'); |
|
51 | 51 | return $smarty->render($this); |
52 | 52 | } |
53 | 53 | |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | |
65 | 65 | function getValues() |
66 | 66 | { |
67 | - $values['from_date_dk'] = '01-01-' . date('Y'); |
|
68 | - $values['to_date_dk'] = '31-12-' . date('Y'); |
|
67 | + $values['from_date_dk'] = '01-01-'.date('Y'); |
|
68 | + $values['to_date_dk'] = '31-12-'.date('Y'); |
|
69 | 69 | return $values; |
70 | 70 | } |
71 | 71 |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | function renderHtml() |
12 | 12 | { |
13 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/edit'); |
|
13 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/edit'); |
|
14 | 14 | return $smarty->render($this); |
15 | 15 | } |
16 | 16 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | $data = array('total_debet' => $total_debet, 'total_credit' => $total_credit, 'account' => $account, 'year' => $year, 'accounts' => $accounts); |
22 | 22 | |
23 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/primosaldo'); |
|
23 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/primosaldo'); |
|
24 | 24 | return $smarty->render($this, $data); |
25 | 25 | } |
26 | 26 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | 'account' => $account |
86 | 86 | ); |
87 | 87 | |
88 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/primosaldo-edit'); |
|
88 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/primosaldo-edit'); |
|
89 | 89 | return $smarty->render($this, $data); |
90 | 90 | |
91 | 91 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $accounting_module = $this->getKernel()->useModule('accounting'); |
15 | 15 | |
16 | 16 | if (!$this->getYear()->readyForState($this->getModel()->get('this_date'))) { |
17 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/year-not-ready'); |
|
17 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/year-not-ready'); |
|
18 | 18 | return $smarty->render($this); |
19 | 19 | } |
20 | 20 | return new k_SeeOther($this->url('../')); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | return new k_SeeOther($this->url('selectyear')); |
31 | 31 | } |
32 | 32 | |
33 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/state/reminder'); |
|
33 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/state/reminder'); |
|
34 | 34 | return $smarty->render($this, array('voucher' => $voucher, 'year' => $this->getYear(), 'reminder' => $reminder, 'value' => $value, 'year' => $year)); |
35 | 35 | } |
36 | 36 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $available_from_index = array('year', 'search'); |
17 | 17 | |
18 | 18 | if (in_array($this->next(), $next) and !in_array($this->next(), $available_from_index)) { |
19 | - return new k_SeeOther($this->url('year/' . $this->getYear()->get('id') . '/' . $this->next())); |
|
19 | + return new k_SeeOther($this->url('year/'.$this->getYear()->get('id').'/'.$this->next())); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | return parent::dispatch(); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return new k_SeeOther($this->url('daybook')); |
40 | 40 | } |
41 | 41 | |
42 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
42 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
43 | 43 | return $smarty->render($this); |
44 | 44 | } |
45 | 45 |