Media Plugin begginer problems....

2012-03-16 Thread avairet
Hi, I'm trying to use David Person's Media Plugin with an hasMany association and it doesn't work... My environment: - Win XP - CakePHP 1.3.14 - PHP 5.3.8 - Media Plugin 1.3 Media plugin is in my App/plugins directory. In my config/boostrap.php, I have: require

Cake Bake issu under PHP 5.3.10?

2012-03-12 Thread avairet
) or Cake benchmark (Debug kit), without problem. But a simple cake bake fails... I've reinstalled a PHP 5.3.8 version and everything is good. But I must use 5.3.10 for a project, cause of secure environment... Any idea is welcome ;) BR Avairet PS : sorry for my simple English... -- Our newest

Strange updateCounterCache behavior

2011-12-09 Thread avairet
any idea. By the way, why there is a $created param in Model::updateCounterCache() while it is never used inside the method?? Avairet -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Strange updateCounterCache behavior

2011-12-09 Thread avairet
Like I said : TINYINT(1) On 9 déc, 17:11, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: What's the data type and size of the counter fields? Jeremy Burns Class Outfit http://www.classoutfit.com On 9 Dec 2011, at 16:07:53, avairet wrote: Hi, I'm using Cake 1.3.13

Re: Strange updateCounterCache behavior

2011-12-09 Thread avairet
Oh non sorry :) personality_count fields are INT(11) On 9 déc, 17:15, avairet avai...@cakephp-fr.org wrote: Like I said : TINYINT(1) On 9 déc, 17:11, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: What's the data type and size of the counter fields? Jeremy Burns Class

Re: Strange updateCounterCache behavior

2011-12-09 Thread avairet
). Are you sure? Jeremy Burns Class Outfit http://www.classoutfit.com On 9 Dec 2011, at 16:17:33, avairet wrote: Oh non sorry :) personality_count fields are INT(11) On 9 déc, 17:15, avairet avai...@cakephp-fr.org wrote: Like I said : TINYINT(1) On 9 déc, 17:11, Jeremy Burns | Class

Re: Delete translated contents for a Tree Model

2011-09-07 Thread avairet
; } Maybe we can extends core TranslateBehavior and pass a parameter to tell the model use TreeBehavior to make this trick. Avairet On 1 sep, 17:09, avairet avai...@cakephp-fr.org wrote: I'm using TranslateBehavior on a model that is a Tree Model. When I delete a child node from the Tree, related

Custom Session Handler and ini_restore('session.check_referer') does not work

2011-09-07 Thread avairet
success... I'm using Cakephp 1.3.8, PHP Version 5.3.2-1ubuntu4.9.1 Cheers, Avairet -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions

Delete translated contents for a Tree Model

2011-09-01 Thread avairet
for the child nodes are not deleted. I see that in the afterDelete() method of TranslateBehavior, a deleteAll() call is executed, but it take only the current id and it didn't make a cascading delete. Have you an idea to improve that? Hope my question is clear... Avairet -- Our newest site

Add user form has password field filled in by Authenticated user...

2010-07-27 Thread avairet
Hi, I'm using CakePHP 1.3.3 and Firefox 3.6.6 under WinXP. My add user form (in an admin context) has it's password field always filled in by the Auth password of the connected user, even I write: value='' in the input options. And another very strange behavior on the same form: the email field

Re: Add user form has password field filled in by Authenticated user...

2010-07-27 Thread avairet
Ok, thanks Norman! Apparently it's Firefox that fills the field but why email and not username? How to avoid this behavior? Because it's disturbing for non-specialist users... avairet On 27 juil, 18:57, Norman Paniagua normanpania...@gmail.com wrote: I think it's your browser that fills your

Re: Add user form has password field filled in by Authenticated user...

2010-07-27 Thread avairet
Ok, it's the Forms History of Firefox that store those informations. If I delete stored usernames and passwords, then fields in my form are empty. But I don't understand why Firefox fills email field instead of username? On 27 juil, 19:06, avairet avai...@cakephp-fr.org wrote: Ok, thanks Norman

Re: Poll: what do you hate about CakePHP?

