cakephp-2.1 Questions
3
Solved
why I'm getting this?
Error: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'favorites' in field list is ambiguous
SQL Query: UPDATE `twitter`.`tractions` AS `Traction` LEFT JOIN `t...
Einkorn asked 11/1, 2013 at 15:36
8
Solved
I have a website that is finished and uploaded, at first it works fine but after a while it stops working.
By stops working I mean whatever page I go to just shows a blank page, empty source.
In ...
Lists asked 13/7, 2012 at 13:18
8
Solved
I am working on a CakePHP 2 project. It originally started out in 2.0.x and then recently migrated to 2.1.0. Throughout the whole development process, I have been receiving the error message below....
Squelch asked 16/3, 2012 at 7:32
3
Solved
I am trying to run a query in AppController on a table that has no Model associated with it. I don't want to use a Model cause this query would fire on every request and I guess using a Model would...
Nearly asked 15/6, 2012 at 9:45
2
Solved
I have noticed there's no datasource for Oracle in CakePHP 2.0 for the moment, although it seems they are working on in it now: http://ask.cakephp.org/questions/view/any_news_about_oracle_datasourc...
Ether asked 17/1, 2013 at 10:16
3
Solved
i have a problem similar to this question
How to identify active menu link in CakePHP
i have a page in my default.ctp file in which i want to add 'active' class on links. how can i identify the ...
Lanner asked 18/6, 2013 at 6:31
2
Solved
OK I must be missing something really simple here. I just want to return all records from a table where the user_id matches (easy!) and the 'paid' field is either NULL or 0. My 'paid' field is a Ti...
Thinker asked 12/11, 2012 at 6:48
2
Solved
can I use a model in bootstrap.php to get an array with find() from database ?
like this :
$Setting = ClassRegistry::init('Setting');
$Settings = $Setting->find('all');
thanks
Buckjumper asked 12/4, 2012 at 11:31
3
Solved
I am trying to insert JS files into the view but they are being inserted in the wrong order.
In my default.ctp I have this
$this->Html->script(array(
'https://ajax.googleapis.com/ajax/libs...
Gormless asked 28/3, 2012 at 9:10
2
Solved
Back in May, I posted this question. I'm trying to do the same thing again on a different app, but I haven't found a solution to this problem. I do have more information and better code, so I'm hop...
Schiller asked 31/10, 2012 at 21:1
2
Solved
My model has 2 unique indexes. The primary key, and an alphanumeric id.
I only have the alphanumeric id when updating said record, so I need to add an "on duplicate key update" statement to the sa...
Coarsegrained asked 15/11, 2012 at 11:7
3
Solved
all. This time I try cakephp, but I have got "URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting". I could know this is apache and...
Cozy asked 31/5, 2012 at 14:12
3
I'm using the CakePHP Plugin AssetCompress (v 0.7) which works fine, except that it doesn't cache any files in the directory. This is my asset_compress.ini setup:
[General]
writeCache = true
cache...
Eyas asked 6/5, 2012 at 10:46
3
Solved
I'm trying to use the Event System in CakePHP v2.1+
It appears to be quite powerful, but the documentation is somewhat vague. Triggering the event seems pretty straight-forward, but I'm not sure h...
Sucre asked 4/6, 2013 at 16:44
6
Solved
I am trying to move from CodeIgniter to CakePHP and can't figure out the best way to implement an admin panel. In CI I would create two different applications, one for the frontend and one for the ...
Pfister asked 19/2, 2013 at 16:11
4
Solved
I have created a shell script as follows
<?php
class EmailShell extends AppShell
{
public function main()
{
$this->out('Hello world.');
}
}
When i navigate to the Console folder in co...
Whirlpool asked 19/7, 2012 at 7:32
3
In few project we don't need database, so how we setup cakephp on local machine without modification in database config? Right now what I done ...I created database and modified config file. But my...
Reprography asked 16/3, 2013 at 12:16
1
Solved
Using cakephp 2.3.8 I am attempting to setup a connection to a custom couchbase datasource I have made within another datasource. The datasource I am attempting to load functions properly on the re...
Homologous asked 10/8, 2013 at 15:15
1
Solved
here is my code
public function settings(){
$this->loadModel('Userinfo');
$helpers = array('TimeZoneHelper');
if($this->request->is('post')) {
$id = $this->Auth->User('idUser')...
Pandit asked 28/6, 2013 at 14:24
1
Solved
i am newbie in Cakephp so I feel difficulties to implement the database queries .. what i want is I want to update a mobile Number where email is equal to the one the user has given ..
this is the...
Achromic asked 26/6, 2013 at 9:36
4
Solved
Recently i have made three Cake Apps and all three share this problem. The config is mostly stock and i use this as the session options.
Configure::write('Session', array(
'defaults' => 'php',...
Cartography asked 23/4, 2012 at 10:9
3
I am using a custom validation rule in CakePHP to be sure a value is entered into a field when a corresponding checkbox is marked:
Here's the validation rule within my model's validation array.....
Crore asked 26/4, 2013 at 23:34
2
Solved
FINALLY found the solution:
If anyone have this problem put this in your beforefilter.
$this->Security->unlockedActions = array('givestar');
And update libs to Cake 2.3
The problem:
I a...
Villose asked 8/8, 2012 at 16:49
3
Solved
I am trying to create a 3 step registration page withh cakePHP.
First step is OK, it inserts the data in db but the second step is not working. Can someone help please?
Here is my controller code:...
Victoria asked 9/3, 2013 at 6:6
1
Solved
Product Plan ProductPlan
id |name id |name id | product_id | plan_id
1 aplha 1 a 1 1 2
2 bravo 2 b
3 charlie
I want to find Product name and Plan name against ProductPlan, if product id a...
Cystine asked 18/2, 2013 at 10:20
1 Next >
© 2022 - 2024 — McMap. All rights reserved.