Re: Does anyone know how to handle carriage returns from user input

2006-09-07 Thread Vanchuck
I just tried this out on one of my actions, and noted one thing, maybe worth mentioning. If you already know about and are using regex's but still can't get it to work for some reason, maybe double check that the line breaks are actually there? ... There are some components and helpers I have se

draggable select box options

2006-09-07 Thread codecowboy
I am trying to create a select box that I can drag elements out of and drop into another select box. Does anyone know how to do this? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: multiple controllers on 1 page

2006-09-07 Thread Mikee Freedom
in some instances I employ the uses attribute of a controller to access other models so i don't have to use the requestAction method. for example, on my dashboard of the admin area I list a few totals: e.g. total users: 100 total users in last month: 35 total images on system: 32 total space on

Re: multiple controllers on 1 page

2006-09-07 Thread Olivier Percebois-Garve
Well, U can also make use of requestAction in the layout, in components and I guess in elements too. In my abroad experiences, sometimes, I found myself very happy when I could hide my French origin... Brian French wrote: Thanks for your help! In response to my own first question, i am

Re: cascading deletes.

2006-09-07 Thread [EMAIL PROTECTED]
Sohei: thank you! :) It took me 2 min. to find the problem, after I had set the debug option to "2": 1 query took 1 ms NrQuery Error AffectedNum. rows Took (ms) 1 SELECT `File`.`id`, `File`.`name`, `File`.`type`, `File`.`size`, `File`.`data`, `File`.`created`, `File`.

Re: AD7six: question about locale?

2006-09-07 Thread MrTufty
You have to download it using Subversion (SVN). It's quite a simple thing to do, as long as you have the tools already. Under Windows, that'll most likely be TortoiseSVN. The exact instructions for what to do are in another recent thread on here - I know, because I was the one looking for them :)

Re: selectTag ?empty optiont?

2006-09-07 Thread Sohei Okamoto
The showEmpty option is true by default.selectTag('File/category_id', $cats, null, null, null, false); ?>It is in API http://api.cakephp.org/class_html_helper.html#0a0a7c56c21b7d7352fd99158350dfc5Sohei --~--~-~--~~~---~--~~ You received this message because you are

Re: selectTag ?empty optiont?

2006-09-07 Thread Fabian Schächter
Hi,look here:http://api.cakephp.org/class_html_helper.html#0a0a7c56c21b7d7352fd99158350dfc5Its default, but with selectTag('File/category_id', $cats,null, null, null, false); ?> youl have a nice selec box...bye  DerKlops --~--~-~--~~~---~--~~ You received this mess

Screen Casts

2006-09-07 Thread gmcl
Is there supposed to be any audio associated with the screencasts? Specifically the Blog tutorial? --~--~-~--~~~---~--~~ 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@goog

Re: CakePHP processing order

2006-09-07 Thread nate
> I am curious as to how CakePHP actually works. Well, it all begins with a vast array of light-emitting diodes and cathode ray tubes, all assembled and connected to a large red switch... Sorry, I couldn't help myself. --~--~-~--~~~---~--~~ You received this

selectTag ?empty optiont?

2006-09-07 Thread [EMAIL PROTECTED]
so i have Array ( [0] => erotyczne [1] => pornografia ) in view selectTag('File/category_id', $cats); ?> and first option is empty why ?   erotyczne pornografia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: multiple controllers on 1 page

2006-09-07 Thread Brian French
Thanks for your help! In response to my own first question, i am assuming that i am correct as i would have to call the requestAction for each block for each page unless they occure everywhere in which case i could use beforeRender() Yes I'm American and no, it's not hard to live with :-p The

Re: AD7six: question about locale?

2006-09-07 Thread [EMAIL PROTECTED]
Thank's a lot! ;-) I got result. All done... Afterwords: Cake 1.2 - I know, he has i18n... But I has'nt Cake 1.2... Where I can get this version? Thank you for your answer!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: multiple controllers on 1 page

