Exemple #1
0
 function handleShowKeywords(NForm $form)
 {
     $values = $form->getValues();
     /* @var $seo Seo\GoogleSeoModel */
     $seo = Seo\GoogleSeoModel::init();
     $seo->setKeyword($values['keywords']);
     $seo->setGoogleNumResults($values['google_num_result']);
     $this->result = $seo->run();
     $this->flashMessage('Vyhladane');
     $this->invalidateControl();
 }
Exemple #2
0
 function handleShowKeywords(NForm $form)
 {
     $values = $form->getValues();
     /* @var $seo Seo\GoogleSeoModel */
     $seo = Seo\GoogleSeoModel::init();
     $seo->setKeyword($values['keywords']);
     $seo->setGoogleNumResults($values['google_num_result']);
     $this->result = $seo->run();
     $this->flashMessage('Vyhladane');
     $this->invalidateControl();
     //		$this->invalidateControl('keywords');
     //		$google_keywords = $stats->getGoogleKeywords( );
     //		print_r($google_keywords);exit;
     //		$stats = Stats\StatsModel::init();
     //
     //		$keywords = $stats->parseKeywords( $values['url'] );
     //
     //		$google_keywords = $stats->getGoogleKeywords( );
     //
     //		print_r($google_keywords);exit;
 }