PHP warning

Undefined array key "pagina"

/home1/petroza/saaracombustiveis.com.br/noticias_page.php(7)

01 <?
02 /*********************************************************
03 *Controle de versao: 2.2
04 *********************************************************/
05 include("gzip/gzipHTML.php");
06 include_once("gerenciador/autoload.php");
07 $_GET['pagina'] = is_numeric($_GET['pagina']) ? $_GET['pagina']+1 : 0;
08 $criteriaNoticia = new CDbCriteria();
09 $criteriaNoticia->order = 'data desc';
10 $criteriaNoticia->addCondition("ativo = 1");
11 $noticias = new CActiveDataProvider('Noticia', array(
12     'criteria'=> $criteriaNoticia,
13     'pagination'=>array(
14         'pageSize'=> 10,
15         'pageVar' => 'pagina',
16     ),
17 ));
18 ?>
19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

Stack Trace

#0
+
 /home1/petroza/saaracombustiveis.com.br/RequestManager.php(121): require_once("/home1/petroza/saaracombustiveis.com.br/noticias_page.php")
116         
117         $this->setRoutes($routes);
118         $return = $this->defineRoute();
119         
120         if($return['status']){
121             require_once($return['file']);
122             exit;
123         }
124         header('location: '.$this->getBaseUrl().DIRECTORY_SEPARATOR.$this->default_route);
125         exit;
126     }
#1
+
 /home1/petroza/saaracombustiveis.com.br/index.php(26): RequestManager->run(array("/quem-somos" => "quem_somos.php", "/nosso-negocio" => "nosso_negocio.php", "/nossa-historia" => "nossa_historia.php", "/estrutura" => "estrutura_page.php", ...))
21     '/index'=>'inicial.php',
22     '/inicial'=>'inicial.php',
23     '/(?P<url>\S+)'=>'inicial.php',
24 );
25 $request_manager = new RequestManager();
26 $request_manager->run($rotas);
27 exit;
2024-04-28 04:04:53 Apache Yii Framework/1.1.13