requestAction url parameters

2007-12-18 Thread Nanda Gopal
Hi all, I just wanted to clarify how requestAction treats url parameters. In a url like: /con/action/1.xml?abc=123&def=456 if "abc" or "def" is already present in the $_GET environment variable, the params['url'] inside the requested controller does not reflect the new values of "abc" &

prototype window class and CakePHP

2007-12-18 Thread [EMAIL PROTECTED]
I'm looking for any documentation or "How tos" for using the prototype window class (http://prototype-window.xilinus.com/) from inside cakePHP. I've been trying to get it to work and I'm having some problems. I can get the windows to render, but the css themes don't fit, they aren't draggable, th

Relationship Levels

2007-12-18 Thread Jeremi
I have a file model that belongs to an image model that belongs to a gallery model. When I'm in the gallery controller and do a findAll() galleries, it loads the galleries and their corrosponding images. But the images do not load the File model. I assume it's because it only loads to a certain

Re: How to set the default value of a textarea?

2007-12-18 Thread Gonzalo Servat
On Dec 18, 2007 9:30 PM, peterhf <[EMAIL PROTECTED]> wrote: > > In an html textarea object, the default value is set between the begin > tag and the end tag, i.e. default value. How does > one set the default value of $html->textarea(...)? $html->extarea() > does not recognize a 'value' attribute

How to set the default value of a textarea?

2007-12-18 Thread peterhf
In an html textarea object, the default value is set between the begin tag and the end tag, i.e. default value. How does one set the default value of $html->textarea(...)? $html->extarea() does not recognize a 'value' attribute in the html attribute array. Thanks in advance for all suggestions.

Cake 1.2 Manual Validation - The Basics

2007-12-18 Thread Cake Fan
After doing some reading and looking at 1.2 validation, I thought I had a pretty good understanding of the process. However, let's say I wanted manually validate a bit of data coming from a post using the standard model validation features. Seems like it should be fairly straightforward, but I c

Re: PHP Version 6 compatibilty

2007-12-18 Thread Chris Hartjes
On Dec 18, 2007 3:36 PM, Stefan <[EMAIL PROTECTED]> wrote: > > Having good ol SQL Server character coding problem. Supposedly PHP6 > fixes the problem, Cake compatible with V6 or not? PHP 6 isn't even close to a stable release, so I would have to say no. -- Chris Hartjes My motto for 2007: "

Re: Problem while saving in CakePHP 1.2

2007-12-18 Thread Chris Hartjes
On Dec 18, 2007 4:20 PM, Ldg27 <[EMAIL PROTECTED]> wrote: > > > Try sticking $this->User->create() in front of > > $this->User->save($this->data) > > It didn't worked. Could it be achieved with a beforeSave()?? > And could the login() action could also match the password been > entered with the o

PHP Version 6 compatibilty

2007-12-18 Thread Stefan
Having good ol SQL Server character coding problem. Supposedly PHP6 fixes the problem, Cake compatible with V6 or not? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send ema

Re: Problem while saving in CakePHP 1.2

2007-12-18 Thread Ldg27
> Try sticking $this->User->create() in front of $this->User->save($this->data) It didn't worked. Could it be achieved with a beforeSave()?? And could the login() action could also match the password been entered with the one in the database, with a beforeFind()?? Thanks. --~--~-~--~---

Re: Problem while saving in CakePHP 1.2

2007-12-18 Thread Chris Hartjes
On Dec 18, 2007 2:07 PM, Ldg27 <[EMAIL PROTECTED]> wrote: > > $this->User->save($this->data); Try sticking $this->User->create() in front of $this->User->save($this->data) -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheKeyboard - http://www.littleha

Re: Session problem ....

