behavior question

2007-03-02 Thread Zoltan
I'm trying to move some processing into a behavior. What I've done so far is, create a file called placehelper.php (in the model/behaviors dir) like: class placehelperBehavior extends ModelBehavior { function setup(&$model, $config = array()) { } function stripText($tex

Re: cakephp plugin for eclipse?

2007-03-02 Thread Langdon Stevenson
> I'm wondering what are we expecting from a CakePHP eclipse plugin? Me personally? I have a few ideas perhaps, but no idea what is possible. I do like your suggestion of creating all of the required files for a controller (sounds like a cut down version of the bake script). Other than that,

RE: cakephp plugin for eclipse?

2007-03-02 Thread Mariano Iglesias
I'm wondering what are we expecting from a CakePHP eclipse plugin? I mean you can easily create a new File New wizard by hooking plugin up to the org.eclipse.ui.newWizards extension point and then implementing the INewWizard interface to create for example wizards for: - New Controller (and the

Re: Thesis ideas

2007-03-02 Thread Riky Kurniawan
This is my thesis built with cake http://www.herowannabe.com/vyroo/ -- http://riky.kurniawan.us On 3/3/07, Felix St. Bernard <[EMAIL PROTECTED]> wrote: > > > I don't know how you guys feel about me asking this on this group but > I'm at a loss.

Thesis ideas

2007-03-02 Thread Felix St. Bernard
I don't know how you guys feel about me asking this on this group but I'm at a loss. I'm looking for an undergrad thesis idea. I was wondering if anyone had any ideas. I ask here because my interests include web programming, php (and cakephp). I major in Informatica which in English may be mor

Re: cakephp plugin for eclipse?

2007-03-02 Thread Norm
I would love to see a eclipse plugin for cakephp! Never developed one before but would be more than willing to play tester as needed. If you want to get it going I'll try to help out best I can. --~--~-~--~~~---~--~~ You received this message because you are subsc

RE: CakePHP versus Symfony ?

2007-03-02 Thread Mariano Iglesias
Hahaha oh yeah, forgot about that one ;) -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

Re: So frustrated

2007-03-02 Thread Dr. Tarique Sani
On 3/3/07, John David Anderson (_psychic_) <[EMAIL PROTECTED]> wrote: > Most of the current focus has been on the manual for CakePHP 1.2. A > strong MVC section has been added, along with some stronger > explanations of Cake-flavored MVC architecture. I'm about 40 pages Nice to know that - can't

Re: CakePHP versus Symfony ?

2007-03-02 Thread Dr. Tarique Sani
Learning curve of CakePHP is much more gentle despite whatever people say about the documentation. (I first got distracted then bored trying to follow the Askeet series) CakePHP apps run without any modifications in Joomla and Drupal!! Cheers Tarique On 3/3/07, Mariano Iglesias <[EMAIL PROTECT

RE: habtm loads associated data, but won't save...

2007-03-02 Thread Mariano Iglesias
Seems like googling this problem would've helped you out: http://www.cricava.com/blogs/index.php?blog=6&title=something_to_consider_wh en_saving_habtm_&more=1&c=1&tb=1&pb=1 Posted on December 10. -MI --- Remember, smart c

Index for aros_acos

2007-03-02 Thread mozart_ar
I am beginning to use ACL, and I have a doubt. I do not see index in the table aros_acos for the fields aro_id and aco_id. It must not have them? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
Sam, thanks for your hint, but my last post says it all, and might keep others from running into the same headache. - If you want to process / save HABTM data, it might be neccessary to place a parent model fake field *before* the related form fields -- regards, jyrgen --~--~-~--~--

Re: habtm loads associated data, but won't save...

2007-03-02 Thread Samuel DeVore
can you paste the form view in http://bin.cakephp.org/ really it will help and that is what the bin is for. Sam D On 3/2/07, jyrgen <[EMAIL PROTECTED]> wrote: > > it seems that the first POSTed Array is the first one in the form > that is declared. > > i will try to set up a fake parent form ta

Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
I issued this right after the tag hidden('Author/fake'); ?> and succeeded--- by means of this the browser is forced to create the parent model first. thanks for your attention, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
it seems that the first POSTed Array is the first one in the form that is declared. i will try to set up a fake parent form tag in order to force the browser to post the parent model data first, i'll let you know... cheers, jyrgen --~--~-~--~~~---~--~~ You rece

Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
I'm sure nobody wants to see my entire form here. But you're right, i should have posted some code earlier. ok, here is a dump of $this->data after saving with the submit button in the bottom of the form : Array ( [skill] => Array ( [skill] => Array (

Re: habtm loads associated data, but won't save...

2007-03-02 Thread Samuel DeVore
try posting some code, I suggest using http://bin.cakephp.org/ asking this kind of question is like asking someone to fix a problem with a car with out seeing the car, just because you said, 'my car won't start, can you tell me what's wrong.' now I'm not saying we will be able to help you fix it

Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
I found out, that the placement of the submit button in a form (nested tables) has an influence on which model is saved first ! therefore, when the submit button is on the bottom of the page the associated model appears first in $this->data, which caused the save failure. this is truly bizarre.

Re: cakephp plugin for eclipse?

2007-03-02 Thread Langdon Stevenson
> Langdon says: >> I love Eclipse > > Maybe I am missing something... What plugins are you using Langdon? Do > you have code completion for php, html, javascript, and css? Hi Cook I just use the php plugin too. The reason that I love Eclipse is the combination of Eclipse project organisat

Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
sorry for my impatience, an associated model doesn't save data to the intermediate lookup table. what might be the reason for this ? j. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post t

Re: habtm loads associated data, but won't save...

2007-03-02 Thread John David Anderson (_psychic_)
On Mar 2, 2007, at 4:46 PM, jyrgen wrote: > > ? anybody ? Please don't bump an issue without making an effort to improve how you asked your original question. -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
? anybody ? --~--~-~--~~~---~--~~ 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

Re: So frustrated

2007-03-02 Thread John David Anderson (_psychic_)
On Mar 2, 2007, at 4:05 PM, phirschybar wrote: > > John, > > Thanks for taking the lead on the docs. How is it coming? Terrible. Just kidding. Most of the current focus has been on the manual for CakePHP 1.2. A strong MVC section has been added, along with some stronger explanations of Ca

Re: So frustrated

2007-03-02 Thread phirschybar
John, Thanks for taking the lead on the docs. How is it coming? On Mar 2, 2:59 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Mar 2, 2007, at 11:54 AM, [EMAIL PROTECTED] wrote: > > > > > If you are going to continue developing with cakePHP get used to this. > > I love cake

habtm loads associated data, but won't save...

2007-03-02 Thread jyrgen
hey there, i'm stuck again and don't know where to look for the error causing this. is there any useful entity that i can debug when an associated model (habtm) doesn't create table rows in the lookup table ? thanks a lot ! jyrgen --~--~-~--~~~---~--~~ You rece

Re: cakephp plugin for eclipse?

2007-03-02 Thread [EMAIL PROTECTED]
That sounds great, let us know when your finished making it! Seriously now That would be nice to have, I don't think anyone has made one yet. I have considered it, but I am very hesitant since the php development in eclipse is not that great "yet". When I say "php development" I am referring t

Re: cakephp plugin for eclipse?

2007-03-02 Thread Joe Crawford
On 3/2/07, Michael Rubanov <[EMAIL PROTECTED]> wrote: > Very interesting question. > > May be community could share an experience with other ide's ? > > Which one is best suited for cakephp ? > > I actually miss the code completion future for view dimension in > eclipsephp... I would be very inte

RE: CakePHP versus Symfony ?

2007-03-02 Thread Mariano Iglesias
And it doesn't hurt to learn that big players like IBM and Firefox (among several others) have opted to use CakePHP for their own developments. -MI --- Remember, smart coders answer ten questions for every question they ask.

Re: cakephp plugin for eclipse?

2007-03-02 Thread Langdon Stevenson
I love Eclipse, so it would be interesting to see an Eclipse plugin that enhanced/eased the Cake development process Langdon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

RE: CakePHP versus Symfony ?

2007-03-02 Thread Mariano Iglesias
* Symfony has configuration files, configuration files and also.. MORE CONFIGURATION FILES! * Symfony has dependencies on libraries which code is not managed by the framework. * Symfony has slower performance than CakePHP (as shown by benchmarks) * CakePHP is far more flexible (IMHO) wh

RE: ACL problem

2007-03-02 Thread Mariano Iglesias
Both Aro, Aco and Acl on CakePHP's builtin ACL are standard tables. Just add them as models to your controller: var $uses = array ('Aro', 'Aco'); And then use them as a regular model. If you are curious as to how they are built, look into for example Aro at cake/libs/controller/components/dbacl/

Re: cakephp plugin for eclipse?

2007-03-02 Thread Michael Rubanov
Very interesting question. May be community could share an experience with other ide's ? Which one is best suited for cakephp ? I actually miss the code completion future for view dimension in eclipsephp... On 3/3/07, Trav <[EMAIL PROTECTED]> wrote: > > > I have used cakephp for some personal p

Re: i apparently don't understand htaccess

2007-03-02 Thread Trav
My problem was that I am using subdirectories. The following linked help me configure cake appropriately. http://www.chriscassell.net/log/2006/07/27/how_to_install_.html On Feb 25, 10:07 pm, "Trav" <[EMAIL PROTECTED]> wrote: > Here is my apache.conf entry: > > LoadModule rewrite_module modules/

Re: include variables in phpcake

2007-03-02 Thread nate
The solution is to set your variables in the controller with $this- >set(). In Cake 1.2 you can also use $this->set() in views. On Mar 2, 4:17 pm, "jamiro" <[EMAIL PROTECTED]> wrote: > hello, I need a solution to this problem, > I have a file config.php: > > > I have a file page.thtml > > >

Re: implementing a drop-down/select box

2007-03-02 Thread edwardmolasses
sorry, nevermind, i found out it's HtmlHelper::selectTag --~--~-~--~~~---~--~~ 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 grou

cakephp plugin for eclipse?

2007-03-02 Thread Trav
I have used cakephp for some personal projects and I develop eclipse plugins for my working job and I was wondering if anyone knew of a cakephp plugin for eclipse. I am familiar with the eclipse php plugin and it is very useful, but it would be nice to take it one step further. --~--~-~

implementing a drop-down/select box

2007-03-02 Thread edwardmolasses
Hello, I had a silly question, but i can't seem to find the answer in the manual. I want to create a drop-down menu or select box in my form. I'm using htmlhelper in my form and i'm not sure how to setup a drop- down/select box when i'm using htmlhelper. A sample of code from my form (the first

include variables in phpcake

2007-03-02 Thread jamiro
hello, I need a solution to this problem, I have a file config.php: I have a file page.thtml result: Notice: Undefined variable: x in /var/www/html/ Also I test with : vendor('config'); not work PS: Using include('config.php'); it works but there is no another solution? thanks --~--~---

Re: Pass an array as a parameter

2007-03-02 Thread f.
Hi zipman > but if I have $arr=array('key1'=>'value1','key2','value2') > and I want to pass that as an argument of foo I cannot use the code > above. Why not do http://localhost/cake/tests/foo/ some_string?key1=value1&key2=value2','main')> Click me In fact I have an app with drag and drop ar

Re: how to populate a second select-box by selecting a first with ajax ?

2007-03-02 Thread fredBH
i get it Follow the LANGDON code, On VIEW, the main SELECT: selectTag('Animal/animal_type_id', $AnimalTypeArray, $html->tagValue('Animal/anima_Typel_id'), array());?> Where $animalTypeArray is a generatedList() in function add() in controller and observeField('AnimalTypeAnimalId', array('fre

Re: multi-page forms

2007-03-02 Thread fr3nch13
not sure, but you could always invofe the $this- >requestAction('othercontroller/othermethod/param1'); On Mar 2, 8:48 am, "keymaster" <[EMAIL PROTECTED]> wrote: > Had another look at the form wizard. > > Studying the code in more detail helped me understand what can be > abstracted out of routine

Re: othAuth component v0.5.2 and Stable: 1.1.12.4205 go it?

2007-03-02 Thread [EMAIL PROTECTED]
exellent..this helped On Jan 16, 8:50 pm, "Petr Vytlačil" <[EMAIL PROTECTED]> wrote: > Yes i had a space in some source. THX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: So frustrated

2007-03-02 Thread John David Anderson (_psychic_)
On Mar 2, 2007, at 11:54 AM, [EMAIL PROTECTED] wrote: > > If you are going to continue developing with cakePHP get used to this. > I love cakePHP for a lot of things, but this community has some > terrible documentation. I'm not a community, actually, as I'm the only one working on the docs.

Possible use CakePHP without DocumentRoot ?

2007-03-02 Thread [EMAIL PROTECTED]
It's possible to use cakephp without defining DocumentRoot in Apache configuration file? I'm asking because I have strange URL's like this: http://localhost/cake/app/webroot/index.php/cake/product/add This should be http://localhost/cake/index.php/product/add P.S. and how to disable index.php i

Pure Flex

2007-03-02 Thread randomblink
Alrighty... I am designing an app that is 100% flex on the client side. The only HTML will be the Flex Holder Page... EVERYTHING else will be Flex talking to AMFPHP through the Gateway and CakePHP being the framework on the server-side. I have printed out the CakePHP manual, the CakeAMFPHP manua

Re: how to populate a second select-box by selecting a first with ajax ?

2007-03-02 Thread fredBH
oh god... i still can understand it... how is code int controller ? thx for u attetion :) On 17 fev, 03:57, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi NOSLOW > > The most important part of the code that I use is pasted below. It > comes from the view file > > 1. > -- > This bit ren

Re: So confused

2007-03-02 Thread Chris Hartjes
On 3/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > If you are going to continue developing with cakePHP get used to this. > I love cakePHP for a lot of things, but this community has some > terrible documentation. > > What documentation in particular do you think is terrible? Does this

Re: So confused

2007-03-02 Thread [EMAIL PROTECTED]
If you are going to continue developing with cakePHP get used to this. I love cakePHP for a lot of things, but this community has some terrible documentation. skatona wrote: > oh man, thank you. I've been going crazy thinking that they wouldn't > possibly let something like that slip by, so hav

Re: So confused

2007-03-02 Thread nate
Great, I'll take that as you voulenteering to fix it. You can contact the documentation lead at psychic at cakephp dot org. On Mar 2, 1:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If you are going to continue developing with cakePHP get used to this. > I love cakePHP for a lot of thi

Re: CakePHP versus Symfony ?

2007-03-02 Thread Mech7
>From what i read you only need PEAR on your development server.Also the documentation seems to be a bit better with symfony, they have a book that is also availalbe online for free and a tutorial where the build a real world application: http://askeet.com/ Personally i never got PEAR cli working

Re: Extending model

2007-03-02 Thread Zoltan
Thanks, I think this is just what I'm looking for. BTW: these docs are very helpful. On Mar 2, 12:40 pm, "jitka" <[EMAIL PROTECTED]> wrote: > Hi Zoltan, > > if You're using CakePHP 1.2 already, then behavior is right place imo. > Behavior is for Model just like Component for Controller, with one

Re: CakePHP versus Symfony ?

2007-03-02 Thread Michael Rubanov
Pear dependency :| On 3/2/07, surfivor <[EMAIL PROTECTED]> wrote: > > > > Could anyone point me to some significant differences between CakePHP > and Symfony ? Also I am familiar with Ruby on Rails, so any > similarities or differences there might also be usefull. > > > > > -- Best Regards, Mi

sessions problem

2007-03-02 Thread jamiro
hi , I have a problem in the handling of sessions, my configuration in core.php is: define('CAKE_SESSION_SAVE', 'php'); define('CAKE_SECURITY', 'medium'); now my problem is when refresh the page (or change the page), my session id changes and I cannot read the stored thing previous

Re: CakePHP versus Symfony ?

2007-03-02 Thread hydra12
This post has some info that might help you: http://snook.ca/archives/php/symfony_1_0_released/ hydra12 On Mar 2, 1:02 pm, "Christian Winther [cwi.dk]" <[EMAIL PROTECTED]> wrote: > Did you even bother to search the group or google before asking ?. > > -Original Message- > From: cake-

RE: CakePHP versus Symfony ?

2007-03-02 Thread Christian Winther [cwi.dk]
Did you even bother to search the group or google before asking ?. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of surfivor Sent: 2. marts 2007 19:39 To: Cake PHP Subject: CakePHP versus Symfony ? Could anyone point me to some significant

Re: Pass an array as a parameter

2007-03-02 Thread zipman
No, that's not what I mean. I don't want to get the arguments in the function body. My problem is how to call the function. If the argument was just a string I could write http://localhost/cake/tests/foo/ some_string','main')> Click me (update_div is a javascript function to change innerHt

CakePHP versus Symfony ?

2007-03-02 Thread surfivor
Could anyone point me to some significant differences between CakePHP and Symfony ? Also I am familiar with Ruby on Rails, so any similarities or differences there might also be usefull. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Turn off all http headers

2007-03-02 Thread floepi
Ahh actually when i compared the two files in a Hexeditor i found a newline character which is somewhere created in my cake code. Will try to hunt it down and hopefully make that work... Cheers On Mar 2, 6:32 pm, "floepi" <[EMAIL PROTECTED]> wrote: > Hi all, > > sorry to be not very clear abo

Re: Ajax->editor Not Taking Options?

2007-03-02 Thread [EMAIL PROTECTED]
OK, I see what has happened. I have v1.7.0 of the script.aculo.us library and and the Ajax helper has not been updated to allow for new options like submitOnBlur. I modified my ajax.php helper to allow the new options i wanted to use and all is well. Carry on. Nothing to see here. On Mar 2, 11

Re: Turn off all http headers

2007-03-02 Thread floepi
Hi all, sorry to be not very clear about it. Yes a whole bunch of headers are always sent but from my understanding the excel stream gets confused with the Cake Session cookie. I ran the php script to create the Excel file as a standalone and then in cake. The standalone works well, the one in ca

Re: Cache an object, not a view

2007-03-02 Thread phirschybar
Where would those first 2 functions go, ideally? In app_controller.php? Still getting feet warm with cake. Thanks. On Mar 2, 12:50 pm, "Mandy" <[EMAIL PROTECTED]> wrote: > http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html > > On Mar 2, 3:32 pm, "phirschybar" <[EMAIL PROTECTED]> wro

Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-02 Thread [EMAIL PROTECTED]
Thanks a lot for your help! I've been frustrated with this all week! Unfortunately, this didn't work. I assume its because I followed one of these instructions wrong, so to clarify: > Try this - first, make a cake folder inside your root folder and put cake in > it (app, cake, etc). When you

ACL problem

2007-03-02 Thread [EMAIL PROTECTED]
I am starting to implement security through ACL, and I have a problem... perhaps I have structured things improperly, but I don't think so. I have an ARO for each user (and for each group). The aros.foreign_key corresponds with users.id and aros.alias corresponds to user.username. When I need t

Ajax->editor Not Taking Options?

2007-03-02 Thread [EMAIL PROTECTED]
Hey all, I'm fairly new to cake and have no previous experience with ajax, but I am trying to implement an edit-in-place field. So I have: id']); When I click on the username field, the text turns into an input box. However, it's not the right size, and I don't want the OK button and Cancel lin

Re: Email Component and UTF8 Subject

2007-03-02 Thread nateklaiber
Cake 1.2 has a new email component, I believe that is what he is referring to. On Mar 2, 10:44 am, "bernardo" <[EMAIL PROTECTED]> wrote: > What component? > The one that uses the phpmailer library handles encoding of the > headers fine. > Also note that by calling utf8_decode you are converting

RE: Pass an array as a parameter

2007-03-02 Thread Christian Winther [cwi.dk]
Debug( func_get_args() ) would probadly output array( 0 => lala, 1 => id ) Not sure if that's what you want -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zipman Sent: 2. marts 2007 14:38 To: Cake PHP Subject: Pass an array as a parameter He

RE: Multiple file upload ?

2007-03-02 Thread Christian Winther [cwi.dk]
iF you just need a simple 'plain old multi upload' feature, just do: And then debug( $this->data['Upload'] ); in your controller show contain an array of file info (tmp path ect) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mech7 Sent: 2. ma

RE: spreadsheet_excel_writer and cakephp

2007-03-02 Thread Christian Winther [cwi.dk]
Debug = 0 -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of floepi Sent: 2. marts 2007 17:40 To: Cake PHP Subject: Re: spreadsheet_excel_writer and cakephp I have the same problem but i think it comes down to the little annotation in cake which di

RE: Extending model

2007-03-02 Thread Christian Winther [cwi.dk]
And its singleton ;) -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jitka Sent: 2. marts 2007 18:41 To: Cake PHP Subject: Re: Extending model Hi Zoltan, if You're using CakePHP 1.2 already, then behavior is right place imo. Behavior is for Mod

Re: Turn off all http headers

2007-03-02 Thread Felix Geisendörfer
> > Maybe I'm an idiot, Well ... just kidding - I love your stuff ; ). But what I doubt is that the header that phil copied was sent by CakePHP: > GET /userAdmin/reports/createExcel HTTP/1.1 > Host: useradmin.dev.web.mpc.local > User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/

Re: Extending model

2007-03-02 Thread jitka
(continuing) Also: there is quite new method http://docs.cakephp.nu/classes/show/Model#isUnique ;) So: imaginary method UniqueUrlBehavior::beforeSave() can either invalidate 'url' field or customize generated url to be unique - and with usage of behavior it is 'few minute/codeline work' ;) Jit

Re: Extending model

2007-03-02 Thread fr3nch13
If your using 1.1.x you can use app_model.php like you would use app_controller.php. I'm sure this has been talked about on this group before. search for "app_model" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Re: Cache an object, not a view

2007-03-02 Thread nate
http://php.net/serialize On Mar 1, 10:05 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > I see lots of info on caching views in the manual but I am wondering > of I can cache an object as easily. Just a simple array of data so > that I do not have to hit the DB on every page. --~--~-~--~

Re: Cache an object, not a view

2007-03-02 Thread Mandy
http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html On Mar 2, 3:32 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > well gee. There you have it ;). Thanks. > > On Mar 1, 11:03 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > > > > >http://bakery.cakephp.org/articles/view/249 > > > phirschy

Re: Turn off all http headers

2007-03-02 Thread Chris Hartjes
On 3/2/07, floepi <[EMAIL PROTECTED]> wrote: > > > are breaking the export when i use the normal send excel stream > option. Does anyone know how i can easily turn the http headers of for > a layout?? > > Thanks > > Phil Maybe I'm an idiot, but won't ANYTHING that is served up by a web server hav

Re: Extending model

2007-03-02 Thread jitka
Hi Zoltan, if You're using CakePHP 1.2 already, then behavior is right place imo. Behavior is for Model just like Component for Controller, with one useful exception: it uses more callbacks ;) http://docs.cakephp.nu/classes/show/ModelBehavior --~--~-~--~~~---~--~---

Turn off all http headers

2007-03-02 Thread floepi
Hi all, i am trying to use the excel writer from pear but it seems that the headers sent by cake GET /userAdmin/reports/createExcel HTTP/1.1 Host: useradmin.dev.web.mpc.local User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/ 20061010 Firefox/2.0 Accept: text/xml,application/x

sticking to the relational paradigm

2007-03-02 Thread jyrgen
Hello all, How do you treat model fields that may have many values ? I guess it is a bad idea to store multiple values in a single field, i.e. in this fashion : field : 1,0,1,0,1,1 lets say this field can store six values as a comma separated string. This is how i already implemented it... Do

Re: spreadsheet_excel_writer and cakephp

2007-03-02 Thread floepi
I have the same problem but i think it comes down to the little annotation in cake which displays how long it took. or something. Does anyone now how to turn that off ? Cheers Phil On Jan 5, 2:12 am, "roman_coder" <[EMAIL PROTECTED]> wrote: > Here is some code. I also have the path topear

Re: store global config?

2007-03-02 Thread jyrgen
Yes it is ! At least in all controllers, from there you can pass everything to your views via $this->set cheers, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, sen

Re: store global config?

2007-03-02 Thread Mech7
I see is the configure class everywhere accesible ? On Mar 2, 4:00 pm, "dhalsim" <[EMAIL PROTECTED]> wrote: > Personnaly, i have created a app.php (where app is the name of my > application) in /app/config/ which store my configuration in an > array, > and i added one simple line in the /app/conf

Multiple file upload ?

2007-03-02 Thread Mech7
Is there a explanation or tutorial anywhere which explains how to do multiple file uploads and store the name in the database? I have found this: http://thinkingphp.org/demos/cake-timer/ but it looks a little complicated and uses a perl script :( --~--~-~--~~~---~--~

Re: troubles with cake_1.1.13.4450

2007-03-02 Thread [EMAIL PROTECTED]
Great ! it works! to work on my "Category" Model, I need to type now : loadModel('Category'); $r = new Category; $b = $r->findAll(); the rests classes are loaded directly. Thaxs so much ! --- Dan On 1 mar, 20:41, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > You need

Extending model

2007-03-02 Thread Zoltan
Hi, I'm working on a project that stores a custom url for articles, so a story named "Big News at Soby's" becomes "big_news_at_sobys" automatically. I've put the method to handle the text conversion in the model as part of a BeforeSave function (based heavily on some code I found on Symfony's web

Re: ajax editor and view

2007-03-02 Thread dhalsim
I've checked this already but it is not the problem. So I solve the problem in controls.js from script.aculous lib with a kindy trim function on the new value. On 28 fév, 17:16, "bernardo" <[EMAIL PROTECTED]> wrote: > Make sure the spaces are not in your source files (before or after the > php ta

Re: store global config?

2007-03-02 Thread dhalsim
Personnaly, i have created a app.php (where app is the name of my application) in /app/config/ which store my configuration in an array, and i added one simple line in the /app/config/bootstrap.php : Configure::load('app'); After that you can access configuration variables with Configure::read('

Re: Email Component and UTF8 Subject

2007-03-02 Thread bernardo
What component? The one that uses the phpmailer library handles encoding of the headers fine. Also note that by calling utf8_decode you are converting your subject to iso8859-1, so not only would you lose the characters that cannot be converted but you would still need to appropriately encode the

Re: function for other functions in controller?

2007-03-02 Thread Brad Daily
Prepend their names with an underscore: // A normal, viewable action function index() { $this->_dry(); } // Private function, not available via a URL function _dry() { // Blah } On Mar 2, 10:08 am, "Mech7" <[EMAIL PROTECTED]> wrote: > How should i add functions in controller which don't

function for other functions in controller?

2007-03-02 Thread Mech7
How should i add functions in controller which don't need a view or model but are only used in a controller to make the code what easier to read? So that you can't acces them through the url ? --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Installing Cake on 1 subdomain with .htaccess, not multiple instances of apps

2007-03-02 Thread hydra12
Try this - first, make a cake folder inside your root folder and put cake in it (app, cake, etc). Now put your app in it's own folder in the root (dev, in your case). Now your root should have something like the following:wp-admin, wp-content, wp-includes, cake, dev. In your dev folder, in webr

Re: INSERT into databases

2007-03-02 Thread Chris Hartjes
On 2/27/07, Felix St. Bernard <[EMAIL PROTECTED]> wrote: > That was enough said Don't you think? I understand how queries like > his may "upset" you but keep your frustrations to yourself. You could > have also just made reference to the recent post "CakePHP IRC and > GoogleGroup Etiquette Sug

Re: best practice multiple checkboxes

2007-03-02 Thread GreyCells
I wrote the fomx helper as a proof of concept, although I am using it in a development environment, I'll probably tidy it up before using it in production. ('though there's always the hope it'll end up in the core:). It is tightly tied to the 1.2 FormHelper and I have not even looked at the 1.1 co

Email Component and UTF8 Subject

2007-03-02 Thread Alex
Maybe I'm wrong but I think the Email Component doesn't handle UTF8 subjects correctly. I have to wrap a utf8_decode() around my subject to send it correctly. Maybe the setting $this->Email->charset = 'utf-8' only impacts the text to be send? Greetings from Brasil, Alex --~--~-~--~

Re: UTF8 and CakePHP - Best Practices

2007-03-02 Thread Alex
On 9 Feb., 21:27, "Grant Cox" <[EMAIL PROTECTED]> wrote: > I use the following. I believe I copied most of it from Felix or > Daniel, but it was a while ago and I can't really remember :) > Hi, Now I'm using this function, too :-) I wonder if there is any Component for File-operations like re

Re: multi-page forms

2007-03-02 Thread keymaster
Had another look at the form wizard. Studying the code in more detail helped me understand what can be abstracted out of routine multi-page forms processing. It was a good exercise. For those interested, looks like the cake wizard would save the following code every step of the way: 1. Navigati

store global config?

2007-03-02 Thread Mech7
Where do you store global configurations.. like things you wan't to keep at one place for example admin email, upload path etc.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this grou

Pass an array as a parameter

2007-03-02 Thread zipman
Hello, is there any way that I can call a function through url and pass an array as a parameter? For example if I have a function in my test controller function lala($id) { } I can call it through /tests/lala/id but if function foo($array) { } where $array is an array how can I call a contr

Link image to correct path

2007-03-02 Thread Mech7
I can't get an image to link correctly to the path.. right now i have cake in a subdir but when i move it to other server / dir i don't want to change it all again. How can i do this inside a controller? as it look from a different directory then the root. Cake is in \portfolio and the images ar

Inflections problem?

2007-03-02 Thread Petry
Hi people, I'm a brazilian developer an I have a problem with singular and plural rules: The word "Noticia" the plural form is "Noticias" (words ending by "ia", the plural form is "ias") The word "Album" the plural form is "Albuns" (words ending by "m", the plural form is "ns") Well for these c

RE: Integrating phpGACL with CakePHP

2007-03-02 Thread Mariano Iglesias
Ok the programmatic part is about done (missing a few things but nothing that prevents you from already playing with it). I temporarily stored it in: http://bin.cakephp.org/view/577137997 I will add a couple more things to it, then build the plugin for manipulating ACL data through web, and then

  1   2   >