In the file homes_controller.php exist this <?PHP class HomesController extends AppController {
var $name = "Homes"; var $uses = array('Produto', 'Config'); //var $helpers = array('TimePt', 'Text'); function index(){ // "GROUP BY Produto.nomeProduto ORDER BY Produto.nomeProduto ASC" $this -> set("dadosHomeProduto", $this -> Produto -> findAll("Produto.nome_produto != '' LIMIT 4"));// // LISTA AS CONFIGURAÇÕES //$this -> Config -> "Config.nomeConfig = 'listaProduto' AND Config.config LIKE 'palavra:%'" //$this -> set("dadosHome", $this -> Config -> findAll("GROUP BY Config.nomeConfig ORDER BY Config.nomeConfig ASC")); $this -> set("dadosHome", $this -> Config -> findAll("ORDER BY Config.nomeConfig ASC")); /* $i = 0; // LAÇO PARA REALIZAR O LIKE foreach($nomeBusca as $nb){ $p = explode(":", $nb["Config"]["config"]); // SEPARANDO SOMENTE OS PRODUTOS if($p[0] == "palavra"){ // SELECIONA OS PRODUTOS REFERENTES "MATCH (Produto.nome_produto) AGAINST('". $p[1] ."')" $palavra[$i] = $this -> Produto -> query("SELECT nome_produto, AVG(preco) AS avg, MAX(preco) AS max, MIN(preco) AS min, COUNT(nome_produto) AS Qtn FROM mbProdutos WHERE nome_produto LIKE '%". $p[1] ."%' GROUP BY nome_produto LIMIT 1"); }else{ $palavra[$i] = array("banner" => $b["Config"]["config"]); } $i++; } // $this -> Produto -> findAll("Produto.nome_produto LIKE '%computador%'") $this -> set("dadosHome", $palavra); */ } } ?> On 20 maio, 07:36, Grant Cox <[EMAIL PROTECTED]> wrote: > D:\DW\xampp\htdocs\barato\app\controllers\homes_controller.php, line > 1. You must have something (probably whitespace) outside of <?php ?> > tags - delete it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---