Tagged Questions
0
votes
0answers
10 views
How to reduce RAM memory in huge cakePHP application?
I'm fixing application based on CakePHP framework version 1.3. Monitoring reveals that there is huge usage of RAM and CPU in server.
Are there any good practices or advices how to use CakePHP ...
0
votes
0answers
9 views
PhpMailer Link Not Clickable
I'm trying to send an HTML Email via a PHPMailer object. I have set 'isHTML' to true, however I'm still not able to click on a link which appears on the email. This is a CakePHP application. Here's ...
0
votes
1answer
18 views
how to add active class in current page in CakePhp
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 ...
0
votes
2answers
18 views
CakePHP Calling a function in a model when you're in a controller
I am getting this error when calling a function to a model.
Database Error
Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that ...
0
votes
1answer
25 views
Advanced Organization of my database, need tips
I hope it's easy for you guys to understand what i'm trying to do. I'm working on a project with cakePHP where it will allow users to log there drug use. Be it alcohol, caffeine, or whatever else. ...
0
votes
1answer
32 views
Foreach for 3 variables in an array
I am trying to loop three variables inside an array with a foreach loop.
My model to get my array is this
function pieChart($limit = null, $conditions = null) {
//Get Data for PieChart
...
0
votes
0answers
10 views
CakePHP saving models with similar data
I have following code. I'm trying to make it simpler and shorter. I created $data1 array and added relevant data with array_merge and saved it to my model. But note that $data1 and $exists has same ...
-4
votes
0answers
23 views
Get data from Android app and send to CakePHP or MVC website [closed]
I am developing an Android app in which I am getting data from the user. I want to send information to the website database from the app. Do you guys have some ideas for me how to code that?
What I ...
-2
votes
0answers
22 views
turn off cakephp prefix when calling a controller [closed]
how do I force this line of code to ignore the prefix routing of admin when I call it?
$variable = $this->function();
It keeps trying to call the function through the prefix route of: ...
0
votes
0answers
33 views
cakephp confirm you have created the file app/config/database.php iis7
I am getting below error. Windows hosting account on godaddy and web server is IIS7. I have mostly tried all way around, not sure if i have missed any option.
Missing Database Connection
Error: ...
-1
votes
0answers
20 views
Table for model not found in datasource default — Cakephp
I am having this really weird problem. I am having trouble with "table not found" error, yet the thing is, in the very first place, as per indicated in my database configuration file, I have this ...
-1
votes
0answers
20 views
Not load data in page 2 when pagination in cakephp
In my controller, I filter data like below code.
$conditions = array(
'PointHistory.del_flag' => CONST_FLAG_OFF,
);
...
0
votes
1answer
48 views
Two variables set to null inside ( ) of function
In my model I have this
function pieChart($conditions = null) {
//Get Data for PieChart
$this->RecordDrug->virtualFields['sum'] ='COUNT(*)';
$records = array();
...
0
votes
0answers
32 views
Call a static method from CakePHP Plugin
I have a class with a static method called hash from a plugin class called "ControllerUtility"
The function is located in ControllerUtility/Model/ControllerUtility.php
public static function hash( ...
0
votes
1answer
24 views
cookie is not saving Cakephp
Cake is not saving the cookie, at least not that I can see, and when I revisit the page I am not auto logged in.i actually want to implement the 'remember me functionality '.i am using this component
...