2006-09-07 Thread Olivier Percebois-Garve
Hi I think requestAction is made for that. To avoid a method to be accessed, just use "_" as prefix e.g : function _blabla(){ //blabla } Are u american ? Isn't your lastname difficult to live with there? Brian French wrote: > Im still in the process of wrapping my head around the MVC. I un

Re: cascading deletes.

2006-09-07 Thread Sohei Okamoto
If you are using same version of CakePHP as me (latest one:1.1.7.3363),then the error at line 1019 is with foreach and $records not being an array.                $records = $model->findAll("$field = '$id'", $model->primaryKey, null, null);                 foreach($records as $record) {           

Re: IMPORTANT CakePHP Security Fix

2006-09-07 Thread nate
I happen to know that there are many ways to pass data from the Controller to the View tier, because I put many of them there myself. Mika wrote: > Half a dozen? I only know of 2, linking directly to the controller and > using set. Which others are there? https://trac.cakephp.org/browser/branche

Re: need bakers for search engine analyst project.

2006-09-07 Thread Felix Geisendörfer
Daniel Hofstetter has started a CakePHP job board called findABaker which I think is a more appropriate place for job offers then this mailing group is. Since it's still free (until Sept 15th) you should go ahead and check it out ; ). Oh and of course, good luck with finding a good developer.

need bakers for search engine analyst project.

2006-09-07 Thread Gil Vidals
I need a good baker for a cakephp project: Description: We are looking for an experienced web developer to assist our in house developer in creating a new service (Search Engine Analyst). The need is immediate to start ASAP. The project requires at least intermediate (2-5 years) of experience wi

Re: Hiding actions from outside world

2006-09-07 Thread jitka
> Is it possible to have an action which can only be called from within > cake via requestAction? So the function is part of another controller > but I don't want users to be able to call it directly... It is possible. Just implement following method in Your controller and Your methods YourContro

multiple controllers on 1 page

2006-09-07 Thread Brian French
Im still in the process of wrapping my head around the MVC. I understand the roles of each of the elements. What i am coming across that i cant seem to figure out is how to have multiple elements work on 1 page. Example: Myspace (i know, but good example of what im talking about). On the homep

Re: Hiding actions from outside world

2006-09-07 Thread Chris Lamb
On Thu, 07 Sep 2006 04:06:18 -0700, [EMAIL PROTECTED] wrote: > Is it possible to have an action which can only be called from within > cake via requestAction? I believe prefixing the action name with an underscore will achieve this. For example, an action name called "_foo" in the BarController

Re: newbie: Obfuscating a CakePhp project

2006-09-07 Thread M
Chris Hartjes wrote: > M: I hope SourceGuardian/Zend Safeguard does the trick but hope that > you can find other ways to make money rather than relying on people > never figuring out what you are doing. It's ironic that you are > benefiting from an open source application but trying to hide wh

Re: Leverage Cake For File Downloads

2006-09-07 Thread Brandon
Thanks, Martin! With your help, it took me about 20 seconds on php.net to find just what I needed. I just didn't know what to look for. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Hiding actions from outside world

2006-09-07 Thread [EMAIL PROTECTED]
Is it possible to have an action which can only be called from within cake via requestAction? So the function is part of another controller but I don't want users to be able to call it directly... Cheers :) --~--~-~--~~~---~--~~ You received this message because y

Re: CakePHP processing order

2006-09-07 Thread [EMAIL PROTECTED]
Thanks for the insight. I started with CakePHP last October so the changes since then have been numberous. In fact, most of the override ability and bootstrapping didn't exist then. So, in terms of AJAX it probably isn't a good idea to call a requestAction with array return inside a controller.

Re: AD7six: question about locale?

2006-09-07 Thread AD7six
Hi Vlad, Before I say anything further: Cake 1.2 has i18n support, which may suit your need. Regarding your question: For the site default language, there is no change to the view file name. e.g. this means if your site is english and spanish (en_us,es_es) you would create ouch.thtml and ouch_es

Re: cascading deletes.

2006-09-07 Thread [EMAIL PROTECTED]
bump --~--~-~--~~~---~--~~ 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] For more options,

Re: CakePHP processing order

2006-09-07 Thread mouth
Hi, You should search this forumfor 'requestAction' first, IMHO. Then read implementation of Object::requestAction(), Dispatcher::dispatch(), Dispatcher::_invoke() and Dispatcher::start(). Source code will give You best possible informations - CakePHP is about 150 files only ;-) > If you do a req

AD7six: question about locale?

2006-09-07 Thread [EMAIL PROTECTED]
Hi! I reading manual (http://wiki.cakephp.org/tutorials:i18n) and do first step, but have a problem... 1. Create posts (default ;-) controller, and look - all work correct. 2. Put locale.php into component directory 3. create file app_controller.php in /app (like in manual). Reload site.com/pag

CakePHP processing order

2006-09-07 Thread [EMAIL PROTECTED]
I am curious as to how CakePHP actually works. What I mean is what is the most economical way to call a method from another controller? If you do a requestAction() does this actually go thru the dispatcher and all that again? Wouldn't it be more economical to call the controller directly? Of c

selecting fields in related models

2006-09-07 Thread mathaios
Hi to all the bakers... Scenario: model1 hasMany model2 model2 belongsto model1 I need to display a list: I only need to retrieve the following fields: let's say model1.field1, model1.field2 and model2.field1 but using $this->set('results', $this->Model1->findAll(null,array('model1.field','mod

Re: IMPORTANT CakePHP Security Fix

2006-09-07 Thread Bert Van den Brande
Imho there's a big difference between linking the controller directly in the view, and providing an interface with a limited set of 'safe' methods to access certain parts of the controller. On 9/7/06, Mika <[EMAIL PROTECTED]> wrote: > > Half a dozen? I only know of 2, linking directly to the cont

Re: Leverage Cake For File Downloads

2006-09-07 Thread Martin Schapendonk
On 9/6/06, Brandon <[EMAIL PROTECTED]> wrote: > Cake to perform this renaming? For instance, if a user goes to > /audio/download/1, their download dialogue will read something like > artist-title.mp3. Google for the Content-Disposition header, that should get you going. -- Martin Schapendon

Re: $this->Set() problems... in controller

2006-09-07 Thread Chris
Freedom, Thanks for pointing that out, I looked it up in the API guide and saw beforeRender and before filter, I decided to go with the beforeRender. This is just my first couple of days looking at cakephp and MCV, I can't believe how nice this is, I also can't believe how crappy my old pro

Re: $this->Set() problems... in controller

2006-09-07 Thread Mikee Freedom
thanks Sohei, I reckon you might be right. cheers, freedom On 07/09/06, Sohei Okamoto <[EMAIL PROTECTED]> wrote: > Or > beforeRender() - called just before a view is rendered. > > It is more logical, since you want to set variables for the view. > > Sohei > > > > > --~--~-~--~~

Re: $this->Set() problems... in controller

2006-09-07 Thread Sohei Okamoto
Or beforeRender() - called just before a view is rendered.It is more logical, since you want to set variables for the view.Sohei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,