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

Est-il un moyen de Continuer la lecture

Tagged , , | Laisser un commentaire

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/structureCurrently it returns two different types of format depending on the relationship.
If a model ‘B’ is associated with the current modelContinuer la lecture

Tagged , , , , | Laisser un commentaire

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. J'utilise php. Is there any alternative way like (api..) to access gmail.
I appreciate any help.Continuer la lecture

Tagged , , , | Laisser un commentaire

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 aContinuer la lecture

Tagged , , | Laisser un commentaire

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 Page.
Merci!… Continuer la lecture

Tagged , , | Laisser un commentaire

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: 

Continuer la lecture

Tagged , , , | Laisser un commentaire

How to present dynatree in dropdown in cakephp 1.3 using ajax [fermée]

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.
Merci… Continuer la lecture

Tagged , , | Laisser un commentaire

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. Alors… Continuer la lecture

Tagged , , , | Laisser un commentaire

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’tContinuer la lecture

Tagged , , | 1 Comment

De base: Données CakePHP pas enregistré, ni la validation de travail?

Ce que je voudrais savoir, c'est une question à deux.
Pourquoi est la validation ne fait rien, et pourquoi ne pas envoyer les données à la base de données?
QuestionsController.php

public function index() {
    $this->set('questions', $this->Question->find('all'));
}

public function view($id = null) 

Continuer la lecture

Tagged , , , | Laisser un commentaire
21 pages