Tag Archives: CakePHP
Cakephp regarding Security Component and CSRF protection
There seems to be a problem with Security component when enabled, I cannot get my AJAX to work on the same controller where it is enabled!
I’m getting below error:
The Request has Been Blackholed
…
C'è un modo per Continua a leggere
CakePHP Model Query Return Data Formating
I’m looking for a way to make it so cake returns all database data in the same format/structure… Currently it returns two different types of format depending on the relationship.
If a model ‘B’ is associated with the current model… Continua a leggere
How to access mail from gmail
I was using imap functions in my app to access gmail. Unforunately I have not been able to use imap any more. Sto usando php. Is there any alternative way like (api..) to access gmail.
I appreciate any help.… Continua a leggere
CakePHP doesn't load function properly
I have an installation of CakePHP 1.2 and I am unable to access functions within my controller. I can access the controller and if I put a die in the constructor it dies, but if I try to load a… Continua a leggere
CakePHP: Redirecting all 404 errors to the homepage?
Is there a way or a function within a controller that tells if a 404 error was triggered? I would like everyone to redirect at the homepage instead of seeing a 404 pagina.
Grazie!… Continua a leggere
PHP Getting imap open to work
I just moved my app to the cloud hosting. I was using imap_open to access mails in my gmail account. It worked fine.
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = '...@gmail.com';
$password = '****';
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: …
How to present dynatree in dropdown in cakephp 1.3 using ajax [chiuso]
i am trying to show dynatree and its nodes in dropdown, i am trying to use ajax for this and framework is cakephp 1.3, can anyody help me to fix it any tips or code.
grazie… Continua a leggere
Import ExcelSheet into MySql with PHP
I have a problem with my project. i want to import Excel sheet directly into mysql database for PHP language without any conversion of Excel sheet into another format. i am very fed about this from last two weeks. Così… Continua a leggere
CakePHP – Call model function from another function within in the same model
I’ve got a CakePHP model with a few functions in it working well. Now I’m trying to write a new function that uses a few of the functions I’ve already written. Seems like it should be easy but I can’t… Continua a leggere
Di base: CakePHP dati non salvati, né di convalida di lavoro?
What I would like to know is a two part question.
Why is the validation not doing anything, and why won’t the data post to the database?
QuestionsController.php
public function index() {
$this->set('questions', $this->Question->find('all'));
}
public function view($id = null) …





