Re: How to make session expire after browser close?

2007-07-16 Thread AD7six
On Jul 16, 9:01 pm, Alex <[EMAIL PROTECTED]> wrote: > On 4 Jul., 11:57, SMARTEGURU <[EMAIL PROTECTED]> wrote: > > > define('CAKE_SESSION_SAVE', 'database'); > > define('CAKE_SECURITY','low'); > > define('CAKE_SESSION_TIMEOUT', '12'); > > CAKE_SECURITY = low causes the session cookie to be saved

Re: How to make session expire after browser close?

2007-07-16 Thread AD7six
On Jul 16, 9:01 pm, Alex <[EMAIL PROTECTED]> wrote: > On 4 Jul., 11:57, SMARTEGURU <[EMAIL PROTECTED]> wrote: > > > define('CAKE_SESSION_SAVE', 'database'); > > define('CAKE_SECURITY','low'); > > define('CAKE_SESSION_TIMEOUT', '12'); > > CAKE_SECURITY = low causes the session cookie to be saved

Re: hasAndBelongsToMany - Get Posts which belongs to a Tag and get all Tags that belongs to the corresponding Posts.

2007-07-16 Thread AD7six
On Jul 16, 10:32 pm, Grapetonic <[EMAIL PROTECTED]> wrote: > Now how can I, on a simple magic CakePHP way, also get all tags > related to the corresponding posts? I can probably get a foreach loop > to go thru all the posts and do a $this->Post->find(array('Post.id'=>"LIKE > $post[id]") to get

Re: Seems like waste of effort to have both ...

2007-07-16 Thread AD7six
On Jul 17, 6:27 am, beetlecube <[EMAIL PROTECTED]> wrote: > ... editpost and newpost pages. > > I'm creating a mini-discussion forum, and not sure whether or not to > have the "new post" and "edit post" pages just simply combined. > But I don't want the URL bar to say "edit" if someone is creat

Re: Yet another validation question...

2007-07-16 Thread francky06l
Could you post your validation set in the model ? On Jul 16, 8:56 pm, R13ckJ <[EMAIL PROTECTED]> wrote: > Take it I'm not the only one missing something huh?! > > On Jul 16, 1:50 pm, R13ckJ <[EMAIL PROTECTED]> wrote: > > > Can someone tell me why when I set multiple validation messages in my > >

paginator sort options

2007-07-16 Thread Copot
CakePHP 1.2 Basically i just want to display an image (arrow up or down) which must be corelated with the sort field and the sort direction. How can I tell which field is being used and the direction of the sort? Can anyone help me ? --~--~-~--~~~---~--~~ You rece

Seems like waste of effort to have both ...

2007-07-16 Thread beetlecube
... editpost and newpost pages. I'm creating a mini-discussion forum, and not sure whether or not to have the "new post" and "edit post" pages just simply combined. But I don't want the URL bar to say "edit" if someone is creating a new post. (The other aspects of how to do it this way are of

HasAndBelongsToMany and Select Multiply

2007-07-16 Thread osnipassos
I searched on as to make select multiply with HasAndBelongsToMany relationships and the result most interesting had been: http://manual.cakephp.org/chapter/models http://edivad.wordpress.com/2007/04/19/cakephp-hasandbelongstomany-habtm/ I obtained to use helpers suggested more generatelist of th

Re: About cakephp's performance

2007-07-16 Thread Feris Thia
On 7/17/07, Marcus <[EMAIL PROTECTED]> wrote: > > Why not? When using persistent models CakePHP saves serialized model > data to disk - this should work even in a CGI-Environment. > > Marcus > > Interesting... will explore it ! Thanks Marcus ! Regards, Feris --~--~-~--~~

Re: hasAndBelongsToMany - Get Posts which belongs to a Tag and get all Tags that belongs to the corresponding Posts.

2007-07-16 Thread Dr. Tarique Sani
On 7/17/07, Grapetonic <[EMAIL PROTECTED]> wrote: > > > Now how can I, on a simple magic CakePHP way, also get all tags > related to the corresponding posts? I can probably get a foreach loop > to go thru all the posts and do a $this->Post- > >find(array('Post.id'=>"LIKE $post[id]") to get the corr

Re: Tip O' the Day

2007-07-16 Thread Gustavo Carreno
On 7/12/07, John David Anderson <[EMAIL PROTECTED]> wrote: > Gustavo!!! > > Hey man. :) Sure missed you all this time. Long live IRC :) We'll meet there more often :P -- Gustavo Carreno --- < If you know Red Hat you know Red Hat, If you know Slackware you know Linux > --~--~-~--~~-

Re: radio button

2007-07-16 Thread Geoff Ford
Create three normal checkboxes with name="data[my_action]" and make sure one of them defaults to checked THen in your action it is as simple as function action_name() { if (!empty($this->data) && isset($this->data['my_action'])) { switch ($this->data['my_action']) { case "one":

Re: Setting Session Expiration

2007-07-16 Thread Geoff Ford
Session security and expiration are configured in app/config/ core.php. Start and define('CAKE_SESSION_SAVE', 'php'); and follow the comments, it is pretty well documented. Geoff -- http://lemoncake.wordpress.com On Jul 17, 8:18 am, John - PostalService <[EMAIL PROTECTED]> wrote: > Hello, > > I

Re: radio button

2007-07-16 Thread Geoff Ford
Weird, I posted a reply, set the email me responses and then poof...no reply. Anyways here it is again. Create 3 normal radioboxes with name="data[my_action]" preferably with one set to default checked Then in your action you can test with if (!empty($this->data) && isset($this->data['my_action

Re: Javascript syntax error Scriptaculous

2007-07-16 Thread rtconner
You got it a bit wrong... echo $javascript->link('scriptaculous/effects'); On Jul 16, 3:44 pm, Arendp <[EMAIL PROTECTED]> wrote: > I have this problem: > We work with some Javascript, including the script from Sriptaculous. > > The javascript is included like this in our template: > if(isset($ja

$form->datetime bug when its optional?

2007-07-16 Thread burzum
I have this _optional_ datefield, the user can fill it but its not required to fill it. dateTime('Event.enddate','DMY', 24,false,array('minYear' => date('Y',time()),'maxYear' => date('Y',time()) + 2),true)?> But when there's a validation error in the Event.title field, it outputs this datefield

Javascript syntax error Scriptaculous

2007-07-16 Thread Arendp
I have this problem: We work with some Javascript, including the script from Sriptaculous. The javascript is included like this in our template: if(isset($javascript)){ echo $javascript->link('prototype'); echo $javascript->link('scriptaculous'); echo $javascript->link('effects'); etc... } Javasc

Re: symfony

2007-07-16 Thread Thierry
Whow, some really active community here. I have almost finished the humongous symfony manual. Yes, they definitely complicate stuff. That is why my current choice is symfony, because it teaches me so many best-practises in php programming. >From what I see right now the time saved is insane with

radio button

2007-07-16 Thread Laburno
Hi, i'm a total newbie to Cakephph, so please don't be rude :). I'm trying to make a form with a radio button with 3 values (the radio is not linked to any database attribute). Depending on the value selected, the controller function invoked will perform different tasks... the mess is that i don't

Setting Session Expiration

2007-07-16 Thread John - PostalService
Hello, I am using a similar method as this (http://manual.cakephp.org/ appendix/simple_user_auth) to do my authentication. However I would like the session to expire sooner. How would I set that? Thanks, John --~--~-~--~~~---~--~~ You received this message be

Re: Bakery Article : How to use ACL in 1.2.x

2007-07-16 Thread Ketan Patel
Sorry about that.. The updated code is here. An array of data needs to be passed to the Save function and I was missing that array in there. The updated code is here and I have updated the article as well. create(); $aro->save(array( 'model'=>'User', 'foreign_key'=>null, 'pa

Re: Paginator HELPER, Ajax mode, IE7 problems

2007-07-16 Thread cakeFreak
Hey Nate, cheers for the help! well I did some other Ajax stuff using sortable etc but with previous prototype versions: I should retry with the last build. About the paginatore issue, I'm using the last prototype version (1.5.1.1) I.E. 7 does not give any JS error. Is any tool I should use fo

Re: Paginator HELPER, Ajax mode, IE7 problems

2007-07-16 Thread nate
Well, the obvious solution would be to not use IE7. Do you get any script errors in IE7? Do other types of Ajax calls work for you with that copy of Prototype? Do you have the latest Prototype version? On Jul 16, 4:01 pm, cakeFreak <[EMAIL PROTECTED]> wrote: > I builded a page with the pagina

[job] Toronto based Cakephp developer needed

2007-07-16 Thread cake.developer
Location: Toronto, ON Industry:Internet Website type:Online community Job Type: Long-term freelance contract, off-site Hiring Timelines:August 2007 Requirements: You need to be based in the GTA Ideal candidate: Jack-of-all-

Re: About cakephp's performance

2007-07-16 Thread Marcus
On Jul 11, 2:34 pm, "Feris Thia" <[EMAIL PROTECTED]> wrote: > On 7/11/07, Marcus <[EMAIL PROTECTED]> wrote: > > > > > On 11 Jul., 00:49, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > > > My approach: make it work, then make it fast. > > > Right! > > > You can get an impressive performance gain fo

Re: hasAndBelongsToMany - Get Posts which belongs to a Tag and get all Tags that belongs to the corresponding Posts.

2007-07-16 Thread rtconner
Yeah It's not a one liner, and you have to make a model for the join table... http://groups.google.com/group/cake-php/browse_thread/thread/8cbf01f7a9acda57/9e84f7aacbf3cd85 http://groups.google.com/group/cake-php/browse_thread/thread/f23b1825050ad543/014092749592de70 --~--~-~--~~---

hasAndBelongsToMany - Get Posts which belongs to a Tag and get all Tags that belongs to the corresponding Posts.

2007-07-16 Thread Grapetonic
This one has been bothering me for a while so it's time for help. Tables: * posts * tags * posts_tags ^ i.e. hasAndBelongsToMany relationship between posts and tags. The first thing I want to do is to find all the Posts related to one Tag ($tag). Simple: $posts = $this->Post->Tag->find(array('T

Paginator HELPER, Ajax mode, IE7 problems

2007-07-16 Thread cakeFreak
I builded a page with the paginator helper. -- Using: CAKEPHP: 1.2.0.5427alpha Prototype: 1.5.1.1 --- everything works fine with Firefox and Safari. Wi

Re: Multi model controller

2007-07-16 Thread Cacho
Ignore it. I've searched in forums and get the answer... I'll search before ask in the future ! :) J On Jul 16, 9:31 pm, Cacho <[EMAIL PROTECTED]> wrote: > Hi > > I've been following the blog tutorial in Cake manual and I think its > ok but at the time to start to do a real work I found some

Re: 1.2.x - Saving additional data in join table

2007-07-16 Thread Mech7
look here: http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior On Jul 16, 9:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > I've got my HABTM relationship working nicely in 1.2.x. But I'm > trying to save an additional field in the join table. I know this was > not p

Multi model controller

2007-07-16 Thread Cacho
Hi I've been following the blog tutorial in Cake manual and I think its ok but at the time to start to do a real work I found some doubts. In that example code, one model is related to one controller but in the site I want to develope, the home page will show a lot of data from various controll

Re: Advanced config problem

2007-07-16 Thread Cacho
Thanks for your reply. I decided to use a standard install. :) C On Jul 14, 12:55 am, CakeSpork <[EMAIL PROTECTED]> wrote: > Hey, > > I had been struggling with this this week, though my errors lay > somewhere else for the majority of the time. > You seems to have some weird setup here, thou

Re: how to resfresh and show in the same page???

2007-07-16 Thread Chris Hartjes
On 7/16/07, ayya <[EMAIL PROTECTED]> wrote: > > Hi, I'm new in PHP and MySQL > > I'm trying to display some records stored in a MySQL database when > user selects a value from a drop down list. The lists' values are > also > pulled from the database. I want to display the records in the same > pag

1.2.x - Saving additional data in join table

2007-07-16 Thread [EMAIL PROTECTED]
Hi, I've got my HABTM relationship working nicely in 1.2.x. But I'm trying to save an additional field in the join table. I know this was not possible easily with cake 1.1.x but I was wondering if anyone knows a better way to do this with the extra magic of 1.2.x. I was wondering if it would be

Re: symfony

2007-07-16 Thread Baz
Yep, I'm with you. Maybe I'm the type of guy who shouldn't even be doing this. But I need to do some simple projects. I can mug my way through a couple PHP scripts, but as to writing anything from scratch? Nope. I won't get too far unless I have PHP.net open in the next window. I'm all for rapid

Re: symfony

2007-07-16 Thread Baz
Yep, I'll have to agree there. The Automagic is what drew me in. As soon as I saw that screen cast I was hooked. -- Baz L Day In The Life of Baz http://www.LifeOfBaz.com/ On 7/16/07, citrus <[EMAIL PROTECTED]> wrote: > > > Well, before choosing Cake as my favourite framework, i've have a look > at

how to resfresh and show in the same page???

2007-07-16 Thread ayya
Hi, I'm new in PHP and MySQL I'm trying to display some records stored in a MySQL database when user selects a value from a drop down list. The lists' values are also pulled from the database. I want to display the records in the same page... like some websites they have this function when user s

Re: How to make session expire after browser close?

2007-07-16 Thread Alex
On 4 Jul., 11:57, SMARTEGURU <[EMAIL PROTECTED]> wrote: > define('CAKE_SESSION_SAVE', 'database'); > define('CAKE_SECURITY','low'); > define('CAKE_SESSION_TIMEOUT', '12'); CAKE_SECURITY = low causes the session cookie to be saved for 78894 seconds - even if your browser is being closed, the

Re: Yet another validation question...

2007-07-16 Thread R13ckJ
Take it I'm not the only one missing something huh?! On Jul 16, 1:50 pm, R13ckJ <[EMAIL PROTECTED]> wrote: > Can someone tell me why when I set multiple validation messages in my > model in the view only the last validation message is available? Why > does it get overwritten so the user can only

Re: symfony

2007-07-16 Thread John David Anderson (_psychic_)
On Jul 16, 2007, at 12:46 PM, Chris Hartjes wrote: > > On 7/16/07, Dave <[EMAIL PROTECTED]> wrote: >> >> Same here. Symfony is a pain to install. I still beg someone to write >> a detailed book on Cake. > > This has come up a lot (Symfony being a pain to install). I went and > read the instruct

Re: symfony

2007-07-16 Thread Chris Hartjes
On 7/16/07, Dave <[EMAIL PROTECTED]> wrote: > > Same here. Symfony is a pain to install. I still beg someone to write > a detailed book on Cake. This has come up a lot (Symfony being a pain to install). I went and read the instructions on the site (even did the Ajax tutorial a while back) and di

Re: symfony

2007-07-16 Thread Dave
Same here. Symfony is a pain to install. I still beg someone to write a detailed book on Cake. On Jul 16, 8:29 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > cake installed and working in seconds flat > > symfony waded through documentation for a couple of hours with not much to > show for it >

Re: Reuse Cake based models in external maintanance scripts

2007-07-16 Thread francky06l
I did the same for running some controller/action with cron job. I just modified the index.php and "rebuild" the url before calling dispatcher : if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { } else { if(!isset($_SERVER['argc']) || $_SERVER['argc'] <= 1)

Re: $this->cakeError refuses to load a custom layout.

2007-07-16 Thread rtconner
Ah.. phpjoy, I had the same problem. There is no easy solution so far as I could find. No good solution that I liked anyways. Errors always use the default layout, and there is nothing you can do to change that. .. So.. the best solution as I could figure is this.. Create /app/error.php and copy

Re: Models not related to db?

2007-07-16 Thread Joshua Benner
I make controllers that are not directly related to a database model frequently. In the controller: var $uses = null; Quick search for "controller without a model" yielded many relevant results, including: http://groups.google.com/group/cake-php/browse_thread/thread/f9965004e2f3efc2/3d7ab42

Models not related to db?

2007-07-16 Thread jmartyniak
So kind of the first point is that it seems that every controller needs a model in able to do something, and that model must be related to a database table. So how do you go about creating functions that may or may not be related to a table or at least not related to the model that you are workin

Re: Bakery Article : How to use ACL in 1.2.x

2007-07-16 Thread CakeSpork
Thanks for the reaction. I understand it is to gain concepts, I'm trying to gain them and your article is helping me a lot. I made a new init_acl_controller.php in /controllers/ and it gave me: "Parse error: syntax error, unexpected T_DOUBLE_ARROW in D:\Program Files\xampp\project_files2\filmsite

Re: PHP 4 = Dead

2007-07-16 Thread bingomanatee
I talked directly to a Zend guy at a SugarPHP conference about the fact that people still find the experience of using PHP 4 codebases in a PHP 5 environment, and he was in complete denial. "No, its really easy," he said. "No its not," I replied. I tried to tell him that finding poor uses of refer

Re: Bakery Article : How to use ACL in 1.2.x

2007-07-16 Thread Ketan Patel
CakeSport, What line gives you error? Can you tell more about error ? Moreover, I would not recommend using the code from this article in a production environment. This code is more to gain concepts rather than use it as is. Ketan CakeSpork wrote: > Hey, really cool that you're making a tutoria

Re: Bakery Article : How to use ACL in 1.2.x

2007-07-16 Thread Ketan Patel
Geoff, True, one should use Acl Behavior to full extent possible. The purpose of the article is to inform use about how to use ACL in 1.2. and I wanted to cover both aspects. Moreover, if you just tell someone about Acl behavior, then they should understand what is happening behind the scenes. I

Re: symfony

2007-07-16 Thread Christopher E. Franklin, Sr.
In my experiences, I don't have a formal education in PHP or any of that junk but, I know enough to be dangerous. Since I do have a job as a web developer, when I was asked to re-write the entire site, I sat down for about 5 days reading the different documentations an manuals. What I walked awa

Model->Save Methodology Dilemma

2007-07-16 Thread agent32
I have searched the group for similar posts on what I am trying to do without much luck. What is the best practice for implementing the following. I have two related tables in a db namely: CREATE TABLE `users` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `parent_id` INT(11) NOT NULL d

Re: cakephp 1.2 ACL problem

2007-07-16 Thread Christopher E. Franklin, Sr.
Any idea how long these articles take to be approved? I guess they(whoever they are) are checking for accuracy. On Jul 13, 7:11 am, Ketan Patel <[EMAIL PROTECTED]> wrote: > I have written an article on 'How to use Acl in 1.2x' which is pending > approval on bakery. I don't know if you could acce

Re: Reuse Cake based models in external maintanance scripts

2007-07-16 Thread John David Anderson (_psychic_)
On Jul 16, 2007, at 9:16 AM, roland wrote: > > Hi there, > > is there an easy way to reuse the models defined in an Cake based > application for example to use in a database maintance script which > might be called via cron? I use /app/webroot/index.php as a template to create new scripts for

Reuse Cake based models in external maintanance scripts

2007-07-16 Thread roland
Hi there, is there an easy way to reuse the models defined in an Cake based application for example to use in a database maintance script which might be called via cron? Thank you in advance. with best regards, Roland --~--~-~--~~~---~--~~ You received this mes

Re: symfony

2007-07-16 Thread housebolt
Look at it this way, Cake keeps its structure simple and completely php-based so you don't have to use the command line if you don't want to, which symfony has you doing all of the time. The only time I use the command line is at the beginning of a project, and that's using the bake.php script. B

Re: Failure to JOIN and query correctly beyond $recursive = 1 - workarounds or fixes welcome, maybe a bug?

2007-07-16 Thread Nick
> No private emails please. The bulk of your question is answered in the > first result of that search: Sorry, it was actually intended for the group. And thanks for the link. I think it was one that I'd seen already, but doesn't have an explanation other than a vague comment that the limitatio

Re: symfony

2007-07-16 Thread [EMAIL PROTECTED]
I only have experience with Cake, but was and still am very interested in Symfony and CodeIgniter (although I have chosen to go with Cake for my current project). In a perfect world we would all have the time to devote to exploring and testing all options; in this case, the seemingly three big PHP

Re: cakephp 1.2 ACL problem

2007-07-16 Thread Pillow
On 13 Lip, 16:11, Ketan Patel <[EMAIL PROTECTED]> wrote: > I have written an article on 'How to use Acl in 1.2x' which is pending > approval on bakery. I don't know if you could access it, though the > url ishttp://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x > > Let me know if it help

cake1.2 controller testing?

2007-07-16 Thread Mike Green
Dear all I've followed the walkthrough for model testing http://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1-2-test-suite which is great, but I need something that will test my controllers and the rest of my application. Please forgive my igorance if I'm missing something obvi

Re: How to update a form field using Ajax

2007-07-16 Thread [EMAIL PROTECTED]
I did it using simple javascript, not ajax, for example, for every radio button I put this code in my view: This way, once I click on an radio returned by the search view, the value is passed to the text field set in onclick event. I hope this help you as well --~--~-~--~~---

Re: symfony

2007-07-16 Thread Sam Sherlock
cake installed and working in seconds flat symfony waded through documentation for a couple of hours with not much to show for it Now, now. Let's look at the competition fairly. I think the only > place where Symfony has CakePHP beat is the humungous amounts of > documentation they have vomited

Re: How can i get $form->dateTime() to use a number instead of english month names!?

2007-07-16 Thread burzum
Ok, thanks and how do i set the correct locale? On Jul 16, 5:14 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > Looking through the source the options are generated with > > case 'month': > 01343 for ($i = 1; $i <= 12; $i++) { > 01344 $data

Re: About cakephp's performance

2007-07-16 Thread Chris Hartjes
On 7/16/07, Chris Lamb <[EMAIL PROTECTED]> wrote: > Feris Thia wrote: > > > > - activating persistent models in your AppController (especially when > > > you have lots of models with many associations) > > > > Is that possible using php running as cgi ? > > If you're running PHP as a CGI, I'm not

Re: symfony

2007-07-16 Thread Nick
There are few articles on the web that compare the two frameworks from peoples real world experience, and those may be useful to you. Just search for symfony vs. cake When we were exploring this, about as quickly as we recognised that the Zend framework was on the wrong track (less than 30 mins :

Re: symfony

2007-07-16 Thread Chris Hartjes
On 7/16/07, Walker Hamilton <[EMAIL PROTECTED]> wrote: > > On Jul 16, 6:19 am, Thierry <[EMAIL PROTECTED]> wrote: > > why aren't you using symfony > > because symfony looks like a java programmer threw up a php > application. > Now, now. Let's look at the competition fairly. I think the onl

Re: symfony

2007-07-16 Thread Walker Hamilton
On Jul 16, 6:19 am, Thierry <[EMAIL PROTECTED]> wrote: > why aren't you using symfony because symfony looks like a java programmer threw up a php application. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: About cakephp's performance

2007-07-16 Thread Chris Lamb
Feris Thia wrote: > > - activating persistent models in your AppController (especially when > > you have lots of models with many associations) > > Is that possible using php running as cgi ? If you're running PHP as a CGI, I'm not sure why you are concerned about performance. -- Chris Lamb

Re: Bakery Article : How to use ACL in 1.2.x

2007-07-16 Thread CakeSpork
Hey, really cool that you're making a tutorial about this! I just upgraded to 1.2 and I'm trying to use ACL's now in a proper way. I'm still very new at this and sort of stumbling through my project, and that's probably why I'm stuck with the following question: how do I _use_ the code from initAc

Re: Upload behavior

2007-07-16 Thread Gorka
I'm still working on this and have come to the point where files are uploaded and their data is inserted as an association with the 'behaviored' model. Kind of a mix between translate & upload behaviors in fact. I'm currently trying to find a way to render the file field arrays on the model's form

Yet another validation question...

2007-07-16 Thread R13ckJ
Can someone tell me why when I set multiple validation messages in my model in the view only the last validation message is available? Why does it get overwritten so the user can only correct one validation error at a time? Surely I'm missing something! --~--~-~--~~~-

Re: symfony

2007-07-16 Thread citrus
Well, before choosing Cake as my favourite framework, i've have a look at symfony, codeigniter and of course, cakephp. symfony seems to be great, but it's far more complex than cake. even its directory structure scared me. codeigniter's documentation is better than cakephp, and (it is said that)

Re: Failure to JOIN and query correctly beyond $recursive = 1 - workarounds or fixes welcome, maybe a bug?

2007-07-16 Thread AD7six
On Jul 16, 8:30 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 16, 1:51 am, Nick <[EMAIL PROTECTED]> wrote: > > > This is presumably a bug or weakness in the current DB implementation. > > I presume you didn't search (the group) before drawing that > conclusion ;) > > AD No private emails pleas

Re: symfony

2007-07-16 Thread Mike Green
I too chose cakephp for that reason, which in hindsight wasnt such a great deal as I'm now self-hosted and can install whatever I want! But now ive got used to cake i'm going to stick with it. Mike On 16/07/07, Gorka <[EMAIL PROTECTED]> wrote: > > In fact I don't think he's trying to convince

Re: symfony

2007-07-16 Thread Gorka
In fact I don't think he's trying to convince anyone to use Symfony, but trying to decide which one to use -Cake or Symfony- and asking for the reasons that made us choose Cake. That would be fine if it weren't for the fact that by now it seems that the user base is his only argument, so he still

Re: Too much cake magic in ff browser?

2007-07-16 Thread Grzegorz Pawlik
Yes Felix, You are really good cake-prophet. Links to favicon () was the one to blame. If your probhet skills are so high, maybe You can tell when 2.0 is going to be stable release? Just kidding ;) Thanks a lot. Christian: I don't really like using requestAction, so I dont do it. And it wasn't th

Re: Using formHelper->file() to generate a file array

2007-07-16 Thread Gorka
Thanks both for your answers, but I'm afraid I didn't make myself clear. The form enctype was fine, the problem is how to properly set the file field to be an array instead of a single field, so when the form is submitted I can manage the multiple files contained in the field. That way file fields

Re: Analogues from Rails

2007-07-16 Thread AD7six
On Jul 16, 1:36 pm, RVince <[EMAIL PROTECTED]> wrote: > Here's a testament to Cake. Where :D? > I have a rails app, which was molded > arounded a legacy DB, and I have to migrate it to Cake. > > Problem is, I don't know how to specify certain relationships between > the DB in Cake -- I'm not e

Re: Using formHelper->file() to generate a file array

2007-07-16 Thread ctimoteo
On 16 Jul, 12:49, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 7/16/07, ctimoteo <[EMAIL PROTECTED]> wrote: > @ ctimoteo try $form->create('Geo_objectos', array('type' => 'file')); > instead of the above line Yes i know that, but i need to use "" for the File Handler component. "$form->

Re: symfony

2007-07-16 Thread Dr. Tarique Sani
On 7/16/07, Thierry <[EMAIL PROTECTED]> wrote: > > > why aren't you using symfony Why don't you tell us why should we use symfony T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com

Analogues from Rails

2007-07-16 Thread RVince
Here's a testament to Cake. I have a rails app, which was molded arounded a legacy DB, and I have to migrate it to Cake. Problem is, I don't know how to specify certain relationships between the DB in Cake -- I'm not even sure they CAN be modeled by Cake. Can someone please show me if and how th

symfony

2007-07-16 Thread Thierry
to all php fans maybe an evil word over here, why aren't you using symfony (i am and im hoping im not making the wrong choice, given that you have 6 times as many people which have joined this group...) --~--~-~--~~~---~--~~ You received this message because you

Re: Using formHelper->file() to generate a file array

2007-07-16 Thread Dr. Tarique Sani
On 7/16/07, ctimoteo <[EMAIL PROTECTED]> wrote: > > > In my view form i use: > > $form->create('Geo_objectos',array('enctype'=> 'multipart/form- > data','action'=>'save')) @ ctimoteo try $form->create('Geo_objectos', array('type' => 'file')); instead of the above line HTH T -- ==

Re: Using formHelper->file() to generate a file array

2007-07-16 Thread ctimoteo
Hello. I read about this subject too. In my view form i use: $form->create('Geo_objectos',array('enctype'=> 'multipart/form- data','action'=>'save')) and , for the form i use: One array for file name. Than in the controller i have $ficheiro as an array of files (or just one), with all the

Re: $this->cakeError refuses to load a custom layout.

2007-07-16 Thread francky06l
you can put any name you want as layout. So if you create layout "spark" put it in the layout folder and use $this->layout = "spark". On Jul 16, 11:12 am, phpjoy <[EMAIL PROTECTED]> wrote: > no ideas? > it's a bug? the normal behavior is loading a default layout? > > On Jul 14, 6:32 pm, phpjoy <[

Re: $this->cakeError refuses to load a custom layout.

2007-07-16 Thread phpjoy
no ideas? it's a bug? the normal behavior is loading a default layout? On Jul 14, 6:32 pm, phpjoy <[EMAIL PROTECTED]> wrote: > it seems like it won't load a custom layout for me. > > at first, i didn't have in app/views/layouts the file "default.ctp", > and it loaded the default cakephp layout.

Re: soap server

2007-07-16 Thread stefano
Could someone put al that files in the "Code-Snippets" secition on the CAkeForge? Stef. On 16 Lug, 08:12, francky06l <[EMAIL PROTECTED]> wrote: > I have implemented it in my application, mail me I can send you the > files. > > On Jul 16, 5:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote:

Re: Security Best Practice

2007-07-16 Thread teemow
Try PHPIDS to monitor your Cake application: http://phpids.org/ Input is being checked and you have an alert system with impact/ treshold. Examples how to add this are here: https://trac.php-ids.org/browser/trunk/docs/examples/cakephp Cheers, Timo --~--~-~--~~~---~-

RE: database design

2007-07-16 Thread Gould, Adrian
You can use the module code as the PK, but if it has characters in as well, it may provide a few more headaches for you in the end. Personally I stick with ID as it is easier to remember what cake is up to. so [omitting the likes of created and modified and other details): modules (id, title,.