Re: find 'all' using containable issue

2009-04-29 Thread Zeugme
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

find 'all' using containable issue

2009-04-28 Thread Zeugme
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'

how data[index] is computed for HTML form ?

2009-04-15 Thread Zeugme
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.

HABTM confusion was: How to add item using HABTM relation

2008-12-04 Thread Zeugme
#x27;user_id']; > >$this->User->UserSlot->create(); > >if ($this->User->UserSlot->save($this->data > ['UserSlot'])) { >$user_slot_id = $this->User->UserSlot- >> getLa

How to add item using HABTM relation

2008-12-03 Thread Zeugme
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

delete HATBM relation

2008-12-02 Thread Zeugme
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

HTTP named parameter without URL

2008-11-17 Thread Zeugme
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/

Migration RC2 -> RC3 and more generally

2008-10-02 Thread Zeugme
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

Javascript framework

2008-09-01 Thread Zeugme
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

Re: Leadership issues.... Changes at the top

2008-04-16 Thread Zeugme
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

Re: bake

2008-02-07 Thread zeugme
> /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, >

bake

2008-02-07 Thread zeugme
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

bake generator

2008-02-06 Thread 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

Mac OS developper setup : solution

2008-02-05 Thread zeugme
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

Re: Mac OS developper setup

2008-02-05 Thread zeugme
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

Mac OS developper setup

2008-02-04 Thread zeugme
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

Re: How to do just a view ?

2008-02-04 Thread zeugme
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

How to do just a view ?

2008-02-04 Thread zeugme
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