Questions tagged as 'cakephp'

1
answer

Cakephp problems with .htaccess

I did the project publishing, it ran correctly, however, the other projects that were in the root stopped working, I checked and from what I noticed the problem is in the .htaccess, which is so at the moment: php_value date.timezone 'America/S...
asked by 21.08.2014 / 04:31
1
answer

Translation of routes with CakePHP

I am studying CakePHP for possible use in a project, and the crucial point of this project is that it is multi-language. I've already done a lot of research on translation of the routes: http://projeto.com/contact http://projeto.com.br/co...
asked by 19.08.2014 / 21:12
1
answer

Catch main image from last post in WordPress

I need to display the last post posted WordPress blog in a CakePHP application and I'm doing it as follows: $post = $this->Post->query( "SELECT posts.id, posts.post_title AS title, posts.post_date, pos...
asked by 20.08.2014 / 01:59
1
answer

get number of results of a query with the bank using cakephp

I want to loop to display the results of a database query, and get the number of results found in the query. I'm using cakephp. Does it have any function that does the same thing as mysqli_num_rows ?     
asked by 22.12.2014 / 19:33
1
answer

Form submission

I'm trying to send a contact form, which uses the "Contact" model, save the data, but it does not even enter: if (!empty($this->data)) { $this->Contato->save($this->data) } Give the following error: "Attempt to access pri...
asked by 15.08.2014 / 02:09
2
answers

Passing AppController variables to elements in Cakephp

Is it possible to pass variables originating from the AppController's callbacks through the set method to layout elements in CakePHP?     
asked by 12.06.2014 / 15:39
1
answer

CakePHP: Upload Error

I can not move my images, much less detect the error in the code, and no error messages are being displayed on the screen My Model Photo: public $validate = array( 'uploadImg' => array( 'uploadError' => array(...
asked by 17.06.2014 / 15:24
1
answer

Is it a bug in CakePHP - Sort Aliases?

I'm trying to sort a query by relevance with cakephp using paginator, but it simply ignores the alias, I already researched the manual but so far I have not found the solution, the query works perfectly, when I give a debug it generates the quer...
asked by 24.05.2014 / 00:43
1
answer

CakePHP ignoring my Model

Why is cake ignoring my Model? Do not understand. I have several other models working perfectly, but this one is not working. It is being ignored. Name of the model: Typeservers.php Model Content: App::uses('AppModel', 'Model'); class...
asked by 24.03.2014 / 22:47
1
answer

CSS for the Timthumb plugin for CakePHP

Is there any way to apply CSS classes to the thumbnails created by the Timthumb plugin for CakePHP ? The 'class' attribute causes an error. Code $this->Fancybox->setPreviewContent($this->Timthumb->image('/img/gallery/' ....
asked by 25.03.2014 / 17:01