2009-05-20 Thread avairet
Thank you for this ironic but serious message Nate! To respect your humoristic formulation, here is my hateful contribution! And sorry for my simple English… hope it's understandable. ;) I hate the lack of rigor with relational model and SQL norm. I think compound primary keys, sub-queries,

Paginator links and Custom routes

2008-10-15 Thread avairet
Dear All, I've an issue with custom routing and automagic paginator links... Here are the patterns I would like for my uris: http://www.mywebsite.com/petites-annonces/belles-annonces/prix http://www.mywebsite.com/petites-annonces/belles-annonces/date

Using COLLATE 'utf8_unicode_ci' for order clause in paginate?

2008-09-26 Thread avairet
Hi, Is it possible to add a collation clause in a order clause of paginate() ? I've tried those different solutions, but no success: // tags_controller.php public function admin_index() { $this-Tag-recursive = 0; $this-paginate = array('order' = 'name COLLATE 'utf8_unicode_ci' ASC');

How prevent automatic insert User in Aros and Acos table?

2008-09-25 Thread avairet
Hi, I'm using ACL by groups, with User belongsTo Group and bindNode() method in my User model. So I don't want to insert new aro when I create a user because the group permission is sufficient. Is it possible to disconnect AclBehavior when I add a user? In fact my User model is both controlled

Cookie and Subdomain / Multiapp

2008-09-19 Thread avairet
Hi, I've 2 domains in my localhost: 1) www.mydomain.com 2) club.mydomain.com In UsersController of domain number 2), in login() action, I do that: if ($this-Auth-user()) { if (!empty($this-data)) { $this-Cookie-write('Auth.User', $this-Auth- user('pseudo'),false); } } in

Re: simple session question - for Authentication

2008-09-19 Thread avairet
Hi, Just an idea for the first issue: put $this-Auth-allow('add') in your beforeFilter() function! On 19 sep, 16:31, gabriel [EMAIL PROTECTED] wrote: Hi, I have followed the Authentication in the Cookbook. I have a few problems, maybe someone can help me. Firstly to 'allow' certain

Trying to use Auth + Acl...

2008-09-10 Thread avairet
Hi, I'm trying to use Auth Component and Acl Component and Acl Behavior like that: 1) App_controller: public $components('Auth','Acl'); public beforeFilter() { $this-Auth-userModel = 'User'; $this-Auth-fields = array('username' = 'pseudo', 'password' = 'password');

Re: Trying to use Auth + Acl...

2008-09-10 Thread avairet
Ok, nobody answers... So, one error I've made is to call AuthComponent before AclComponent in $components array ! And another error is to not authorize an action called by a requestAction()... Hope this help! On 10 sep, 14:13, avairet [EMAIL PROTECTED] wrote: Hi, I'm trying to use Auth

Re: cake schema run create doesn't keep my connection argument?!

2008-09-09 Thread avairet
Ok, nobody answer... but I have tested again with Eclipse's console and it works ! I don't understand why there is an issue with Windows CLI... On 8 sep, 14:56, avairet [EMAIL PROTECTED] wrote: Hi, When I launch cake schema run create DbAcl -connection club on a CLI, tables Aros, Acos

cake schema run create doesn't keep my connection argument?!

2008-09-08 Thread avairet
Hi, When I launch cake schema run create DbAcl -connection club on a CLI, tables Aros, Acos, Acos_Aros are not created because my - connection club setting is not conserved... If I make a var_dump($this-Schema) on line 254 of /cake/console/ libs/schema.php, my club setting is OK in connection

ClassRegistry::isKeySet issue in Model.php revision 7527

2008-09-02 Thread avairet
) clause on line 670, all works fine... Any ideas to explain that issue are welcome! BR Avairet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com

Re: ClassRegistry::isKeySet issue in Model.php revision 7527

2008-09-02 Thread avairet
Hi Mark, Thank's for answer. I've look for a with key in all my associations and found none... I've seen line 657, so it's very strange?!! Maybe another Core update... BR On 2 sep, 16:43, mark_story [EMAIL PROTECTED] wrote: On Sep 2, 4:42 am, avairet [EMAIL PROTECTED] wrote: Hi

Pagination sorting by lexical order with HABTM?

