[eluser]soprabaixar1[/eluser]
I can not make a "flag " between the view and controller. I did several tests, for example, declare a variable just below the class declaration and then increment in method index(); of the controller.
Sending this variable ($data['x'] = $this->x

to the view but can not exceed the value 1. This is always 0 or 1. This shows that have no proper control. How can I make the increment value ever? I tried the command $this->x++; and gave a "print $this->x;" in both the controller and the view.
The problem I'm having is larger than this, then simplified and did some testing to understand where he was wandering.