<commit_before><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Athos\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Db\Sql\Sql;
use Zend\Db\Adapter\Adapter;
		   
class ServicosController extends AbstractActionController
{
    public function indexAction()
    {
		
		
		$this->layout('layout/layout_servicos.phtml');
		
        return new ViewModel();
    }
	
	public function sobreAction()
    {
		
		
		$this->layout('layout/layout_sobre.phtml');
		
		
		
		$servico = $this->params()->fromRoute('type','title');
		
		/*
             $this->tableGateway->adapter->
             $dbAdapterConfig = array(
            'driver'   => 'Mysqli',
            'database' => 'athos',
            'username' => 'athos',
            'password' => '<PASSWORD>'
            );
             
             $sql = "SELECT * FROM sobre_servicos";
             
             $dbAdapter = new Adapter($dbAdapterConfig);
             
             $resultado = $dbAdapter->query($sql, \Zend\Db\Adapter\Adapter::QUERY_MODE_EXECUTE);
             
             $selecao = $resultado->toArray();
             
             print_r($selecao);*/
			 
			  $adapter = new \Zend\Db\Adapter\Adapter(array(
    			'driver' => 'Mysqli',
   				'database' => 'athos',
    			'username' => 'athos',
    			'password' => '<PASSWORD>'
 				));
			 
			 $query = $adapter->query('SELECT * FROM sobre_servicos', Adapter::QUERY_MODE_EXECUTE);
			
			 $array = $query->toArray();	

			//var_dump($query->toArray());	
		
        return new ViewModel(array('servico' => $servico, "array" => $array));
    }
	
}
<commit_msg>Commit Ajuste conexão<commit_after><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Athos\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Db\Sql\Sql;
use Zend\Db\Adapter\Adapter;
		   
class ServicosController extends AbstractActionController
{
    public function indexAction()
    {
		
		
		$this->layout('layout/layout_servicos.phtml');
		
        return new ViewModel();
    }
	
	public function sobreAction()
    {
		
		
		$this->layout('layout/layout_sobre.phtml');
		
		
		
		$servico = $this->params()->fromRoute('type','title');
		
		/*
             $this->tableGateway->adapter->
             $dbAdapterConfig = array(
            'driver'   => 'Mysqli',
            'database' => 'athos',
            'username' => 'athos',
            'password' => '<PASSWORD>'
            );
             
             $sql = "SELECT * FROM sobre_servicos";
             
             $dbAdapter = new Adapter($dbAdapterConfig);
             
             $resultado = $dbAdapter->query($sql, \Zend\Db\Adapter\Adapter::QUERY_MODE_EXECUTE);
             
             $selecao = $resultado->toArray();
             
             print_r($selecao);*/
			 
			  $adapter = new \Zend\Db\Adapter\Adapter(array(
    			'driver' => 'Mysqli',
                        'host' => '172.16.17.32',
    			'database' => 'athos',
    			'username' => 'athos',
    			'password' => '<PASSWORD>12'
 				));
			 
			 $query = $adapter->query('SELECT * FROM sobre_servicos', Adapter::QUERY_MODE_EXECUTE);
			
			 $array = $query->toArray();	

			//var_dump($query->toArray());	
		
        return new ViewModel(array('servico' => $servico, "array" => $array));
    }
	
}

{'fraction_non_alphanumeric': 0.14576687116564419, 'fraction_numerical': 0.006625766871165644, 'mean_word_length': 1.9838945827232797, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 52, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6885725', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1219, 'n_words': 206}