2008-06-12 Thread avairet
TABLES : A) types: id, name, slug B) famille_types: id, name, type_famille C) famille_types_types (this is the join table) : type_id, famille_type_id MODEL ASSOCIATION : Type HABTM FamilleType In a index view, I would like paginate Type order by famille_types.name not famille_types.id

Re: Pagination sorting by lexical order with HABTM?

2008-06-12 Thread avairet
on Theme column to sort by theme, sort not reflect lexical order of themes but id order. I know it's normal because of the foreign key theme_id is the sorting key, but how can I make a lexical sort? On 12 juin, 13:15, avairet [EMAIL PROTECTED] wrote: TABLES : A) types: id, name, slug B

Re: Pagination sorting by lexical order with HABTM?

2008-06-12 Thread avairet
Sorry, in the previous post Item belongsTo Theme ! On 12 juin, 15:25, avairet [EMAIL PROTECTED] wrote: Another same kind of problem: Item hasOne Theme Foreign key = theme_id In Theme controller, I've setted $displayFields = 'name'; In my index view, the default paginate HTML table

App::import in a custom Component?

2008-06-12 Thread avairet
I'm trying to use a custom class (which is stored in my app/vendors directory) in a custom Component, but I've always PHP warnings that say ''Fatal error: Class 'MyClass' not found Here is my App::import call and my class definition ?php App::import('vendor', 'MyClass', false,

Re: App::import in a custom Component?

2008-06-12 Thread avairet
Just an update: my custom class is stored in app/vendors/wshelper/ lib of course! On 12 juin, 17:47, avairet [EMAIL PROTECTED] wrote: I'm trying to use a custom class (which is stored in my app/vendors directory) in a custom Component, but I've always PHP warnings that say ''Fatal error

Using Cake's core Xml class in a controller method?

2008-06-10 Thread avairet
Hi all, I'm trying to use the Xml class in a controller like that : public function MyMethod() { App::import('Xml'); $channel = 'http://www.mywebsite.com/my_web_services/channel.php? ste_id=123456'; $doc = Xml::load($channel); var_dump($doc); } But var_dump is not displayed because of a

Re: Using Cake's core Xml class in a controller method?

2008-06-10 Thread avairet
correspond to the controller) * Xml's constructor detects if the string is a path or raw xml and handles it correctly so... function some_method() { App::import('Core', 'Xml'); $channel = ''; $xml = new Xml($channel); var_dump($xml); } hth grigri On Jun 10, 1:27 pm, avairet

$this-getID() in a save loop ??

2008-05-21 Thread avairet
Hi all, I'm surprised by $this-getID() behavior when I call $this-save() in a loop... Actually, $this-getID() returns always the same number!? My code: for ($i=1;$i=$max;$i++) { $new_tag = array('name'=$data['Item']['Tag'.$i], 'slug'=$slug, 'insertion'=1); $this-save($new_tag,false);

Re: $this-getID() in a save loop ??

2008-05-21 Thread avairet
this helps and understandable! On 21 mai, 16:31, avairet [EMAIL PROTECTED] wrote: Hi all, I'm surprised by $this-getID() behavior when I call $this-save() in a loop... Actually, $this-getID() returns always the same number!? My code: for ($i=1;$i=$max;$i++) { $new_tag = array('name

Re: Call file stored in webroot from an iframe?

2008-04-30 Thread avairet
, and not hand off the URL to Cake for processing; what you want to do should totally be possible; How do you access the site?http://localhost/projectorhttp://project.loc or something? On Apr 29, 12:25 pm, avairet [EMAIL PROTECTED] wrote: Hi everybody, Is it possible to call a file stored

$this-redirect from a Model?

2008-04-30 Thread avairet
Hi everybody, Is it possible to redirect from the Model? I would like to redirect in an specific action from afterFind() callback... but if I set return false in this callback, like it's possible in beforeSave(), I can't redirect! Thanks by advance for your ideas. BR

Re: $this-redirect from a Model?

2008-04-30 Thread avairet
am, avairet [EMAIL PROTECTED] wrote: Hi everybody, Is it possible to redirect from the Model? I would like to redirect in an specific action from afterFind() callback... but if I set return false in this callback, like it's possible in beforeSave(), I can't redirect! Thanks

