UserController::getComunas()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * Controlador para las acciones y vistas con el usuario
5
 */
6
class UserController extends AppController
7
{
8
9
    public function index()
10
    {
11
        
12
    }
13
14
    public function create()
15
    {
16
        //se verifica si se ha enviado via POST los datos
17
        if (Input::hasPost('user')) {
18
            //
19
        }
20
    }
21
22
    public function getComunas()
23
    {
24
        //No es necesario el template
25
        View::template(null);
26
        //Carga la variable $region_id en la vista
27
        $this->region_id = Input::post('region_id');
0 ignored issues
show
Bug Best Practice introduced by
The property region_id does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
28
    }
29
30
    public function getCiudades()
31
    {
32
        //No es necesario el template
33
        View::template(null);
34
        //Carga la variable $comuna_id en la vista
35
        $this->comuna_id = Input::post('comuna_id');
0 ignored issues
show
Bug Best Practice introduced by
The property comuna_id does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
36
    }
37
}
38