An IRC conversation gave me the solution : containable behavior had to
be attached in the model and not in the controller.
On Apr 29, 2009, at 08:51 , Zeugme wrote:
> Hi,
>
> I'm not able to make containable fully work.
> I have a A with many B and I want to find A with
Hi,
I'm not able to make containable fully work.
I have a A with many B and I want to find A with their B but only few
fields.
Here is what I did :
$this->set('A',
$this->A->find('all', array(
'conditions' => array ('A.id' => $id),
'fields' => array('id'
Hi,
I wonder where I could find detailed information on how data[index] is
computed on HTML form for the cases of various relation in the model.
What I mean by data[index] is for example data[name] for a Person when
a person creation form is submited, you can see that also on the HTTP
post.
#x27;user_id'];
>
>$this->User->UserSlot->create();
>
>if ($this->User->UserSlot->save($this->data
> ['UserSlot'])) {
>$user_slot_id = $this->User->UserSlot-
>> getLa
Hi,
How to add an item to a HABTM relation ?
I have a Person and I have to add a Contract to that person.
Here are the data on a view :
data[Contract][type] : 12
data[Contract][name] : contract-AAaa
data[Contract][Person] : 26 // Should I put the person id here ?? or
something else ??
In fac
Hi,
I'd like to delete HATBM relation between a Person and a Contract.
The HATBM relationship is declared in the Person model and works fine
for retreiving the right person with all its contracts for example.
How should I submit things to my controller method in term of
data[ ? ] to just dele
Hi,
I'd like to pass parameter to CakePHP without URL.
I set with Javascript some HTTP request named parameter and I'm not
abme to retreive it on my controller.
When I search in the doc, I always found the way to get parameters
from URL : .../action/param1/param2 or the 1.2 way : .../action/
Hi,
I found myself not sure about what to change and what to keep on a
CahePHP upgrade :
For the cake folder, its pretty clear : remove the old one and copy
the new one.
What about the app folder ? Can I safely keep the old one ?
That folder is full of modified files but the new version mig
Hi the list,
I'm using CakePHP and I would like :
* more structuration (AJAX, ...) on the presentation layer :
javascript framework
* widgets like table, tree and layouts like inner windows, ... :
widgets library.
=> So i'm in the process of choosing a javascript framework / wigets
librari
Hi Cake list !
I'm confused. It is probably due to the long, long long IRC log,
combine to the fact English is not my native language,
combine to the fact I didn't took all the time I should to digg,
but the result is I'm confused.
Could one point out clearly the changes if any ?
What are the im
> /cake/libs/inflector.php. This define naming conventions.
>
> I think this mechanism is based on the cakePHP naming convention and
> there is no template for this purpose. So you need modify the source
> code in order to customize bake behaviors.
>
>
> Best Wishes,
>
Sorry for reposting but I really would like to custimize bake
generation, if it is possible.
Are there templates ? Same as scaffolding ?
Also, I need more info on table relationship taken into account in the
generated model.
Any clue appreciated, including pointer to the cake code
zeugme
Hi the list !
Do you know if the bake generator is able to deduce table relationship
when it generate the model ?
If it is possible, I suppose it need a DB strict name convention ... any
info, doc, tuto, examples,
Also, how to customize baked view, model, controller ? Any tips,
example, recom
root .htaccess file that had not been part of the copy/past,
thanks to the Finder.
cp -R is your friend.
Thanks to all !
zeugme wrote:
> OK, I'm totally blocked on that issue now. Is it or not a mod_rewrite
> issue ?
>
> Here more details :
> If I try that URL in the browser
&g
OK, I'm totally blocked on that issue now. Is it or not a mod_rewrite
issue ?
Here more details :
If I try that URL in the browser
http://localhost/app/webroot/js/jquery-1.2.2.pack.js
it works fine, I got the javascript.
http://localhost/js/jquery-1.2.2.pack.js
that one doesn't work but that is
Hi,
I'm wondering what kind of software setup are you using on Mac OS as a
developper machine ?
I'm using MAMP for the Apache, PHP, MySQL stack and IntelliJ for code
edition.
I created a symlink from MAMP htdocs to my dev web folder.
I'm not sure but I think I might have a mod_rewrite issue
Ola Juan !
Thanks a lot : you gave me the keywords I didn't had that prevent me
for searching more !
($uses and _javascript_ helper)
Thanks again.
Juan F. Gimenez Silva wrote:
El lun, 04-02-2008 a las 02:21 -0800, zeugme escribió:
Hi,
Hello (also, hello t
Hi,
I'm new in CakePHP, amazingly, I choose CakePHP for the power of MVC,
SQL mapping ...
but I need to deal with my home page witch have no model.
This page however is not purely static, it contains PHP, SQL ...
Where do I put such files ?
/app/webroot ?
or
/app/view.pages ?
What are the diffe
18 matches
Mail list logo