| CARVIEW |
1 answer
0 votes
Extra space after ?>
Hi,
Can you please confirm is having a blank space after a "?" tag will produces a newline and send to the browser before header sent resulting in the browser showing only a white page?
If this is possible, is there an easy way to detect the extra...
1 answer
0 votes
What is the best place to look for Cake community code today, and are there plans to standardize soon?
I love CakePHP and I use it for all kinds of projects. However, a frustrating organizational issue that I have to ask about is the scattered manner in which community-contributed code is made available to the public.
As far as I know, there is...
0 answers
0 votes
How to pass data to all views
Hi,
I want to create a set of utility values (maybe an array) or/and functions (for example a $logged (true/false) variable or a is_logged() function).
Where should I define them ?
Now I'm using this code
$logged=false;
if($session-read('Auth'))...
0 answers
0 votes
autocomplete nightmares
hi am trying to create a system where users can add tags to their posts.
i have two models .... Posts and Tags
i want my users to be able to have an auto complete field for tag when they add a post
i tried the cake book on the site but nothing seems...
0 answers
0 votes
Use SQL find in a component
Hello
In my controller I check that the $id is in the database -
if ($this->Book->find('count', array('conditions' => array('id' => $id))) != 1) {
$this->Session->setFlash('This Book could not be found', true);
$this->redirect(array('action'... 0 answers
0 votes
updateAll with hasmany and multiple models
Hi there!
I wish to update fields in my model, and multiple fields in a related model (hasMany) using updateAll(). Is that possible? If it is not is there some other way to do this?
I tried to search bakery and the official docs, but I haven't find...
1 answer
0 votes
Linking model for 2 columns
I have a table A and table B
in table A i want to link 2 columns in table B
so let say i have these attributes for table A
id , B1, B2
I want to link B1 and B2 columns with table B_id .. (refers to the same column at table B)
How can I define it in...
1 answer
0 votes
cakephp validation in meta-data
I'm setting up a data model in which each item entity has many attributes. attributes are stored in a different table, and there's a one-many relationship from item to attributes.
now, I'd like to use the cakephp validation capabilities on...
0 answers
0 votes
Containable behaviour using ridiculous amounts of resources?
I couldn't believe it when I saw this one for myself - and I can't move any further with my application until I rectify it.
I'm creating a site about sports statistics. In my AppModel I have $actsAs = 'Containable', as everything I've read says...
0 answers
0 votes
Using component methods inside views
Is this possible/probable?
I am still fairly new to CakePHP, but there would seem to be some redundancy occurring internally that makes me think it isn't. Take for example the sessions component; the sessions helper which is accessible from the...
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.
Tags
- dynamic database connection x1
- challenges x1
- data validation x2
- contributed code x1
- named parameter x1
- casting x1
- render x2
- behaviors x14
- localizing x1
- custom styling x1
- related x1
- required x4
- Tabular Input x1
- like x1
- join x1
New Questions
Hot Questions
© 2009-2010 Cake Development Corporation
Developed by the Cake Development Corporation for Cake Software Foundation, Inc.
