@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Common test objects used in DebugKit tests |
|
4 | - * |
|
5 | - * PHP 5 |
|
6 | - * |
|
7 | - * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | - * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | - * |
|
10 | - * Licensed under The MIT License |
|
11 | - * Redistributions of files must retain the above copyright notice. |
|
12 | - * |
|
13 | - * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | - * @link http://cakephp.org CakePHP(tm) Project |
|
15 | - * @since DebugKit 0.1 |
|
16 | - * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | - */ |
|
3 | + * Common test objects used in DebugKit tests |
|
4 | + * |
|
5 | + * PHP 5 |
|
6 | + * |
|
7 | + * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | + * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | + * |
|
10 | + * Licensed under The MIT License |
|
11 | + * Redistributions of files must retain the above copyright notice. |
|
12 | + * |
|
13 | + * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | + * @link http://cakephp.org CakePHP(tm) Project |
|
15 | + * @since DebugKit 0.1 |
|
16 | + * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | + */ |
|
18 | 18 | |
19 | 19 | App::uses('FireCake', 'DebugKit.Lib'); |
20 | 20 |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Toolbar Abstract Helper Test Case |
|
4 | - * |
|
5 | - * PHP 5 |
|
6 | - * |
|
7 | - * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | - * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | - * |
|
10 | - * Licensed under The MIT License |
|
11 | - * Redistributions of files must retain the above copyright notice. |
|
12 | - * |
|
13 | - * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | - * @link http://cakephp.org CakePHP(tm) Project |
|
15 | - * @since DebugKit 0.1 |
|
16 | - * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | - **/ |
|
3 | + * Toolbar Abstract Helper Test Case |
|
4 | + * |
|
5 | + * PHP 5 |
|
6 | + * |
|
7 | + * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | + * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | + * |
|
10 | + * Licensed under The MIT License |
|
11 | + * Redistributions of files must retain the above copyright notice. |
|
12 | + * |
|
13 | + * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | + * @link http://cakephp.org CakePHP(tm) Project |
|
15 | + * @since DebugKit 0.1 |
|
16 | + * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | + **/ |
|
18 | 18 | |
19 | 19 | $path = CakePlugin::path('DebugKit'); |
20 | 20 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | App::uses('ToolbarHelper', 'DebugKit.View/Helper'); |
26 | 26 | App::uses('FirePhpToolbarHelper', 'DebugKit.View/Helper'); |
27 | 27 | |
28 | -require_once $path . 'Test' . DS . 'Case' . DS . 'TestFireCake.php'; |
|
28 | +require_once $path.'Test'.DS.'Case'.DS.'TestFireCake.php'; |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * Class FirePhpToolbarHelperTestCase |
@@ -63,9 +63,9 @@ discard block |
||
63 | 63 | public static function setupBeforeClass() { |
64 | 64 | App::build(array( |
65 | 65 | 'View' => array( |
66 | - CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Test' . DS . 'test_app' . DS . 'View' . DS, |
|
67 | - APP . 'Plugin' . DS . 'DebugKit' . DS . 'View' . DS, |
|
68 | - CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'View' . DS |
|
66 | + CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'Test'.DS.'test_app'.DS.'View'.DS, |
|
67 | + APP.'Plugin'.DS.'DebugKit'.DS.'View'.DS, |
|
68 | + CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'View'.DS |
|
69 | 69 | )), true); |
70 | 70 | } |
71 | 71 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @return void |
96 | 96 | */ |
97 | 97 | public function testMakeNeatArray() { |
98 | - $this->Toolbar->makeNeatArray(array(1,2,3)); |
|
98 | + $this->Toolbar->makeNeatArray(array(1, 2, 3)); |
|
99 | 99 | $result = $this->firecake->sentHeaders; |
100 | 100 | $this->assertTrue(isset($result['X-Wf-1-1-1-1'])); |
101 | 101 | $this->assertRegexp('/\[1,2,3\]/', $result['X-Wf-1-1-1-1']); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $this->Controller->Components->trigger('startup', array($this->Controller)); |
124 | 124 | $this->Controller->Components->trigger('beforeRender', array($this->Controller)); |
125 | 125 | $result = $this->Controller->render(); |
126 | - $this->assertNotRegExp('/debug-toolbar/', (string)$result); |
|
126 | + $this->assertNotRegExp('/debug-toolbar/', (string) $result); |
|
127 | 127 | $result = $this->firecake->sentHeaders; |
128 | 128 | $this->assertTrue(is_array($result)); |
129 | 129 | } |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Toolbar HTML Helper Test Case |
|
4 | - * |
|
5 | - * PHP 5 |
|
6 | - * |
|
7 | - * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | - * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | - * |
|
10 | - * Licensed under The MIT License |
|
11 | - * Redistributions of files must retain the above copyright notice. |
|
12 | - * |
|
13 | - * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | - * @link http://cakephp.org CakePHP(tm) Project |
|
15 | - * @since DebugKit 0.1 |
|
16 | - * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | - */ |
|
3 | + * Toolbar HTML Helper Test Case |
|
4 | + * |
|
5 | + * PHP 5 |
|
6 | + * |
|
7 | + * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | + * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | + * |
|
10 | + * Licensed under The MIT License |
|
11 | + * Redistributions of files must retain the above copyright notice. |
|
12 | + * |
|
13 | + * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | + * @link http://cakephp.org CakePHP(tm) Project |
|
15 | + * @since DebugKit 0.1 |
|
16 | + * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | + */ |
|
18 | 18 | |
19 | 19 | App::uses('View', 'View'); |
20 | 20 | App::uses('Controller', 'Controller'); |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | public static function setupBeforeClass() { |
39 | 39 | App::build(array( |
40 | 40 | 'View' => array( |
41 | - CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Test' . DS . 'test_app' . DS . 'View' . DS, |
|
42 | - APP . 'Plugin' . DS . 'DebugKit' . DS . 'View' . DS, |
|
43 | - CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'View' . DS |
|
41 | + CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'Test'.DS.'test_app'.DS.'View'.DS, |
|
42 | + APP.'Plugin'.DS.'DebugKit'.DS.'View'.DS, |
|
43 | + CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'View'.DS |
|
44 | 44 | ) |
45 | 45 | ), true); |
46 | 46 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $result = $this->Toolbar->makeNeatArray($in); |
94 | 94 | $expected = array( |
95 | 95 | 'ul' => array('class' => 'neat-array depth-0'), |
96 | - '<li', '<strong', '0' , '/strong', '(false)', '/li', |
|
96 | + '<li', '<strong', '0', '/strong', '(false)', '/li', |
|
97 | 97 | '/ul' |
98 | 98 | ); |
99 | 99 | $this->assertTags($result, $expected); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $result = $this->Toolbar->makeNeatArray($in); |
103 | 103 | $expected = array( |
104 | 104 | 'ul' => array('class' => 'neat-array depth-0'), |
105 | - '<li', '<strong', '0' , '/strong', '(null)', '/li', |
|
105 | + '<li', '<strong', '0', '/strong', '(null)', '/li', |
|
106 | 106 | '/ul' |
107 | 107 | ); |
108 | 108 | $this->assertTags($result, $expected); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $result = $this->Toolbar->makeNeatArray($in); |
112 | 112 | $expected = array( |
113 | 113 | 'ul' => array('class' => 'neat-array depth-0'), |
114 | - '<li', '<strong', '0' , '/strong', '(true)', '/li', |
|
114 | + '<li', '<strong', '0', '/strong', '(true)', '/li', |
|
115 | 115 | '/ul' |
116 | 116 | ); |
117 | 117 | $this->assertTags($result, $expected); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $result = $this->Toolbar->makeNeatArray($in); |
121 | 121 | $expected = array( |
122 | 122 | 'ul' => array('class' => 'neat-array depth-0'), |
123 | - '<li', '<strong', '0' , '/strong', '(empty)', '/li', |
|
123 | + '<li', '<strong', '0', '/strong', '(empty)', '/li', |
|
124 | 124 | '/ul' |
125 | 125 | ); |
126 | 126 | $this->assertTags($result, $expected); |
@@ -382,8 +382,8 @@ discard block |
||
382 | 382 | */ |
383 | 383 | public function testTable() { |
384 | 384 | $rows = array( |
385 | - array(1,2), |
|
386 | - array(3,4), |
|
385 | + array(1, 2), |
|
386 | + array(3, 4), |
|
387 | 387 | ); |
388 | 388 | $result = $this->Toolbar->table($rows); |
389 | 389 | $expected = array( |
@@ -69,9 +69,9 @@ |
||
69 | 69 | $this->_viewPaths = App::path('views'); |
70 | 70 | App::build(array( |
71 | 71 | 'View' => array( |
72 | - CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Test' . DS . 'test_app' . DS . 'View' . DS, |
|
73 | - APP . 'Plugin' . DS . 'DebugKit' . DS . 'View' . DS, |
|
74 | - CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'View' . DS |
|
72 | + CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'Test'.DS.'test_app'.DS.'View'.DS, |
|
73 | + APP.'Plugin'.DS.'DebugKit'.DS.'View'.DS, |
|
74 | + CAKE_CORE_INCLUDE_PATH.DS.'Cake'.DS.'View'.DS |
|
75 | 75 | )), true); |
76 | 76 | } |
77 | 77 |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Test Panel of test_app |
|
4 | - * |
|
5 | - * PHP 5 |
|
6 | - * |
|
7 | - * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | - * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | - * |
|
10 | - * Licensed under The MIT License |
|
11 | - * Redistributions of files must retain the above copyright notice. |
|
12 | - * |
|
13 | - * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | - * @link http://cakephp.org CakePHP(tm) Project |
|
15 | - * @since DebugKit 0.1 |
|
16 | - * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | - */ |
|
3 | + * Test Panel of test_app |
|
4 | + * |
|
5 | + * PHP 5 |
|
6 | + * |
|
7 | + * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
|
8 | + * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
9 | + * |
|
10 | + * Licensed under The MIT License |
|
11 | + * Redistributions of files must retain the above copyright notice. |
|
12 | + * |
|
13 | + * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
|
14 | + * @link http://cakephp.org CakePHP(tm) Project |
|
15 | + * @since DebugKit 0.1 |
|
16 | + * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|
17 | + */ |
|
18 | 18 | |
19 | 19 | App::uses('DebugPanel', 'DebugKit.Lib'); |
20 | 20 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return; |
57 | 57 | } |
58 | 58 | DebugTimer::start( |
59 | - 'render_' . basename($viewFile), |
|
59 | + 'render_'.basename($viewFile), |
|
60 | 60 | __d('debug_kit', 'Rendering %s', |
61 | 61 | Debugger::trimPath($viewFile)) |
62 | 62 | ); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | if ($this->_renderComplete) { |
73 | 73 | return; |
74 | 74 | } |
75 | - DebugTimer::stop('render_' . basename($viewFile)); |
|
75 | + DebugTimer::stop('render_'.basename($viewFile)); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | $nextDepth = $currentDepth + 1; |
61 | 61 | $out = "<ul class=\"$className\">"; |
62 | - if (!is_array($values)) { |
|
62 | + if ( ! is_array($values)) { |
|
63 | 63 | if (is_bool($values)) { |
64 | 64 | $values = array($values); |
65 | 65 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $values[] = '(empty)'; |
72 | 72 | } |
73 | 73 | foreach ($values as $key => $value) { |
74 | - $out .= '<li><strong>' . h($key, $doubleEncode) . '</strong>'; |
|
74 | + $out .= '<li><strong>'.h($key, $doubleEncode).'</strong>'; |
|
75 | 75 | if (is_array($value) && count($value) > 0) { |
76 | 76 | $out .= '(array)'; |
77 | 77 | } elseif (is_object($value)) { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $value instanceof Iterator || |
110 | 110 | is_array($value) || |
111 | 111 | $isObject |
112 | - ) && !empty($value) |
|
112 | + ) && ! empty($value) |
|
113 | 113 | ) { |
114 | 114 | $out .= $this->makeNeatArray($value, $openDepth, $nextDepth, $doubleEncode); |
115 | 115 | } else { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * @return string |
142 | 142 | */ |
143 | 143 | public function panelStart($title, $anchor) { |
144 | - $link = $this->Html->link($title, '#' . $anchor); |
|
144 | + $link = $this->Html->link($title, '#'.$anchor); |
|
145 | 145 | return $link; |
146 | 146 | } |
147 | 147 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | */ |
155 | 155 | public function table($rows, $headers = array()) { |
156 | 156 | $out = '<table class="debug-table">'; |
157 | - if (!empty($headers)) { |
|
157 | + if ( ! empty($headers)) { |
|
158 | 158 | $out .= $this->Html->tableHeaders($headers); |
159 | 159 | } |
160 | 160 | $out .= $this->Html->tableCells($rows, array('class' => 'odd'), array('class' => 'even'), false, false); |
@@ -168,12 +168,12 @@ discard block |
||
168 | 168 | * @return void |
169 | 169 | */ |
170 | 170 | public function send() { |
171 | - if (!$this->settings['forceEnable'] && Configure::read('debug') == 0) { |
|
171 | + if ( ! $this->settings['forceEnable'] && Configure::read('debug') == 0) { |
|
172 | 172 | return; |
173 | 173 | } |
174 | 174 | $view = $this->_View; |
175 | 175 | $head = ''; |
176 | - if (isset($view->viewVars['debugToolbarCss']) && !empty($view->viewVars['debugToolbarCss'])) { |
|
176 | + if (isset($view->viewVars['debugToolbarCss']) && ! empty($view->viewVars['debugToolbarCss'])) { |
|
177 | 177 | $head .= $this->Html->css($view->viewVars['debugToolbarCss']); |
178 | 178 | } |
179 | 179 | |
@@ -190,13 +190,13 @@ discard block |
||
190 | 190 | $search = '</head>'; |
191 | 191 | $pos = strpos($view->output, $search); |
192 | 192 | if ($pos !== false) { |
193 | - $view->output = substr_replace($view->output, $head . "\n</head>", $pos, strlen($search)); |
|
193 | + $view->output = substr_replace($view->output, $head."\n</head>", $pos, strlen($search)); |
|
194 | 194 | } |
195 | 195 | $toolbar = $view->element('debug_toolbar', array('disableTimer' => true), array('plugin' => 'DebugKit')); |
196 | 196 | $search = '</body>'; |
197 | 197 | $pos = strrpos($view->output, $search); |
198 | 198 | if ($pos !== false) { |
199 | - $view->output = substr_replace($view->output, $toolbar . "\n</body>", $pos, strlen($search)); |
|
199 | + $view->output = substr_replace($view->output, $toolbar."\n</body>", $pos, strlen($search)); |
|
200 | 200 | } |
201 | 201 | } |
202 | 202 | |
@@ -208,11 +208,11 @@ discard block |
||
208 | 208 | * @return string Rendered Html link or '' if the query is not a select/describe |
209 | 209 | */ |
210 | 210 | public function explainLink($sql, $connection) { |
211 | - if (!preg_match('/^[\s()]*SELECT/i', $sql)) { |
|
211 | + if ( ! preg_match('/^[\s()]*SELECT/i', $sql)) { |
|
212 | 212 | return ''; |
213 | 213 | } |
214 | 214 | $sql = str_replace(array("\n", "\t"), ' ', $sql); |
215 | - $hash = Security::hash($sql . $connection, 'sha1', true); |
|
215 | + $hash = Security::hash($sql.$connection, 'sha1', true); |
|
216 | 216 | $url = array( |
217 | 217 | 'plugin' => 'debug_kit', |
218 | 218 | 'controller' => 'toolbar_access', |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $url[$prefix] = false; |
223 | 223 | } |
224 | 224 | $this->explainLinkUid = (isset($this->explainLinkUid) ? $this->explainLinkUid + 1 : 0); |
225 | - $uid = $this->explainLinkUid . '_' . rand(0, 10000); |
|
225 | + $uid = $this->explainLinkUid.'_'.rand(0, 10000); |
|
226 | 226 | $form = $this->Form->create('log', array('url' => $url, 'id' => "logForm{$uid}")); |
227 | 227 | $form .= $this->Form->hidden('log.ds', array('id' => "logDs{$uid}", 'value' => $connection)); |
228 | 228 | $form .= $this->Form->hidden('log.sql', array('id' => "logSql{$uid}", 'value' => $sql)); |
@@ -8,22 +8,22 @@ |
||
8 | 8 | |
9 | 9 | $_SESSION['information'] = $dominio; |
10 | 10 | |
11 | -Router::connect('/addCart', array('controller' => $dominio['controller'], 'action' => 'addCart')); |
|
11 | +Router::connect('/addCart', array('controller' => $dominio['controller'], 'action' => 'addCart')); |
|
12 | 12 | |
13 | -Router::connect('/clearCart', array('controller' => $dominio['controller'], 'action' => 'clearCart')); |
|
13 | +Router::connect('/clearCart', array('controller' => $dominio['controller'], 'action' => 'clearCart')); |
|
14 | 14 | |
15 | -Router::connect('/cart', array('controller' => $dominio['controller'], 'action' => 'cart')); |
|
15 | +Router::connect('/cart', array('controller' => $dominio['controller'], 'action' => 'cart')); |
|
16 | 16 | |
17 | -Router::connect('/checkout', array('controller' => $dominio['controller'], 'action' => 'checkout')); |
|
17 | +Router::connect('/checkout', array('controller' => $dominio['controller'], 'action' => 'checkout')); |
|
18 | 18 | |
19 | -Router::connect('/payment', array('controller' => $dominio['controller'], 'action' => 'payment')); |
|
19 | +Router::connect('/payment', array('controller' => $dominio['controller'], 'action' => 'payment')); |
|
20 | 20 | |
21 | -Router::connect('/category/:id/:nome', array('controller' => $dominio['controller'], 'action' => 'category')); |
|
21 | +Router::connect('/category/:id/:nome', array('controller' => $dominio['controller'], 'action' => 'category')); |
|
22 | 22 | |
23 | -Router::connect('/removeProductCart/:id', array('controller' => $dominio['controller'], 'action' => 'removeProductCart')); |
|
23 | +Router::connect('/removeProductCart/:id', array('controller' => $dominio['controller'], 'action' => 'removeProductCart')); |
|
24 | 24 | |
25 | -Router::connect('/product/:id', array('controller' => $dominio['controller'], 'action' => 'product')); |
|
25 | +Router::connect('/product/:id', array('controller' => $dominio['controller'], 'action' => 'product')); |
|
26 | 26 | |
27 | -require CAKE . 'Config' . DS . 'routes.php'; |
|
27 | +require CAKE.'Config'.DS.'routes.php'; |
|
28 | 28 | |
29 | 29 | CakePlugin::routes(); |
30 | 30 | \ No newline at end of file |
@@ -8,22 +8,22 @@ |
||
8 | 8 | |
9 | 9 | $_SESSION['information'] = $dominio; |
10 | 10 | |
11 | -Router::connect('/addCart', array('controller' => $dominio['controller'], 'action' => 'addCart')); |
|
11 | +Router::connect('/addCart', array('controller' => $dominio['controller'], 'action' => 'addCart')); |
|
12 | 12 | |
13 | -Router::connect('/clearCart', array('controller' => $dominio['controller'], 'action' => 'clearCart')); |
|
13 | +Router::connect('/clearCart', array('controller' => $dominio['controller'], 'action' => 'clearCart')); |
|
14 | 14 | |
15 | -Router::connect('/cart', array('controller' => $dominio['controller'], 'action' => 'cart')); |
|
15 | +Router::connect('/cart', array('controller' => $dominio['controller'], 'action' => 'cart')); |
|
16 | 16 | |
17 | -Router::connect('/checkout', array('controller' => $dominio['controller'], 'action' => 'checkout')); |
|
17 | +Router::connect('/checkout', array('controller' => $dominio['controller'], 'action' => 'checkout')); |
|
18 | 18 | |
19 | -Router::connect('/payment', array('controller' => $dominio['controller'], 'action' => 'payment')); |
|
19 | +Router::connect('/payment', array('controller' => $dominio['controller'], 'action' => 'payment')); |
|
20 | 20 | |
21 | -Router::connect('/category/:id/:nome', array('controller' => $dominio['controller'], 'action' => 'category')); |
|
21 | +Router::connect('/category/:id/:nome', array('controller' => $dominio['controller'], 'action' => 'category')); |
|
22 | 22 | |
23 | -Router::connect('/removeProductCart/:id', array('controller' => $dominio['controller'], 'action' => 'removeProductCart')); |
|
23 | +Router::connect('/removeProductCart/:id', array('controller' => $dominio['controller'], 'action' => 'removeProductCart')); |
|
24 | 24 | |
25 | -Router::connect('/product/:id', array('controller' => $dominio['controller'], 'action' => 'product')); |
|
25 | +Router::connect('/product/:id', array('controller' => $dominio['controller'], 'action' => 'product')); |
|
26 | 26 | |
27 | -require CAKE . 'Config' . DS . 'routes.php'; |
|
27 | +require CAKE.'Config'.DS.'routes.php'; |
|
28 | 28 | |
29 | 29 | CakePlugin::routes(); |
30 | 30 | \ No newline at end of file |