Questions tagged as 'cakephp'

1
answer

Upload file with CakePHP

Regarding upload file, I have the following codes up to now: Controller: public function initialize() { parent::initialize(); $this - > loadComponent('Upload'); } public function upload() { if (!empty($this - >...
asked by 01.12.2015 / 18:10
1
answer

CakePHP constants are not recognized when accessing file in webroot

I was testing a simple upload system in my cakephp, for that, I referenced the imgs folder by those paths that the index.php of the root folder gives me. But it was always giving error, saying that the folder path was wrong, and when I echoed th...
asked by 31.03.2015 / 14:54
2
answers

Problem with HABTM in Cakephp 2.x

I'm having problems while searching my view method, where I have the following search: public function view($id = null) { if (!$this->Setor->exists($id)) { throw new NotFoundException(__('Parâmetro inválido!')); } $o...
asked by 26.02.2014 / 22:28
1
answer

CakePHP loses SESSION after a redirect

I'm doing an integration with Facebook Login. When the user clicks to log in using Facebook and accepts the application it is redirected to a method that creates a SESSION and redirects. The problem is that the data in this SESSION gets lost...
asked by 26.01.2014 / 22:30
2
answers

Select with inner join with CakePHP

I have a problem some time ago regarding a project I'm developing in cakephp , my view can not read a select with < in> inner join table. Controller: public function initialize() { $posts = $this->Post...
asked by 24.11.2015 / 12:26
1
answer

CRUD - send selected line id to toolbar - CakePHP

I am beating myself for a while with the following problem: I set up a CRUD in CakePHP, I made the grid with css to be cool and ready. The problem is that it's nothing neat to have a stock column and the "View," "Add," "Promote," and "Decline...
asked by 23.09.2015 / 21:58
1
answer

Using ACL in CakePHP

After searching a lot, I did not find a satisfactory answer. I would like your opinion and / or hint about using ACL in CakePHP. I've seen some plugins that "help" this issue, but I do not find it dynamic enough. Some say that doing "on han...
asked by 05.01.2015 / 20:34
0
answers

The Content Model appears in my index when using cakephp [closed]

My index.cpt and Layout.cpt are empty. But in the browser, my index appears with the contents of my Model: <?php class Post extends AppModel { public $validate = array('title' => array('rule' => 'notEmpty'), 'body'...
asked by 17.01.2015 / 03:48
1
answer

PHP: How to convert a number into a string? [duplicate]

I have an application that generates a PDF receipt. But in the bank the values have to be converted into words BD | PHP 10 | TEN 15 | QUINZE 7 | SEVEN Is there a function that returns the string of a number in php?     
asked by 07.11.2017 / 14:13
1
answer

Validate Google Site Verification URLs with Regex

With $ _SERVER ['REQUEST_URI'] I have captured the following address below! /google9f7804416f93fdd6b.html I need to perform a validation with ER, the function must recognize the word Google parâmetros randômicos 9f7804416f93fd...
asked by 30.08.2015 / 02:18