Questions tagged as 'php'

1
answer

Association between 2 tables

I have a problem fetching data from 2 tables, both of which are associated. When I go into the browser and put the controller and then the method, it appears to me with this Array() message. Could someone tell me what the problem with m...
asked by 14.06.2014 / 04:29
1
answer

Access datadir folder by VM

My scenario is as follows: / media / data / svr / mysql Where is my mysql datadir folder located. The development environment is running in vagrant (debian 6), with php 53 and mysql 5.5 I configured the VM to access the datadir folder...
asked by 14.04.2014 / 23:59
1
answer

My application does not save accented data correctly

I'm developing a web application with ExtJS 4 and PHP. I'm having trouble making INSERT in the database. For example, I registered the product "tea", but it saves "chu00e1". My entire database is in UTF-8, my PHP files are in UTF-8 header...
asked by 28.11.2014 / 12:52
1
answer

Oracle connect identifier problem is too long

I have the following problem, first the configuration of my PC.    SO: Fedora 20       PHP 5.5       Oracle Instant Client: 11.2.0.4.0 I try to connect via tnsnames.ora file settings and the following error occurs ORA-12169: TNS:Net s...
asked by 07.02.2014 / 12:57
2
answers

How can I adjust the size of the height in a Wysiwyg box

I need to use Custom Post Types and learned how to in this article . However, this article does not teach you how to insert Custom Post Types into Pages and how to leave <textarea> in Wysiwyg format. What I need: Leave it t...
asked by 17.02.2014 / 18:29
2
answers

Set option not to edit - CAKEPHP

I'm working on a real estate project and I have add , edit and delete , everything is normal. In real estate I have the cidade and bairro tables, which when I register are two <option> , but when I go...
asked by 26.02.2014 / 14:57
1
answer

How to check if a transaction was started in Zend

I have a method where a BEGIN TRANSACTION is started in Zend 1.12. As it is used in many places, it has occurred that a method that calls it already starts a BEGIN TRANSACTION , thus generating Exception . I want to check b...
asked by 26.02.2014 / 21:51
1
answer

After doing insert, redirect to the listing of records in Kohana

I started working with Kohana yesterday and there was a problem here. My default Controller is the "page" and the action is "home". On the "page" controller I have these functions here to set up the layout: class Controller_Page extends Con...
asked by 27.02.2014 / 23:35
2
answers

Doubt over inheritance in classes

How do if of the controller return TRUE or FALSE according to check() of Validator? Currently it returns Boolean for validate(); , but I wanted it to continue until the end of the code, to then return the Boo...
asked by 28.02.2014 / 19:32
2
answers

How to remove table from the results of a find () of CakePHP?

I have 3 related tables: Usuario , Movimentacao and Grupo I'm using: $usuarios = $this->Usuario->find('all',array( 'recursive' => 1, 'fields' => "Usuario.id, Usuario.nome, Usuario.email" 'order' =...
asked by 04.02.2014 / 18:48