Tagged Questions
2
votes
0answers
59 views
+50
CakePHP odd redirect
There is a CakePHP app. We need it to work over SSH. Because of the (mysterious and apparently secret) way 1&1's Apache is configured, it refuses requests made for files that do not exist ...
2
votes
0answers
133 views
The pagination `before` and `complete` options not working properly
I want to display a loading image when I click on a sorting link of a listing record. Before, I used the complete property of Paginator. This works well if the table has more than one record.
My code ...
2
votes
0answers
381 views
PHP database sessions creating multiple records for same session ID
So I have this weird problem where PHP sessions are saving to the database (MongoDB) multiple times, all with the same ID. The first record has the correct session data, while the second has the wrong ...
2
votes
0answers
568 views
Keeping Twitter Streaming API with Phirehose and CakePHP alive
I have been running the Twitter Streaming API via the Phirehose lib, also using cakePHP as my framework.
Running Phirehose works correctly, successfully connecting to the Streaming API and returning ...
1
vote
0answers
9 views
web.config not working for multipe app in cakephp 2.2.4 on IIS7.0
I have two app folder in cakephp 2.2.4 one is admin and one is app.
How can i write web.config for multiple app folder? so, my site work like
1. http://vibrantonline.in/admin
2. ...
1
vote
0answers
95 views
Cakephp form has to be submitted twice to work
I am trying to sort out an issue with a form submit that I have been unable to understand. When I first submit the form, after changing the value of a dropdown, the $this->request->data array is ...
1
vote
0answers
63 views
Cakephp generated javascript throws error onclick
I have a group of tests in my system. It is possible for a test to be paused. On the index page of my test controller, I use the following code to display the tests.
<table>
...
1
vote
0answers
44 views
Cakephp : Validate recaptcha
i have downloaded a recaptchalib and successfully implemented the recaptcha and its displaying the recaptcha on my page but i am not able to validate it ... how can i validate the recaptcha
here is ...
1
vote
0answers
39 views
CakePHP 2.2.8 helper problems
I'm using this version of the framework, but when I write a helper like this:
<?php
echo $this->Html->css('forms');
?>
It outputs this:
<link rel="stylesheet" type="text/css" ...
1
vote
0answers
50 views
CakePHP - multiple hasAndBelongsToMany relationships not working
New to CakePHP etc and I'm massively confused with following problem so any guidance would be greatly appreciated. Essentially I'm having problems with hasAndBelongsToMany relationships and I don’t ...
1
vote
0answers
92 views
In CakePHP, beforeRender in the AppController is saving to database twice
I am new to CakePHP, so I'm still learning a lot of the behaviors and everything. One I'm struggling to find a solution to is the fact that I have a code in the AppController using beforeRender. The ...
1
vote
0answers
43 views
CakePHP - Correct way to do hasMany through
I have 3 models
Categories:
class Category extends AppModel {
public $belongsTo = array(
'Parent' => array(
'className' => 'Category',
'foreignKey' => ...
1
vote
0answers
67 views
Merge view templates in cakephp
I have 2 templates,
- /view/opinions/add.ctp - add form
- /view/opinions/list.ctp - displays opinions
and I want them diplay in /views/opinions/index.ctp is it possible?
Is the only way to do it ...
1
vote
0answers
62 views
Validate LESS string in PHP
I'm working in a site developed in cakephp, where I have a page to save a less file (css) into my database.
What I want to do is to validate less string before save into my database (into the model) ...
1
vote
0answers
57 views
cakephp error Uncaught exception 'LogicException'
I'm new to cakePHP and I've been having real difficulty getting it working on my free aws account. I first tried setting up LAMP on my own, but gave up and am now trying to use the bitnami LAMP stack:
...