2007-12-18 Thread hausburger
> 1) With Debug set at level 3 do you see the app inserting multiple > session records in your database? not at the same time. > 2) Are you using any AJAX calls? not in my testcase. > 3) Are you making any requestAction calls? no. > 4) Have you tried turning 'Session.checkAgent' to false? (Does

Problem while saving in CakePHP 1.2

2007-12-18 Thread Ldg27
Hi, I am new to this framework and have been using it for about 3 days. I created a register action for people to register. When using it, it throws the "Thank you for registering'" flash message, but it doesn't creates nothing in the database. I would appreciate any help. function regist

Re: Multilingual string length

2007-12-18 Thread Amit
Thanks a bunch. I added validation in AppModel as you suggested and it solved the problem. On Dec 18, 5:56 pm, grigri <[EMAIL PROTECTED]> wrote: > As I understand it the String class will handle utf-8 properly, when > completed, so you could wait... > > You could override the necessary validation

Re: Helper? Ajax? Which better?

2007-12-18 Thread the_woodsman
See the article in the bakery for wrapping request action in an element (I think its also linked to from the FAQ on this group). Then AJAX is a nice addition to this, and is simple if you use a javascript library that cake can detect as making ajax calls - your javascript would just call the URL

Re: Session problem ....

2007-12-18 Thread j-rod
Questions that would help me (any maybe others) diagnose the problem. 1) With Debug set at level 3 do you see the app inserting multiple session records in your database? 2) Are you using any AJAX calls? 3) Are you making any requestAction calls? 4) Have you tried turning 'Session.checkAgent' to

Quoting strings in model->updateAll() (version 1.2.x)

2007-12-18 Thread bradfigler
I am having a problem calling updateAll because none of the values in the query are being quoted. I could recreate the field array with all of the values quoted, but it seems like I should not have to. Thoughts? Thanks, Brad --~--~-~--~~~---~--~~ You received t

Simple Problem

2007-12-18 Thread Brian
Can someone point me to a clear example of tutorial on how to build a drop down box from the getList method. I searched the post and didn't find anything useful. Thanks in advance. Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: HABTM: How to prevent cake from deleting all associations before Insert

2007-12-18 Thread zonium
Thank you the_woodsman for the pointer. I read the article on Bakery (btw, it's entitled HABTM Add & Delete Behavior) However since this is an 'age-old' problem as noted in article, I am wondering if the the core has been updated to deal with the issue; Or do I still have to implement some workaro

Re: pagination of child model

2007-12-18 Thread daphonz
If you have the recursive property on your Article model set to 1 or higher, a find() or read() function call in the Article model will automatically associate the related comments. Try: $this->Article->recursive = 1; $data = $this->Article->read($article_id); then, pr($data); To see the the a

Re: AJAX Strategies (about forms and adding new "items")

2007-12-18 Thread Andrew Assarattanakul
I've written a form that allowed to create/delete multiple records from a table only when it was saved. The best solution that I could find was to do a big post and build the form so that all of it can be passed to the save function for cake, but had to manipulate the data and saved each part one

Re: Model::afterFind() not called for associated models

2007-12-18 Thread Andrew Assarattanakul
>From my experiences it is best to not touch the afterFind function as much as you can because you will run into problems down the line with associations and from calling a find with different parameters in different parts of the controller(s). Unless it is something that must be done for all befo

Re: HABTM: How to prevent cake from deleting all associations before Insert

2007-12-18 Thread the_woodsman
Off the top of my head, I seem to remember someone implemented a behaviour to handle this? Maybe Im going crazy. Check the Bakery On Dec 18, 9:12 am, zonium <[EMAIL PROTECTED]> wrote: > This 'issue' was discussed long > ago:http://groups.google.com/group/cake-php/browse_thread/thread/acb76

Re: CakePHP on one.com

2007-12-18 Thread ShepherdWeb
Does the hosting she has purchased have PHP? If so, she should be fine. Since she's already purchased it, why don't you just upload CakePHP (using FTP) to your new site and test it to see if it works? - Shane On Dec 17, 6:00 pm, Jon <[EMAIL PROTECTED]> wrote: > Hi all. > > Have anyone succes

Re: Will CakePHP be able to survive as the Zend Framework matures?

2007-12-18 Thread [EMAIL PROTECTED]
Finding those tempdocs were a large part of why we chose to look more into Cake than a couple other frameworks while we were looking over PHP frameworks recently at my work. One of the big knocks on Cake was the documentation in place until I linked that work in progress :) On Dec 17, 5:12 pm, "J

Model::afterFind() not called for associated models

2007-12-18 Thread [rob desbois]
Hi, I'm trying to design my app to have fat models and skinny controllers where possible but having a problem with one particular part of that: retrieval of associated models. I have models Foo and Bar, where (Foo hasOne Bar) and (Bar belongsTo Foo), which map to DB tables 'foos' and 'bars' resp

Re: Multilingual string length

