Re: upload behavior

2007-06-12 Thread Geoff Ford
Make sure your /app/files directory is writable by the webserver. Replace MODEL_FIELD_NAME in the following with the field that you want to store your image filenames as. eg. filename or image etc. In your model you need to have var $actsAs = array('Upload' => array( 'MODEL_FIELD

Re: Get the L10n language value in 1.2

2007-06-12 Thread Dr. Tarique Sani
On 6/13/07, solidgumby <[EMAIL PROTECTED]> wrote: > I tried to instanciate an L10n object and use the get method but > noting is returned. I also tried to read it with Configure::read and > Session->read as L10n is supposed to write the setting there, but no > luck. did you try to read Config.Lan

Re: Cake Console on cygwin

2007-06-12 Thread francky06l
I have been using it (cmd and bat) without problem. Be sure your folder "console" is in the path. What is the "strange" behavior you are facing ? On Jun 13, 4:54 am, "Gustavo Carreno" <[EMAIL PROTECTED]> wrote: > Hey guys, > > * Has anyone been successful in using the console scripts via cygwin ?

Get the L10n language value in 1.2

2007-06-12 Thread solidgumby
How do i get the language value detected by the L10n class ? I tried to instanciate an L10n object and use the get method but noting is returned. I also tried to read it with Configure::read and Session->read as L10n is supposed to write the setting there, but no luck. Thanks Gabriel --~--~-

Re: upload behavior

2007-06-12 Thread Allen Romero
I realize those instructions are obvious for the experts, but I'm still a newbie. I built my table. Created my behavior and model. I'm just not sure how to implement it in my controller and view. Make sense? On Jun 12, 9:22 pm, Geoff Ford <[EMAIL PROTECTED]> wrote: > http://bakery.cakephp.org/a

CakePHP Testing Suite?

2007-06-12 Thread Aaron Thies
What is a good unit testing suite for Cake? -- Aaron Thies "When you're married you'll understand the value of fresh produce." - Tony Soprano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Re: upload behavior

2007-06-12 Thread Geoff Ford
http://bakery.cakephp.org/articles/view/improved-upload-behaviour-with-thumbnails-and-name-correction On Jun 13, 1:29 pm, Allen Romero <[EMAIL PROTECTED]> wrote: > Is there an example of how to use the 'upload behavior' that was > created? > > I downloaded it but am clueless on how to actually us

upload behavior

2007-06-12 Thread Allen Romero
Is there an example of how to use the 'upload behavior' that was created? I downloaded it but am clueless on how to actually use it in my controller. Haven't yet grasped using behaviors. Thanks in advance. Allen --~--~-~--~~~---~--~~ You received this message

Re: Stuck - Join limitation in 1.2?

2007-06-12 Thread Joshua Benner
(Thanks for the note about my article -- I cleaned up the wording a little to cause less confusion) I thought along the exact same lines, thinking that belongsTo would better be referred to as hasOne, until I realized that I was getting stuck on how I assumed the semantics worked, according t

Crash problem with html in textareas

2007-06-12 Thread Anton Morrison
Has anyone ever had the problem of html inside text areas causing problems. Basically when ever i put in any html inside a text area and submit the form it just gos to the route of the site. Its really annoying as its working fine on my localhost. I am using 1.2.0.4798alpha, checked it on FF

Cake Console on cygwin

2007-06-12 Thread Gustavo Carreno
Hey guys, * Has anyone been successful in using the console scripts via cygwin ? * Has anyone been able to use it via a cmd.exe and cake.bat ? If so please gimme a shout on how, cuz I'm having a very strange behaviour!! Cheers, Gustavo Carreno --- < If you know Red Hat you know Red Hat, If you

Re: Question about validation in model

2007-06-12 Thread Ketan Patel
Validation is used for validating data that exists and not for confirming whether the variable is there or not! So if you are expecting something and its not there then controller should take be taking care of this information. On Jun 12, 11:33 am, Gonza <[EMAIL PROTECTED]> wrote: > When using

Re: Weird Flash Message Problem - '1' echos after message...

2007-06-12 Thread [EMAIL PROTECTED]
Yup, that was it. Thanks for making up for my brain's inadequacies. :) On Jun 12, 4:48 pm, radius <[EMAIL PROTECTED]> wrote: > you are probably writing this: > flash(); ?> > > when you should be writing this: > flash(); ?> > > On Jun 12, 6:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >

Re: Stuck - Join limitation in 1.2?

2007-06-12 Thread Nick
Thanks for the reply Joshua On Jun 12, 8:21 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: > To, it sounds like: > > Person belongsTo Country > > I'd use a belongsTo relationship in the Person model. Correct, this was a bad example, and in this case I'd tend to agree and that type of relationship

Re: Persistent forms?

2007-06-12 Thread Geoff Ford
How are you building the form and how are you passing the data in? If you are unsing the formhelpers they rely on $this->data. If in your controller you are setting $this->data that is why the details are being displayed in the form. What I have done (not on ajax forms) is save the submitted $t

Persistent forms?

2007-06-12 Thread Fran Iglesias
Hi, I've been playing with the AjaxHelper (in Cake v 1.2.0.5146alpha). I'm having a problem trying to reset a form after submitting the data and saving them. This works well but I was unable to reset the form. I guess there is some persistence system that works even between reloads of the

Re: Weird Flash Message Problem - '1' echos after message...

2007-06-12 Thread radius
you are probably writing this: flash(); ?> when you should be writing this: flash(); ?> On Jun 12, 6:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On the past few projects I've worked on with 1.2, when I have a flash > message that displays, there is a '1' echoing after the message. Th

Weird Flash Message Problem - '1' echos after message...

2007-06-12 Thread [EMAIL PROTECTED]
On the past few projects I've worked on with 1.2, when I have a flash message that displays, there is a '1' echoing after the message. The HTML output is this: The Page saved1 (Notice the 1) This happens no matter what debug setting I'm using. What's the deal with this? Thanks in advance! --~

Re: Element Blocks

2007-06-12 Thread Pablo Viojo
Andy, Using requestAction you can invoke any controller/action you want. If in the future you want to add another module you will have to write the controller/action for the new module (maybe not related to any existing controller) and add $this->renderElement('newmodule-name', $this->requestActi

Re: custom template variables in default.thtml

2007-06-12 Thread francky06l
You can use $this->set('var', $value) in all controller and that will be visible by the layout. You can also use the beforeRender in app_controller.php to set something before rendering all views ( i use this to set some specific variables I need in almost all views). In beforeRender from app_cont

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
Any new idea on this? Thanks for any input! On Jun 12, 5:40 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > Quick and > dirty:http://www.thinkingphp.org/2006/08/15/the-ultimate-cakephp-bootstrap-... > > Then do: > > $Dispatcher =& new Dispatcher(); > $content = $Dispatcher->dispatch('/contr

Re: custom template variables in default.thtml

2007-06-12 Thread Claudia
Thanks for the answers. It looks like I need to describe my problem a little bit better. If I follow the blog tutorial, I sooner or later create a view index.thtml for the posts. The corresponding posts_controller contains a function index() in which I use $this->set('posts', $this->Post->findAl

Re: Element Blocks

2007-06-12 Thread andy
But I mean for the controller part-- I am hoping to make this where someone could add another "element box" in the future WITHOUT having to add code to an existing controller. More like a plugin type of thing. --~--~-~--~~~---~--~~ You received this message becau

Re: Element Blocks

2007-06-12 Thread andy
For some reason my last reply didn't get added. Thanks for the replies. Except, the thing is--I want to make this modular so that if someone else wants to make an "element box"... they can make one and it can be added into the directory of this project. At the moment, don't you have to manual

Element Blocks

2007-06-12 Thread andy
Hi everyone. I'm towards the end of finishing up a blog-type project using CakePHP. My question has to do with "element blocks". I'm not sure what they are called, but for example, on many websites there are often side boxes that have different information in them. For example a login box, or

RE: CakePHP 1.2 Paginator Questions...

2007-06-12 Thread Mariano Iglesias
I see you posted an article, so I guess you already know it is not broken. Also one more thing: check the article you posted for this on the Bakery for comments, and then address those comments so I can publish it. Thanks. -MI -

RE: CakePHP 1.2 Paginator Questions...

2007-06-12 Thread Mariano Iglesias
The Bakery isn't broken. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje o

Re: CakePHP Book

2007-06-12 Thread John David Anderson (_psychic_)
On Jun 12, 2007, at 3:18 PM, Jonathan Langevin wrote: > would be simpler to just have a PDF or HTML export of the docs from > the doc site :-) We're working on it, people. Stay tuned. -- John --~--~-~--~~~---~--~~ You received this message because you are sub

Re: CakePHP Book

2007-06-12 Thread Jonathan Langevin
would be simpler to just have a PDF or HTML export of the docs from the doc site :-) On 6/12/07, Howard Glynn <[EMAIL PROTECTED]> wrote: > > > As a stop gap, write a wget script to pull all the printable versions > of the manual chapters on the web, cat together, then liberal use of > psnup and/or

Re: highly customized web sites

2007-06-12 Thread Jonathan Langevin
it appears there are two new simultaneous threads on this topic. from the other thread, answer by John Anderson I believe: Grab it via requestAction(). I'd just write the logic for a given element in a controller action, create the view logic in the element file, and call $this->renderElement('e

Re: highly customized web sites

2007-06-12 Thread Repsah
requestAction sounds about right to me, otherwise you can try ajaxing completely the left part and make ajax calls that update only that side (do that, so you'll kill the bosses). >From the talk I'd say Fastweb, by I won't leave Vodafone out, who are you working for? Another north italian like yo

Re: Element Blocks

2007-06-12 Thread John David Anderson (_psychic_)
On Jun 12, 2007, at 2:41 PM, andy wrote: > > Hi everyone. > > I'm towards the end of finishing up a blog-type project using > CakePHP. My question has to do with "element blocks". I'm not sure > what they are called, but for example, on many websites there are > often side boxes that have diff

Re: highly customized web sites

2007-06-12 Thread Joshua Benner
Have you considered $this->renderElement() from within the view? [EMAIL PROTECTED] wrote: > hi all, my first post here! > im an italian guy, 25yo developing since '98, still underpaid and > bored > of my area very weird business solutions.. > > i live in the north-italy, so if this post seems str

Re: Element Blocks

2007-06-12 Thread Pablo Viojo
http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 6/12/07, andy <[EMAIL PROTECTED]> wrote: > > > Hi everyone. > > I'm towards the end of finishing up a blog-type project using > CakePHP. My question has

highly customized web sites

2007-06-12 Thread [EMAIL PROTECTED]
hi all, my first post here! im an italian guy, 25yo developing since '98, still underpaid and bored of my area very weird business solutions.. i live in the north-italy, so if this post seems strange, just think about that here, the politicians, rule also the technical aspects of a web project (a

Element Blocks

2007-06-12 Thread andy
Hi everyone. I'm towards the end of finishing up a blog-type project using CakePHP. My question has to do with "element blocks". I'm not sure what they are called, but for example, on many websites there are often side boxes that have different information in them. For example a login box, or

Re: CakePHP Book

2007-06-12 Thread Howard Glynn
As a stop gap, write a wget script to pull all the printable versions of the manual chapters on the web, cat together, then liberal use of psnup and/or enscript to 2 per page and find a duplex printer - hey, gotta be environmentally friendly. Send to said device, and while you're at it, print the

Re: CakePHP Book

2007-06-12 Thread Dave
Hey, sounds awesome. But, truthfully, a solid book will help to legitimize Cake to the masses. The sooner, the better. On Jun 12, 12:23 pm, francky06l <[EMAIL PROTECTED]> wrote: > I remember a thread or some lines on cakeForge about this (from gwoo I > think), and basically was saying that the bo

SQL Error: 1046: No database selected ?

2007-06-12 Thread mslocinski
Hi, I've got this strange error using Cake PHP 1.1.x. I've my application running on my laptop with MySQL 5 / php 5 / apache 2 and everything is fine. When I only migrate to remote server where only change is MySQL 4 instead of 5 I got this message when trying to get first page running. I checke

Re: CakePHP 1.2 Paginator Questions...

2007-06-12 Thread rtconner
No, there isnt anything like that. Its not hard to implement yourself though. You can just set 'limit' in the $paginator var within your action before you call $this->paginate. On Jun 12, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks for your help--the escapeTitle works great.

Re: CakePHP 1.2 Paginator Questions...

2007-06-12 Thread [EMAIL PROTECTED]
Thanks for your help--the escapeTitle works great. However, I the code I pasted... resultsPerPage(NULL, ' ')?> ...echos a few links like '5 20 50 100 500' and automatically hides the links larger than the result set. I was wondering if there was something like that in the 1.2 helper. Thanks! O

Re: Your choice of editor for PHP

2007-06-12 Thread Chris Hartjes
There is only one true editor, for grumpy programmers and not-so-grumpy programmers: vim Now let this thread die. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--

Re: Your choice of editor for PHP

2007-06-12 Thread [EMAIL PROTECTED]
I found PHP Designer pretty good: http://www.mpsoftware.dk/phpdesigner.php On Jun 12, 4:51 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I am ready to finally move away from gedit. > What are you using for a PHP editor/IDE?. > Cheers. > > Dna --~--~-~--~~

Re: Stuck - Join limitation in 1.2?

2007-06-12 Thread Joshua Benner
To, it sounds like: Person belongsTo Country I'd use a belongsTo relationship in the Person model. And if you need to do Country->People lookups, put a reverse hasMany in the country model. I wrote a bit on understanding the practical differences between relationships here: http://bennerweb.c

$html->tagErrorMsg

2007-06-12 Thread PiLLo
I'm a little frustrated because i have a problem invoking de $html- >tagErrorMsg on one of my views. As a resume i present the next files: * View: add_admin.thtml formTag('addAdmin','post'); ?> Usuario: input('User

Re: CakePHP 1.2 Paginator Questions...

2007-06-12 Thread rtconner
If the bakery wasn't broken, I'd be more than happy to make a nice article explaining all of this... You want: $paginator->prev($html->image("icons/resultset_previous.png", Array('height'=>16)), array('escape'=>false), null, array('class'=>'button')); In your controller set var $paginate = array

Re: CakePHP 1.2 Paginator Questions...

2007-06-12 Thread francky06l
Some informations here by Nate : http://cake.insertdesignhere.com/posts/view/16 On Jun 12, 8:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 1. How do you 'escapeTitle' with the 1.2 Paginator Helper? I have the > following: > > prev($html->image("icons/ > resultset_previous.png", Array('h

CakePHP 1.2 Paginator Questions...

2007-06-12 Thread [EMAIL PROTECTED]
1. How do you 'escapeTitle' with the 1.2 Paginator Helper? I have the following: prev($html->image("icons/ resultset_previous.png", Array('height'=>16)), null, null, array('class'=>'button'));?> It was pretty straightforward in the 1.1 helper, but I'm not sure if it's possible here. --- 2. Is

Re: htmlentities in default.po?

2007-06-12 Thread francky06l
Best would be to save the po file in UTF-8 (without BOM). On Jun 12, 8:22 pm, "Aaron Thies" <[EMAIL PROTECTED]> wrote: > I am creating a French site in Cake 1.2 and the i18n stuff is working > good. My issue is with the __() function. When I have a character > like é in msgstr of my default.po

Re: CakePHP Book

2007-06-12 Thread francky06l
I remember a thread or some lines on cakeForge about this (from gwoo I think), and basically was saying that the book will come when cake 1.2 will be released. On Jun 12, 7:13 pm, Dave <[EMAIL PROTECTED]> wrote: > Hey all, > I've really wanted a well-documented book on CakePHP. You know, > someth

htmlentities in default.po?

2007-06-12 Thread Aaron Thies
I am creating a French site in Cake 1.2 and the i18n stuff is working good. My issue is with the __() function. When I have a character like é in msgstr of my default.po file it will display the character this represents correctly with __("someTag"), but when I return the value __("someTag", tru

Re: CakePHP Book

2007-06-12 Thread Walker Hamilton
If you'd been around here when someone tries to write the last book.you'd know that everyone who knows enough & isn't on the core team is somewhathesitant to take this cause up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: custom template variables in default.thtml

2007-06-12 Thread francky06l
Just to add something the variable you set in controller $this- >set('var', $value) are also available in the layout... On Jun 12, 7:43 pm, Juan Pablo Araya <[EMAIL PROTECTED]> wrote: > Sorry I don't understand your question. The way you can create this > html structure is saving it under app/vie

CakePHP Book

2007-06-12 Thread Dave
Hey all, I've really wanted a well-documented book on CakePHP. You know, something like O'Reilly books that gives you the skinny on Cake in more details than what's in the online manual. Maybe something with recipes. Well, a look on Amazon reveals that there's plenty of stuff like that out there f

Re: Your choice of editor for PHP

2007-06-12 Thread Dave
I know folks are grumpy about this one ;) but I have to make a plug for Panic's Coda for Mac. It's relatively new, and not covered in previous posts, so I'm making a go of it here :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: custom template variables in default.thtml

2007-06-12 Thread Juan Pablo Araya
Sorry I don't understand your question. The way you can create this html structure is saving it under app/views/layout (the html). In each controller now you can change the layout with $this->layout = 'new- layout' (new-layout.thtml in app/views/layout). You can create app/app_controller.php and

Re: custom template variables in default.thtml

2007-06-12 Thread francky06l
If I understand, you want a different default layout depending of the controller ? If this is the question (not sure), you can create as many layout as you wish and in your controller use $this->layout = 'custom' to override the default.thtml layout. You should place your custom1.thtml, customx.th

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
Sorry, ment, the $_GET['url'] is empty! On Jun 12, 5:40 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > Quick and > dirty:http://www.thinkingphp.org/2006/08/15/the-ultimate-cakephp-bootstrap-... > > Then do: > > $Dispatcher =& new Dispatcher(); > $content = $Dispatcher->dispatch('/controller

Re: custom template variables in default.thtml

2007-06-12 Thread rtconner
Am I understanding you correct? You want to put the default layout in a location that is not the layouts directory? I think I am having trouble figuring out what you are asking. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
The strange thing is, that when printing out $_GET['url'] before the require_once I get the 'favicon.ico', how it sould be, but right after the require_once it's empty. On Jun 12, 5:40 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > Quick and > dirty:http://www.thinkingphp.org/2006/08/15/th

Stuck - Join limitation in 1.2?

2007-06-12 Thread Nick
Hi We're exploring CakePHP, and I'm stuck on how to describe the following model relationship. It should be trivial and I'm sure that I'm missing something, but precisely what eludes me. Can anyone help? Let's say that we have a model 'Person', and one of the attributes for Person is "country".

custom template variables in default.thtml

2007-06-12 Thread Claudia
Hi there I have just started with cakephp so most likely I just don't see the obvious but where is the controller for the default.thtml? As far as I understand the default.thtml provides the HTML template which provides the basic html structure (head, meta-tags and body-tag) and into this struct

Re: Three table connection

2007-06-12 Thread Joey
Sorry for the test email, but I had typed a long response submitted it and google said that it was sent, but it never posted. So that is why I sent the test message. Ok back to business. The project is an online auction system. Since the types of items will be changing all the time I wanted to

Re: Autocomplete using ajax how to retrivew hidden values

2007-06-12 Thread yolabingo
add a $html->hidden() field to your form --~--~-~--~~~---~--~~ 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

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
Hi Felix Thanks! This is exactly what I was trying to to: $_GET['url'] = 'favicon.ico'; require_once 'sb/app/webroot/index.php'; $Dispatcher =& new Dispatcher(); $content = $Dispatcher->dispatch('/provider/doFoo'); The problem is, that i get allway the cake startpage. I'm using 1.2.0.5146alph

Re: Show cake output in normal PHP page

2007-06-12 Thread Felix Geisendörfer
Quick and dirty: http://www.thinkingphp.org/2006/08/15/the-ultimate-cakephp-bootstrap-technique/ Then do: $Dispatcher =& new Dispatcher(); $content = $Dispatcher->dispatch('/controller/action'); -- Felix -- http://www.thinkingphp.org http://www.fg-webdesign.de Aldo wro

Question about validation in model

2007-06-12 Thread Gonza
When using model->validates($data), the lines of code that execute the validation are: foreach($this->validate as $field_name => $validator) { if (isset($data[$field_name]) && !preg_match($validator, $data[$field_name])) { $this->invalidate($field_name); } } the problem with this i

Show cake output in normal PHP page

2007-06-12 Thread Aldo
Hello Does anybody know how to show the output from cakephp in a normal PHP page? Somethin like include(pathToCakePHP/controller/action) Or even better if I could set a variable in Cake an access this one outside from the application. What I want to achive is to have a news section in a websit

Re: Architecture point of view

2007-06-12 Thread Chris Hartjes
On 6/12/07, jitka (poLK) <[EMAIL PROTECTED]> wrote: > > I am not aware of any uml -> cakephp_code conversion tool. > > But talking about umbrello (uml.sf.net), if something like > http://tech.motion-twin.com/php_php2xmi.html is possible, then it is > just question of time and amount of people who

Re: Architecture point of view

2007-06-12 Thread Joshua Benner
php2xmi is an interesting concept, but it seems to go in the opposite direction from what Cacho is talking about. Thanks -- now I'm imagining a GUI baker app. ;) jitka (poLK) wrote: > I am not aware of any uml -> cakephp_code conversion tool. > > But talking about umbrello (uml.sf.net), if some

Problem with PHP or with Cake?

2007-06-12 Thread mcgordon
My host upgraded to PHP 4.4.7 today and all my cake apps died. Not broke. Died. Blank screen, nothing returned from the server except for a 200 OK message. No errors. Nothing in the server logs. I'm using the latest nightly for Cake 1.2. I've traced the problem to some code in my views that

Re: hi, is there any way to post data from 1 form to multiple tables?

2007-06-12 Thread [EMAIL PROTECTED]
Hey AbhinavZone, search for this in the newsgroup, "save multiple models" or "insert multiple tables" Bakers aren't too friendly at times when it seems like you're not making an effort in searching for answers first. Don't take offense at the lack of help or lack of a manual ;) Don't be discoura

Re: need suggestion on changing url

2007-06-12 Thread bingo
hi all. I did some search and found this article ..its says what AD was suggesting http://www.thinkingphp.org/2006/09/18/dessert-11-welcome-back-friendly-urls/ Regards, bingo http://findnwrite.com On Jun 12, 6:07 am, bingo <[EMAIL PROTECTED]> wrote: > hi everyone, > > thanks for your all your re

Re: Need a helpful tutorial

2007-06-12 Thread Davide
Reine wrote: > ... > http://www.ibm.com/developerworks/search/searchResults.jsp?searchType=1&searchSite=dW&searchScope=dW&query=cakephp&Search.x=0&Search.y=0&Search=Search > >> On Jun 7, 11:39 am, Lifo <[EMAIL PROTECTED]> wrote: >> Dear group member >> I am new in CakePHP. So

Re: Need a helpful tutorial

2007-06-12 Thread Foysal Mamun
Thanks you Reine. Best Regard, Lifo On 6/11/07, Reine <[EMAIL PROTECTED]> wrote: > > > Hi Lifo, > > There's a handful of good tutorials at the IBM Developers' website. > You will need to register (registration is free) to access them and > others have a PDF download link. > > > http://www.ibm.com

Re: Your choice of editor for PHP

2007-06-12 Thread Jonathan Langevin
bah, you're all grumpy, must be linux users :-D On 6/12/07, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > > On 6/12/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > > > > > On 6/12/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > > > > > Can we stop answering this thread? It's been covered *sever

Re: Architecture point of view

2007-06-12 Thread jitka (poLK)
I am not aware of any uml -> cakephp_code conversion tool. But talking about umbrello (uml.sf.net), if something like http://tech.motion-twin.com/php_php2xmi.html is possible, then it is just question of time and amount of people who will need it - and also some smart person with spared time who

Re: Select option from lookup table

2007-06-12 Thread dardosordi
Try setting your model's $displayField to the field you want to appear in the select. On Jun 11, 5:03 am, Grant Cox <[EMAIL PROTECTED]> wrote: > The scaffolding should automatically create this for you if you have > the associations set up correctly. What form element is it currently > showing f

Re: Your choice of editor for PHP

2007-06-12 Thread Gonzalo Servat
On 6/12/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > > On 6/12/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > > > Can we stop answering this thread? It's been covered *several*, and I > mean > > *SEVERAL* times on this group before. All it does now is add more > traffic to > > our already

Re: Things to update in blog_tutorial (using 1.2 )

2007-06-12 Thread Martin
Thanks Joshua, to summarize: I include the helper in my controller: __ class PostsController extends AppController { var $helpers = array('Html', 'Form'); __ Then I can use the submit(); ?> One thing to note is that this gener

Re: Your choice of editor for PHP

2007-06-12 Thread Chris Hartjes
On 6/12/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > Can we stop answering this thread? It's been covered *several*, and I mean > *SEVERAL* times on this group before. All it does now is add more traffic to > our already overloaded mailboxes. Don't be so grumpy... -- Chris Hartjes My mo

Re: model validation and error messages in Cake 1.2

2007-06-12 Thread jitka (poLK)
My personal opinion is that not everything what is possible is also automatically right. I understand benefits of error messages in model, but those benefits are gone just in moment you will (for example): --- let anyone else touch your code - you can be sure they will modify messages in your mod

Re: Validate using multiple error messages

2007-06-12 Thread dardosordi
You need a newer version, try 1.2.0.5146alpha ( http://cakeforge.org/frs/?group_id=23 ) On Jun 12, 1:19 am, pbland <[EMAIL PROTECTED]> wrote: > I've followed this > article:http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-... > but I'm getting this error: > > Warning: preg_m

RE: Your choice of editor for PHP

2007-06-12 Thread Mariano Iglesias
Can we stop answering this thread? It's been covered *several*, and I mean *SEVERAL* times on this group before. All it does now is add more traffic to our already overloaded mailboxes. Thanks! -MI --- Remember, smart code

Re: need suggestion on changing url

2007-06-12 Thread bingo
hi everyone, thanks for your all your response. AD, you convinced me that title based url are not as bad as I was thinking. However, can you clarify more on using both id and title in the url. If I want to use both id and title in the url, I have two options 1. http://findnwrite.com/memento/artic

Re: Architecture point of view

2007-06-12 Thread Joshua Benner
I don't do UML diagrams for cake... rather, I might UML, then generate database tables from that, define my models and their relationships in Cake (very little code, usually), then start baking in the console. This will generate an interface to all of your models very similar to the cake scaff

Security Component and Jquery Thickbox

2007-06-12 Thread joe
weird...i'm using requireAuth. when i include the jquery thickbox library (in my default layout) requireAuth (and requirePost) get's blackholed. this happen to anyone else? i'm still investigating. --~--~-~--~~~---~--~~ You received this message because you are

Re: Your choice of editor for PHP

2007-06-12 Thread Joshua Benner
I've used: gEdit jEdit vim emacs NuSphere EditPad Programmer's Notepad Notepad++ Eclipse + PHPEclipse Eclispe + PDT My editor of choice is definitely Eclipse + PDT. I do some Java, lots of web development, and PDT in combination with WST is an excellent e

Architecture point of view

2007-06-12 Thread Cacho
I use to develope with java and new with cakePHP. I use to design my applications with UML modeling tools and then generate stubs with a tool. Now, I saw cakePHP will generate all the code so I wonder how this kind of development could be relationated with the usual systems design. How could I

Re: Your choice of editor for PHP

2007-06-12 Thread Raimon Esteve
2007/6/12, Jonathan Langevin <[EMAIL PROTECTED]>: > > Zend IDE for me, next to that I use Editplus 2. I've used Nusphere, and > while it's decent, it doesn't natively run under linux (neither does > Editplus, but editplus has no trouble under Crossover Office) quanta, bluefish, nvu, emacs, eclips

Re: Your choice of editor for PHP

2007-06-12 Thread Jonathan Langevin
Zend IDE for me, next to that I use Editplus 2. I've used Nusphere, and while it's decent, it doesn't natively run under linux (neither does Editplus, but editplus has no trouble under Crossover Office) On 6/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am ready to finally mo

Re: model validation and error messages in Cake 1.2

2007-06-12 Thread R. Rajesh Jeba Anbiah
On Jun 12, 3:52 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 6/12/07, R.RajeshJebaAnbiah<[EMAIL PROTECTED]> wrote: > >I suppose the correct approach is to have error messages in model > > and then override it in form::input() whenever necessary. > > Hmmm the classic "negative num

Re: need suggestion on changing url

2007-06-12 Thread AD7six
On Jun 12, 8:07 am, bingo <[EMAIL PROTECTED]> wrote: > hi AD, > > I thought of doing so, but somehow I am not feeling comfortable with > finding articles by title. I should maybe clarify that I have (foolishly) been referring to the title and slug fields indiscriminately. An article would have

Re: Your choice of editor for PHP

2007-06-12 Thread AD7six
http://groups.google.com/group/cake-php/search?group=cake-php&q=What+editor+do+you+use+for+CakePHP Pretty please use the search. AD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

CAKE_SESSION_TIMEOUT doesn´t seem to affect timeout

2007-06-12 Thread JuergenE
Hi group I have searched through many threads in this group but didn´t find a solution to my problem. I use CakePHP 1.1.15.5144, PHP 4.3.10-21 (on the public webserver), Apache/2.0.54, CAKE_SESSION_SAVE is set to php, CAKE_SECURITY is set to low (because of this issue), CAKE_SESSION_TIMEOUT is s

Re: How can I fetch selected associations?

2007-06-12 Thread cakePHP
Mariano had a great approach to unbinding selected associations before reading data. See: http://bakery.cakephp.org/articles/view/an-improvement-to-unbindmodel-on-model-side Good luck. V On Jun 11, 10:08 pm, Jorge Vargas <[EMAIL PROTECTED]> wrote: > Hi > > I'm new to cake but not to app develop

Your choice of editor for PHP

2007-06-12 Thread [EMAIL PROTECTED]
Hi, I am ready to finally move away from gedit. What are you using for a PHP editor/IDE?. Cheers. Dna --~--~-~--~~~---~--~~ 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

Re: model validation and error messages in Cake 1.2

2007-06-12 Thread Dr. Tarique Sani
On 6/12/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > >I suppose the correct approach is to have error messages in model > and then override it in form::input() whenever necessary. > Hmmm the classic "negative number in red" case The argument against messages in model is that th

Re: model validation and error messages in Cake 1.2

2007-06-12 Thread R. Rajesh Jeba Anbiah
On Jun 11, 6:56 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 6/11/07, Ketan Patel <[EMAIL PROTECTED]> wrote: > > > Check out simple example at > >http://bin.cakephp.org/view/610862726 > Perhaps the technically correct way is *not to have the error messages > in model* - there is an ar

Re: need suggestion on changing url

2007-06-12 Thread Dr. Tarique Sani
On 6/12/07, bingo <[EMAIL PROTECTED]> wrote: > Instead of article id, I would like to use article title in the url so > it is optimized for search engine. But I also don't want to increase Looks like the Slug behavior is what you are looking for (v1.2 only) HTH Tarique --

  1   2   >