Re: $this-redirect from a Model?

2008-04-30 Thread avairet
Ok, ok, ok guys, don't stress with my stupid questions ;o)) So, how can I return a value to my controller after my save logic? Must I do my move_uploaded_file in the Controller? On 30 avr, 17:59, Chris Hartjes [EMAIL PROTECTED] wrote: On Wed, Apr 30, 2008 at 11:53 AM, avairet [EMAIL

Re: $this-redirect from a Model?

2008-04-30 Thread avairet
in the afterSave() Ok, why not... but I think it's easier to make a sql delete instead of a file rename or file unlink On 30 avr, 18:02, avairet [EMAIL PROTECTED] wrote: Ok, ok, ok guys, don't stress with my stupid questions ;o)) So, how can I return a value to my controller after my save

Re: $this-redirect from a Model?

2008-04-30 Thread avairet
help. BR On 30 avr, 18:43, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are you renaming the uploaded file based off your Model ID? On Apr 30, 12:09 pm, avairet [EMAIL PROTECTED] wrote: @clark : I'm assuming you do the move uploaded file in the afterSave() to use the Model ID

Re: Init ACL with CLI?

2008-04-29 Thread avairet
create cake acl grant editor update -Aran On Apr 25, 7:19 am,avairet[EMAIL PROTECTED] wrote: Hi everybody, I'm trying to use the ACL, but I don't understand some stuff. I have created the 3 tables (aros, acos, aros_acos) with the CLI. Fine. I have a Groups table (called

Re: saveAll and HABTM?

2008-04-29 Thread avairet
for updates and until then banging my head against the wall. On Apr 3, 10:16 am,avairet[EMAIL PROTECTED] wrote: Hi, I'm using nightly builds from 1.2.x.x branch. My main model Item have this associations: Item hasOne Article Item hasOne Photo Item hasAndBelongsToMany Tag

Call file stored in webroot from an iframe?

2008-04-29 Thread avairet
Hi everybody, Is it possible to call a file stored in webroot from an iframe? My iframe tag: iframe src=/files/360/myfile.html My webroot structure (partial): webroot |- css |- files |- 360 |- myfile.html |- img |- js In my view render, Cake is looking for a FilesController

Init ACL with CLI?

2008-04-25 Thread avairet
Hi everybody, I'm trying to use the ACL, but I don't understand some stuff. I have created the 3 tables (aros, acos, aros_acos) with the CLI. Fine. I have a Groups table (called 'admin_groupes' in my case). I have a Users table (called 'administrateurs' in my case), with a FK called

Re: Format date field in 3 select

2008-04-24 Thread avairet
together the day/month/year fields. On Apr 23, 12:43 pm, avairet [EMAIL PROTECTED] wrote: Hi everybody, I'm searching for a day how format a date field from Mysql (-MM-- DD) to 3 form's selects: - date from mysql : 2008-04-23 - my form fields are build like this: for ($i=0;$i11;$i

Format date field in 3 select

2008-04-23 Thread avairet
Hi everybody, I'm searching for a day how format a date field from Mysql (-MM-- DD) to 3 form's selects: - date from mysql : 2008-04-23 - my form fields are build like this: for ($i=0;$i11;$i++) { $form-day('DixDate.'.$i.'.date',null,array('id'='date-sel'.$i.'- dd')).'-'.

Re: Model: how to avoid call of afterFind() in some cases?

2008-04-17 Thread avairet
Hello, Some solutions... - test a special field (or value) into $results in afterFind(), a field (or value) that is only fetch by your special action's find() - create a custom find() method in your model and call it from your controller's special action (for example: $this-MyModel-

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread avairet
Hi Max and Grigri, I've retested some solutions to validate with a custom regex, but no success! It seems the problem is due to utf-8, because in a iso-8859-1 context, it seems to work... My environment: Cake 1.2.x.x nightly builds PHP 5.2.5 MySQL 5.0.45 Apache 2 I've setted my LOCALE in

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread avairet
Grigri, my first example is exactly what you said and it doesn't work... Do you need some glasses ;o)) Aurélien On 9 avr, 16:32, grigri [EMAIL PROTECTED] wrote: Your regexp: '/^[[:alpha:]]/' should probably be '/^[[:alpha:]]+$/' On Apr 9, 3:05 pm, avairet [EMAIL PROTECTED] wrote: Hi

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-09 Thread avairet
I'm wearing glasses too! Your solution seems interesting but how be sure the replace method match all possile accented chars typoing by the user? And how invalidate blanks, spaces, symbols, number? I'm not sure to understand very well your suggest... In any case, great thanks to interest of my

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-04-08 Thread avairet
Hi grigri, I've just tried your solution : as in : `/^\w+$/` It doesn't work... if I type some French accented characters or - in an input called prenom. Here is my $validate rule : public $validate = array( 'prenom' = array(

saveAll and HABTM?

2008-04-03 Thread avairet
Hi, I'm using nightly builds from 1.2.x.x branch. My main model Item have this associations: Item hasOne Article Item hasOne Photo Item hasAndBelongsToMany Tag ... In a form I have these fields : data['Item']['id'] (it's results on a form input TEXT) data['Item']['title'] (it's results on a

Re: CSS and images?

2008-03-04 Thread avairet
Hi Jason, Basically, CSS and images should be in webroot/ccs and webroot/img directories, not in the App. Hope this helps you... BR Avairet On 4 mar, 14:59, Jason [EMAIL PROTECTED] wrote: More noob questions. Where do I put my CSS in relation to the app folder? Where do I put my images

Re: Better way to create reflexive association?

2008-03-03 Thread avairet
? Hope this post is clear... BR Avairet On 29 fév, 13:59, avairet [EMAIL PROTECTED] wrote: OK, great! Thank you so much. I try this stuff now. On 29 fév, 13:52, grigri [EMAIL PROTECTED] wrote: Nonono, the 'ReadTheseFirst' and 'ReadTheseAfter' are aliases for the same model - Article. You

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-02-25 Thread avairet
. It doesn't mean valid text in any language known to man. Just how useful this validation method is remains to be seen... On Feb 15, 4:26 pm,avairet[EMAIL PROTECTED] wrote: OK! Thank's. I've found myself and I've wrote a regular expression! It's normal alphaNumeric validation

Re: Model primarykey

2008-02-25 Thread avairet
for Primary Keys and Reflexive Associations could be a restraint for that... I hope this post is understandable and the Cake's community will work to improve that in 2.0 release... Avairet On 25 fév, 02:13, Mr-Yellow [EMAIL PROTECTED] wrote: The responses to tickets relating to this issue in trac

Re: Model primarykey

2008-02-25 Thread avairet
. - I understand it's hard for you to always repeat the same thing, but keep cool with new members of community, because this problematic is not written on documentation/manual/API BR Avairet a simple stupid French guy ;o) On 25 fév, 14:21, nate [EMAIL PROTECTED] wrote: On Feb 13, 8:25 am

i18n script ans default.po file

2008-02-22 Thread avairet
.POT files instead of an only one default.po file? Because if my translations are not in default.po file, they are not displayed in my app... I'm using Cake 1.2.x.x nighlty builds Sorry for my simple English. Avairet --~--~-~--~~~---~--~~ You received this message

Re: i18n script ans default.po file

2008-02-22 Thread avairet
translations are not displayed. So I repeat my question: must I put all translated strings in default.po files? Hope this message is understandable... BR Avairet On 22 fév, 16:17, leo [EMAIL PROTECTED] wrote: 1. change all the .POT extensions to .po 2. each language file should reside in its own

Re: i18n script ans default.po file

2008-02-22 Thread avairet
language and leave the name as default. On Feb 22, 4:28 pm, avairet [EMAIL PROTECTED] wrote: OK, thank you Leo! I know your point 2. When I use the i18n script, I select the good path to my locale: myapp/locale/fre/LC_MESSAGES/default.po But why the script write .pot files instead

Re: relations in cake problem

2008-02-18 Thread avairet
... Avairet On 17 fév, 23:53, andrewharlan [EMAIL PROTECTED] wrote: Can any1 help me with this? i understand Post $hasone category and $hasone locality. but can i set category to $belongsto Post and locality as $belongsto Post ?? --~--~-~--~~~---~--~~ You received

Unit tests and Bake script

2008-02-15 Thread avairet
var $useDbConfig = 'test' in nature.test.php... Avairet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group

Validation criteria alphaNumeric doesn't accept special chars

2008-02-15 Thread avairet
noticed that? Avairet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

Re: Validation criteria alphaNumeric doesn't accept special chars

2008-02-15 Thread avairet
regex to handle your requirements. Cheers, Adam On Feb 16, 1:56 am, avairet [EMAIL PROTECTED] wrote: Hi, Model : nature (id int auto-increment PK / label varchar (50) ) var $validate = array( 'label' = array('alphaNumeric') ); Create basic functions in NaturesController

Re: Eclipse + PHP Cake

2008-02-13 Thread avairet
understand your question... but it seems the same problem that validator. you can also tunr it off auto quote close in Eclipse/PDT preferences. Hope this help and excuse me for my simple frenchy English. Avairet On 11 fév, 10:03, R [EMAIL PROTECTED] wrote: Am new to Cake/PHP/ and their Eclipse

Re: Better way to create reflexive association?

2008-02-13 Thread avairet
and to have foreignKey and associationForeignKey with the same name? BR Avairet On 12 fév, 18:43, b logica [EMAIL PROTECTED] wrote: On Feb 12, 2008 11:46 AM, avairet [EMAIL PROTECTED] wrote: Hi everybody, I'm trying to create a reflexive association, a table HABTM with itself. What

Re: Model primarykey

2008-02-13 Thread avairet
not null index! I'm agree with you : Cake doesn't a whole lot! But it will better if it respects some basical rules, like compound PK... isn't it? So, temporarily, I will add a dump auto incrementing ID to my relational tables! Avairet On 12 fév, 18:19, Baz [EMAIL PROTECTED] wrote: Here

Bake and Unit tests

2008-02-13 Thread avairet
that or for a simple example/tutorial... and once again, excuse me for my simple frenchy English. Avairet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: Model primarykey

2008-02-13 Thread avairet
I have asked again my SQL gurus about this hack using in Cake. Their answer is : adding an Id field is possible, but it will result to a sensible performance decrease (I/O bound effect). Hope this help to improve Cake capacities for the future releases... Avairet On 13 fév, 14:25, avairet

Better way to create reflexive association?

2008-02-12 Thread avairet
Hi everybody, I'm trying to create a reflexive association, a table HABTM with itself. What is the better way to generate it with Cake? Thanks by advance for answers... BR Avairet --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Model primarykey

2008-02-12 Thread avairet
Hi, I've the same question. Cake will never support compound or multiple primary keys?? Why? How manage this issue? Thanks by advance Avairet On 12 fév, 09:44, Matias Lespiau [EMAIL PROTECTED] wrote: On Feb 12, 2008 3:56 AM, adammc84 [EMAIL PROTECTED] wrote: if the MySql database

Re: CakePHP guide

2008-02-07 Thread avairet
that, French, Japanese, German, Spanish and many other Cakers can translate your prose! Sorry for my simple English... Avairet On Feb 3, 7:01 pm, MonkeyGirl [EMAIL PROTECTED] wrote: Hi! Just to let you all know, I've finally written enough of the CakePHP guide that I'm working on to warrant putting

Some bake problems...

2008-01-10 Thread avairet
) The validation criteria is not written in the model file! 3) I can't select multiple validation criterias for one model... Do you think I will create a ticket or bug report on trac for this troubles? BR Avairet --~--~-~--~~~---~--~~ You received this message because you

Re: Some bake problems...

2008-01-10 Thread avairet
I have upgraded the console with nightly build release but problems always exist... Avairet On 10 jan, 11:34, avairet [EMAIL PROTECTED] wrote: Hi everybody, I found some problems with bake script in command line. I'm using 1.2.0.6311 beta release, not the nightly. 1) In a controller

Re: specify field instead of string in conditions array

2008-01-10 Thread avairet
Hello Brian, Can you explain more? What is your context? Because conditions array is normally for SQL conditions (e.g. : Post.id 5 or Post.id 10), not for fields... BR Avairet On 10 jan, 02:32, blange [EMAIL PROTECTED] wrote: $conditions = array( 'Post.id

Re: where to find cakephp developers?

2007-12-18 Thread avairet
Hi Joe! Here is a special jobs website about Cake: http://withcake.com/ BR Avairet On 17 déc, 22:44, joeradical [EMAIL PROTECTED] wrote: I am looking for the best place to find seasoned cakephp guru's. I am rewriting our entire site for cake and may need additional help to speed up

Call to Controller::referer() method from a component?

2007-12-17 Thread avairet
MyCustomFunction () { $var = $this-controller-referer(); } } But it doesn't work... No data is stored in $var. Why? Have you an idea? Must I write something in the Controller::beforeFilter() ?? Thank's by advance and sorry for my frenchy simple English! BR Avairet

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
, because by default Cake search for an id key to make associations. ? class Ugroup extends AppModel { public $primaryKey = 'ugroup_id'; } ? I hope this helps you... BR Avairet On 12 déc, 08:37, Sanfly [EMAIL PROTECTED] wrote: No good im afraid, same error, except ugroup_id is now ugroupid

Translate months name in $form-dateTime select

2007-12-12 Thread avairet
with their name translated to input or select or dateTime functions? I've made a new Helper called LocaltimeHelper to manage the local date formats, but I don't know how handle the FormHelper functions to get translated select elements? Thanks by advance for your opinions about that. BR Avairet

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
Ok, that works! Very nice! But in this case, some of my find() or save() calls become more complex: $this-Model1-Model2-Model3-save(); And the resultsets of my find are now in the DESC order... Avairet On 12 déc, 15:54, avairet [EMAIL PROTECTED] wrote: Hi Mr Tufty, I didn't know

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
I add another comment: if you are using Eclipse and PDT Eclipse, the autocompletion for model's methods in controller doesn't work again. On 12 déc, 16:07, avairet [EMAIL PROTECTED] wrote: Ok, that works! Very nice! But in this case, some of my find() or save() calls become more complex

Where write setlocale to custom date in all the application?

2007-12-10 Thread avairet
in the dateTime method of FormHelper, but it's not a good practice to modify the Cake's original helper. So where can I write setlocale to translate date in alla of my application? In AppHelper? In config/core.php? another place? Thanks for help and sorry for my simple frenchy English. BR Avairet

Using form helper without model?

2007-11-30 Thread avairet
class=inputlabel for=RubriqueRubrique/label input name=data[Rubrique] type=text value= id=Rubrique // div div class=submitinput type=submit value=Valider //div /form Thank's in advance and excuse me for my simple frenchy English! Avairet --~--~-~--~~~---~--~~ You

Re: cakephp-fr

2007-11-26 Thread avairet
Bonjour à tous ! Oui, parlons un peu français, puisque nous sommes sur ce post pour évoquer une communauté francophone autour de Cake ! J'utilise Cake depuis deux mois environ, suite à une décision du chef de projet de la boîte où je suis actuellement en mission. Et l'une des difficultés

Re: cakephp-fr

2007-11-26 Thread avairet
believe that translating the docs is a doable task. I can commit myself to such a project. Still as avairet says, there needs to be leadership. Why not you? Since it's your idea... I am now waiting for you to launh the website, to make clear what are the role to play when we engage ourselves. Donc

Re: Eclipse code completion in Views

2007-11-26 Thread avairet
, Michael avairet schrieb: Hi Michael and thank you very much for your baking advice! For a small application like yours, obviously it's nice to write all PHPDoc comments for Models in AppController and more nice if nothing is loading! But in my case, the application is big and we are 4

Re: Cake Vendors directory access?

2007-11-21 Thread avairet
again... maybe it's just a path error. BR Avairet On 21 nov, 05:54, Grant Cox [EMAIL PROTECTED] wrote: I have no idea why it doesn't work for you, it works fine here. Are you sure you aren't including the .php part of the filename in your vendor call? Is your file in a subfolder or anything

Re: Difference between Session helper and Session component?

2007-11-21 Thread avairet
must know PHP's sessions and/or Helper's methods/properties to create his views. So I must avoid to be a fundamentalist of MVC ;o) Avairet On 21 nov, 00:31, Grant Cox [EMAIL PROTECTED] wrote: Obviously, component is for controllers, helper is for views. The reason for the helper

Re: Eclipse code completion in Views

2007-11-21 Thread avairet
Hi Michael and thank you very much for your baking advice! For a small application like yours, obviously it's nice to write all PHPDoc comments for Models in AppController and more nice if nothing is loading! But in my case, the application is big and we are 4 developpers to code... so I think

Difference between Session helper and Session component?

2007-11-20 Thread avairet
? This is normally controller's job, isn't it? Can you explain the difference or show me an example of Session usage with component and helper? Thank's by advance and excuse me for my simple English. BR Avairet --~--~-~--~~~---~--~~ You received this message because you

Cake Vendors directory access?

2007-11-20 Thread avairet
this library in all apps directories, this is not useful! Why the cake/vendors directory doesn't work correctly? I need to point out that my Cake directory and apps directories are separated. Avairet --~--~-~--~~~---~--~~ You received this message because you

Re: Eclipse code completion in Views

2007-11-16 Thread avairet
OK, thank's Michael! But is it a good idea to load all models in AppController whereas this models are not used in all Controllers that extends AppController? Or your trick doesn't load the models but just indicates it for code completion to PDT Eclipse? In the same way, HtmlHelper is declared

Re: Eclipse code completion in Views

2007-11-14 Thread avairet
-Component. Must I write the PHPDoc comment in all my controllers which are using SessionComponent? Or I must write it in AppController too? I hope my message is understandable... Have a nice day ! Aurélien (avairet) On 13 nov, 18:47, schneimi [EMAIL PROTECTED] wrote: Hi Avairet

Re: Eclipse code completion in Views

2007-11-14 Thread avairet
! Currently I think create 2 projects in Eclipse: one for SVN checkout and one for my real web project. And then I will merge all files before making my SVN commits... See you another solution? BR, Aurélien (avairet) --~--~-~--~~~---~--~~ You received this message

Re: Eclipse code completion in Views

2007-11-13 Thread avairet
work with a SVN shared project? - and last, is it possible to take code completion for components', behaviors, elements and so on? Thank's for your kind attention and best regards! Avairet On 15 oct, 05:35, Mandy [EMAIL PROTECTED] wrote: I use Easy Eclipse for PHP. I created

Re: How to use vendors directory to share Fckeditor?

2007-11-12 Thread avairet
, the class is not found in my Helper. But, if I put fckeditor.php in app/vendors, that's OK. For only one app is good, but to share cake core between many app, this would be better to share fckeditor too. Excuse me for my simple English, I hope my post is understandable... BR Avairet On 9 nov, 19

Re: display validation error messages for textarea?

2007-11-09 Thread avairet
Avairet On 8 nov, 19:45, Radish [EMAIL PROTECTED] wrote: maybe instead of echo $form-textarea('Article.contenu'); use echo $form-input('Article.contenu', array( 'type' = 'textarea' )); --~--~-~--~~~---~--~~ You received this message because

Re: display validation error messages for textarea?

2007-11-09 Thread avairet
using each to keep some coherence with HTML syntax... I've understood inputs method, but I've made some tests and it didn't work fine... I'll try it again. BR, Avairet On 9 nov, 11:12, AD7six [EMAIL PROTECTED] wrote: On Nov 9, 10:13 am, avairet [EMAIL PROTECTED] wrote: Hello and thank's

How to use vendors directory to share Fckeditor?

2007-11-09 Thread avairet
['height']; $my_editor-ToolbarSet = $toolbar; $this-controller-set('fckeditor', $my_editor); } } Avairet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

display validation error messages for textarea?

2007-11-08 Thread avairet
Hi everybody, I'm French and I'm using CakePhp 1.2 since one month. I don't understand why the validation error messages are not displaying for a textarea field... My model: [code] class Article extends AppModel { public $name = 'Article'; public $validate = array (

Re: display validation error messages for textarea?

2007-11-08 Thread avairet
English... B.R. Avairet On 8 nov, 18:24, avairet [EMAIL PROTECTED] wrote: Hi everybody, I'm French and I'm using CakePhp 1.2 since one month. I don't understand why the validation error messages are not displaying for a textarea field... My model: [code] class Article extends AppModel

  1   2   >