2007-12-18 Thread grigri
As I understand it the String class will handle utf-8 properly, when completed, so you could wait... You could override the necessary validation methods either in AppModel or a behavior - since these are checked before the methods on the actual Validation class. For example, the Validation::betwe

Re: Session problem ....

2007-12-18 Thread stefuNz
ok ... using lowercase functions read() and write() doesn't work, too ... :/ On 18 Dez., 12:29, hausburger <[EMAIL PROTECTED]> wrote: > hi everyone. just for your information: > - i tried database and cake as session storage (same problem) > - Configure::write('Security.level', 'medium'); > > the

Helper? Ajax? Which better?

2007-12-18 Thread Davide
Good morning. I have to load the "latest 5 news" inside a div of an homepage. I thought about making a function NewsController::last5() which could be something like the following $this->data = $this->News->findAll(null,null,"News.created desc",5,1); $this->set("data",$this->data); Now, I s

Helper? Ajax? Which better?

2007-12-18 Thread Davide
Sorry for possible double post, but I've posted it more than an hour ago and still didn't received back from the list. Good morning. I have to load the "latest 5 news" inside a div of an homepage. I thought about making a function NewsController::last5() which could be something like the followi

Multilingual string length

2007-12-18 Thread Amit
Hi, I'm creating my first cakephp (1.2) project. Without changing any default settings, I see that string length validation functions (between, maxLength...) don't work properly with multilingual input. What should I do to make them work? Thanks. --~--~-~--~~~---~--~

Re: Empty page response

2007-12-18 Thread [EMAIL PROTECTED]
Hi, I recently had this blank page problem.. The problem was coming from the file /tmp/cache/persistent/class.paths.php My online site was set to auto-update itself with my SVN repository, and the file was always updated with my local settings (saved in the repo).. thus:bug. Deleted the file, se

Re: text helper (truncate, excerpt) and HTML

2007-12-18 Thread dr. Hannibal Lecter
Looks good. Maybe a combination of all these would make everyone happy.. :-) --~--~-~--~~~---~--~~ 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 unsubscr

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 dev

Re: text helper (truncate, excerpt) and HTML

2007-12-18 Thread grigri
Oops, I just updated it, so it's pending again :( It was only a very minor change, but I suppose they've got to moderate it somehow. Cached version looks ok : http://www.google.com/search?q=cache:http://bakery.cakephp.org/articles/view/showing-a-text-excerpt-around-multiple-keywords On Dec 18, 2

Re: text helper (truncate, excerpt) and HTML

2007-12-18 Thread dr. Hannibal Lecter
Well, it sounds interesting (yes, search results:)), but that bakery link gives me "Unable to provide the article you requested; it is currently pending approval for public viewing" Maybe I should check it out later.. --~--~-~--~~~---~--~~ You received this message

Re: text helper (truncate, excerpt) and HTML

2007-12-18 Thread grigri
No probs :) I'd just point out that I haven't had time to work more on my version, and Alex's version handles entities properly (mine doesn't - yet). If you enhance/improve either of them, post the code - it's something we all need! As a shameless plug, if the functionality of "excerpt()" isn't u

Re: text helper (truncate, excerpt) and HTML

2007-12-18 Thread dr. Hannibal Lecter
Thanks grigri, this is just what I needed! --~--~-~--~~~---~--~~ 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: Will CakePHP be able to survive as the Zend Framework matures?

2007-12-18 Thread Dérico Filho
But doing such a thing is not B&R? On Dec 17, 12:38 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote: > @Derico Filho > > Uhh...you're wrong. You can just drop any of the Zend libraries into > the vendors folder. > > For instsance, I used the tutorial in the bakery on Zend's Lucene > implementatio

Re: text helper (truncate, excerpt) and HTML

2007-12-18 Thread grigri
See the code I posted here : https://trac.cakephp.org/ticket/2242 There is also code for a similar function here : https://trac.cakephp.org/ticket/2306 and here : http://groups.google.com/group/cake-php/browse_thread/thread/fbc9a90b2fbfa95b/303980c8ef01abea?lnk=gst&q=truncate&rnum=1#303980c8ef01

Re: pagination of child model

2007-12-18 Thread dr. Hannibal Lecter
Em..anyone..? If it's not doable I'd also like to know.. --~--~-~--~~~---~--~~ 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

