2 answers
0 votes
How to tell if a user clicked a link (as opposed to typing a url)
I'd like to be able to know that a link was clicked as opposed to a url entered manually. I noticed that when a link is typed manually, $this-referer() returns '/'. That is helpful, but sometimes it is not enough because sometimes '/' is really...
2 answers
0 votes
How to create related record upon insert?
How can I create a record in a related table automatically when a new record is inserted?
For example, User has one Profile. When a new user is saved to the users table I would like the model to automatically create a related record in the...
0 answers
0 votes
invalidFields from first failing model only
Hello
I've run into a problem which i can't solve.
My trying to validate data that looks like this with saveAll and validate only.
array(2) {
["Model"]=
array(2) {
["field1"]=
["field2"]=
}
["ChildModel"]=
array(2) {
[0]=
array(2)...
1 answer
0 votes
Elements in Subdirectories
Hi, i have the urge to organize my elements in subdirectories, but I dont want to add the path to the element rendering command.
I changed my view class so it scans subdirectories in the elements folder if its not found there like normal.
Anyone...
1 answer
0 votes
Creating a select box for a related model
HI
i have a class named User and Controller UserController.
For each user there is a country. So each user belong to a country.
Each user have acountry. So i used belong to relationship
So in User Countroller i have set the relation as
var $belongsTo...
1 answer
0 votes
Cake 1.2.6 does not work any more?
Hi,
My application using CakePHP 1.2.6 and it was run properly. I just downloaded the new version of CakePHP 1.2.8 then I changed the name of my old Cake to CakeOLD then I created new folder in the same place with the name cake, then I copied the...
1 answer
0 votes
Moving the base file
I install the cake in a local
build an app using console [baking]
now I want to move to a real server How to ?
it give me path error or something , how to correct this ?
I already try to
c
change
from
/**
- The absolute path to the "cake" directory, WITHOUT...
1 answer
0 votes
CakePhp Structure
hey guys ,
why in the app folder the app_controller.php , app_model.php , the pages_controller.php don't exist , but in cake/console/templates/skel/ they do exist .
how can i create a project without using the bake tool and without having the cake...
0 answers
0 votes
[noob]A Cake error trying to internationalize my website
Hi,
Today I started to internationalize my website (and its database). I add this code in each of my model files :
var $actsAs = array(
'Translate' => array(
'title' => 'title'
)
);
But an error occurs when Cake tries to render a web...
0 answers
0 votes
Configuring datetime settings for FormHelper
Is there a way to globally configure the FormHelper to use a different datetime format and a field order like 'DMY' instead of 'MDY' in a whole application without specifying it in every FormHelper::input field?
How does CakePHP Questions work?
CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!
After you ask your question you just need to wait until you have got some answers and pick the correct answer.
Other users might help you by finding the right answer by voting and giving comments.