text helper (truncate, excerpt) and HTML

2007-12-18 Thread dr. Hannibal Lecter
Hi, I ran into a slight problem using TextHelper->truncate() and excerpt(), and I don't know if it's possible to handle with Cake API. I have an article, which of course contains HTML code. When I try to get a preview of an article, I do one of the above and I am of course left with an open HTML

Captcha does not work when combined with phpmailer component

2007-12-18 Thread Martijn Hodenpijl
Hello, I use the cakePHP version 1.1.17.5612. I making a comments form. for thise form I use 2 components, the phpmailer and phpcaptcha. I follow the tutorials for the captcha and comments from http://bakery.cakephp.org/ If they are both declared in my controller, the captcha form does not app

Re: Session problem ....

2007-12-18 Thread hausburger
hi everyone. just for your information: - i tried database and cake as session storage (same problem) - Configure::write('Security.level', 'medium'); the problem seems to be the cookie: - NameCAKEPHP Value dc5

Re: Session problem ....

2007-12-18 Thread stefuNz
hi everyone, thanks for all the replies! but nothing helped :( i'm using 1.2.0.5875 pre-beta and now i'm posting my core.php session settings, maybe i have something wrong here !? (when it's set to database, sometimes the database table is filled by some session stuff i guess .. but there are sev

Re: Session problem ....

2007-12-18 Thread Dave J
hi stefan, just a quick question cos I have just ran into this problem about an hour ago. are you using the latest nightly or the 5875 release? Cos i'm having problems with the session not storing anything in the latest nightly... and going back to the pre-beta release fixed it. I'm still loo

Re: Hello everyone :) i got confuse in cakePHP configuration

2007-12-18 Thread Daniel Hofstetter
Hi Linspirell, The definition of APP_DIR looks wrong. As your app directory is called "myblog" it should be: define('APP_DIR', 'myblog'); HTH daniel -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are s

Re: cake 1.2.x.x console problems

2007-12-18 Thread Gustavo Carreno
Kelly, I know you are a beginner, that's why I winded you upp before one of the more grumpy bakers chopped your head up. Don't get me wrong, these are great guys but some of them have short fuses ;) Now, have you added the path to the folder where the cake script is to your PATH? If so are you

Hello everyone :) i got confuse in cakePHP configuration

2007-12-18 Thread Linspirell
Hello.. i'am a new cakePHP user :) and got confusing in configuration. i had to read cakePHP manual before. my question, how to setting in order to be able i can make many different app in my document root? i save all of my web app in D:\tohtdoc s i try to put cakephplib in D:\htdoc\cakephplib and

Re: Reading image through controller

2007-12-18 Thread Dr. Tarique Sani
On 12/18/07, grigri <[EMAIL PROTECTED]> wrote: > > Has anyone tried using the new Media View class? I think this is > exactly what it's designed for. Looks like we will have to wait for the corresponding helper to be coded to use the MediaView T -- =

Re: Reading image through controller

2007-12-18 Thread grigri
Has anyone tried using the new Media View class? I think this is exactly what it's designed for. On Dec 18, 1:45 am, Grant Cox <[EMAIL PROTECTED]> wrote: > Drop your Session Security.level to "medium", or update your Cake to > the newest branch - this session behaviour has been fixed in > r5982.

Re: Session problem ....

2007-12-18 Thread dr. Hannibal Lecter
Also, I'd be careful to use $this->Session->read() instead of $this- >Session-Read() (and write() instead of Write()). Those caps can be nasty.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To pos

Re: want to call function in default ctp from app model

2007-12-18 Thread MrTufty
Manuj, I'm not going to fall back to the standard RTFM response here... but seriously, you do need to read the manual. All the information you need to do this is there. Tufty On Dec 18, 5:03 am, manuj bansal <[EMAIL PROTECTED]> wrote: > thanks for the idea > > plz help me how to use request act

HABTM: How to prevent cake from deleting all associations before Insert

2007-12-18 Thread zonium
This 'issue' was discussed long ago: http://groups.google.com/group/cake-php/browse_thread/thread/acb76273176c3e21/d660547d266f8c7c?lnk=gst&q=habtm+insert+delete#d660547d266f8c7c Basically, when some new entries are added (saved) to the jointable, cake attempts to DELETE FROM `jointable` WHERE m