Re: Query using LEFT()

2009-02-05 Thread Siegfried Hirsch
Hello gkc, I have just tried the following in my app: $vendors = $this-find('all', array('conditions'=array('vendor_id ' = 0), 'contain'=array('Vendor.shortname'), 'fields'=array('left(Item.product,10) as p10, COUNT(*) as

Re: Variable state through multiple Ajax requests (ModalBox) including forms

2009-01-13 Thread Siegfried Hirsch
Hello Paul, this one has helped me a lot in using modalbox: http://nerdnotes.org/2008/02/28/combining-modalbox-cakephp/ On Tue, Jan 13, 2009 at 4:45 PM, WebbedIT p...@webbedit.co.uk wrote: Hi, I am having a fair amount of success with ModalBox after playing around with it for a couple of

Re: More power to themes

2008-11-09 Thread Siegfried Hirsch
Hi Lion29, have you had a look at http://book.cakephp.org/view/488/Themes This does not only look, but provides nearly everything you wanted. Or did I miss something ? Siegfried On Sun, Nov 9, 2008 at 4:44 PM, Lion29 [EMAIL PROTECTED] wrote: I would like the same power with themes... it

Re: EmailComponent - bcc bug using SMTP deliverymethod

2008-10-16 Thread Siegfried Hirsch
22, 2008 at 10:23 PM, Siegfried Hirsch [EMAIL PROTECTED] wrote: Just to make sure, that its my fault: Using the EmailComponent I was able to send emails - but if I set bcc addresses, then I can see the bcc addresses, when I address the email to my gmail account. Any ideas, what could cause

Re: xmlwriter

2008-10-16 Thread Siegfried Hirsch
PROTECTED] Im Auftrag von . Gesendet: Sonntag, 12. Oktober 2008 05:53 An: Cake PHP Betreff: xmlwriter has anybody worked with xmlwriter (or similar) with cakephp? thanks -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch Fax +49 - (0)89 - 943 992 698

Re: Cakephp, European privacy laws, key hased models

2008-10-13 Thread Siegfried Hirsch
At first I would be happy to get also a link to these laws. Second, there is a cipher behavior in the bakery: http://bakery.cakephp.org/articles/view/cipher-behavior which seems just enabling this feature. Siegfried 2008/10/10 Nate [EMAIL PROTECTED]: Do you have a reference to these laws that

Re: Avoid requestAction

2008-10-09 Thread Siegfried Hirsch
? Thank you Anja -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch Fax +49 - (0)89 - 943 992 698 - http://www.rss-blogger.de http://www.newsbee.de NewsBee 2 - customized RSS solutions http://abo-stop.de jetzt mit kostenlosem Kündigungsgenerator

Re: Avoid requestAction

2008-10-09 Thread Siegfried Hirsch
$this-data = $this-Hotel-Hotelinfo-add($hotelmaster_id,$this-Hotel-id); calls the function add() in your model Hotelinfo - not in the controller. So as Martin has suggested, move the code for retriving or adding your information into the model and your should be done. On Thu, Oct 9, 2008 at

API documentation update for RC3

2008-10-09 Thread Siegfried Hirsch
Hello do not know who is in charge of it, but would it be possible to update the API documention to RC3. http://api.cakephp.org/ still shows RC2 API docs. If there is anything I could do to make it happen I am willing to help. Or am I missing something ? Thanks a lot Siegfried

Re: Form Helper

2008-10-09 Thread Siegfried Hirsch
FormHelper in 1.1 is very restricted. There was a great rewrite of HtmlHelper and FormHelper between 1.1 and 1.2. Maybe you should give 1.2 a try. On Thu, Oct 9, 2008 at 9:38 AM, franova [EMAIL PROTECTED] wrote: how to use form helper in the cakephp 1.1

Re: How to update two divs with $ajax-link ??

2008-10-09 Thread Siegfried Hirsch
holds picture thumbnail and link to its original size and I have to update another div with just link to the picture. How can I update two divs with one $ajax-link ? Cheers! -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch Fax +49 - (0)89 - 943 992

imap datasource - some design questions

2008-10-01 Thread Siegfried Hirsch
Hi everybody I am just looking into the imap skeleton, that was provided by gwoo in the bin some time ago. So far I have implemented some basic read functionality. But now I am thinking about the further implementation of the imap datasource. Here are some questions, that I am not sure about: -

Re: Ideas about models and associations

2008-09-17 Thread Siegfried Hirsch
' = 'User.role_id = 3' ) ); Which seems to work to a degree but is a bit of a hassle when it comes to editing the profiles and validating the form data. How would you solve this? Regards Guenther -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch Fax

Re: Making a simple link to another page

2008-09-12 Thread Siegfried Hirsch
Use something like this: $this-element('your_element'); On Fri, Sep 12, 2008 at 5:45 PM, gabriel [EMAIL PROTECTED] wrote: I would like to make a simple link to a view which does not have a controller and model, can anyone help me. REgards -- Siegfried Hirsch hhS - Welserstr. 1

Containable Behavior misunderstanding

2008-08-19 Thread Siegfried Hirsch
Hi, using cake 1.2 rc2 I also want to use the Containable behavior. I have a relation like Post and Comment and I do the following: $this-paginate['conditions'] = array('Post.ramble_id' = $rambleId); $this-paginate['contain'] = array('Comment.body LIKE %test%');

Re: how to tick all the checkboxes when the checkbox with value 'All' is checked

2008-07-22 Thread Siegfried Hirsch
Thats the way I do it with prototype: function selectAll(){ // use prototype to select all elements in an array $$('input:[type=checkbox]').each(function(e){ e.checked = true; }); } function deselectAll(){ // use prototype to select all elements in an array var inputs =

Re: What happens with CakePHP Cookbook?

2008-07-17 Thread Siegfried Hirsch
+1 On Thu, Jul 17, 2008 at 8:54 PM, itsnotvalid [EMAIL PROTECTED] wrote: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Onkeypress event

2008-07-15 Thread Siegfried Hirsch
what about trying with the $ajax-observeField helper. On Tue, Jul 15, 2008 at 2:45 PM, RJ [EMAIL PROTECTED] wrote: Thanks for the reply.. The client side requirement is achieved... but i want to make a check whether the user-name is already registered on the fly(i.e ajax call on onkey

Re: how to use self join in cake

2008-07-15 Thread Siegfried Hirsch
Did you take a look to this posting in the bakery ? http://bakery.cakephp.org/articles/view/coding-a-self-join-in-a-cake-application On Tue, Jul 15, 2008 at 10:01 AM, kaushik [EMAIL PROTECTED] wrote: I want to introduce the parentID in this Model, this parentId is actually foreign key to

Re: Onkeypress event

2008-07-15 Thread Siegfried Hirsch
I use frequecy for 1 seconds updates with the ajax call. Thats the way to handle it without putting a burden on the server with every key stroke ;) On Tue, Jul 15, 2008 at 3:11 PM, RJ [EMAIL PROTECTED] wrote: it doesn't work i guess ... i want to make ajax calls on 'onkeyup' event how to use

calling helper functions from within the controller

2008-07-11 Thread Siegfried Hirsch
Hello, the subject says it all: is it possible to call a helper function from within the controller. Of course the helper is included in the var $helpers = array('Myhelper'); class MyController extends AppController { function index() { $this-Myhelper-function_to_call(); // DOES NOT

Re: calling helper functions from within the controller

2008-07-11 Thread Siegfried Hirsch
Hello Chris, yes I know. Maybe I need a hint for my problem. I have written a new Helper. Now I want to set some variables, that I can use from within the helper (yes I know I could handle this with parameters), but I am trying to save some parameters, cause the values are always the same.

Using Auth Component from behavior

2008-07-07 Thread Siegfried Hirsch
Hello, just a simple question, I guess: How could I load the AuthComponent from a behavior, that I am writing ? I think it should work with something like: App::import('Component', 'AuthComponent'); $this-Auth = new AuthComponent();

Using Auth Component from behavior

2008-07-07 Thread Siegfried Hirsch
Hello, just a simple question, I guess: How could I load the AuthComponent from a behavior, that I am writing ? I think it should work with something like: App::import('Component', 'AuthComponent'); $this-Auth = new AuthComponent(); from within the behavior. But if I want to

Re: New CakePHP, CodeIgniter, Zend Framework and Ruby on Rails Benchmark

2008-07-01 Thread Siegfried Hirsch
On Tue, Jul 1, 2008 at 5:33 PM, John David Anderson [EMAIL PROTECTED] wrote: Two things to note: and one more question: the pages_controller is overridden for the test. Could this be a problem ? --~--~-~--~~~---~--~~ You received this message because you are

Re: cake 1.2 r6709 - scaffolding and german umlauts

2008-04-24 Thread Siegfried Hirsch
2008/4/23 MonkeyGirl [EMAIL PROTECTED]: Technically, it doesn't matter which character set you use as far as storing data into a database goes. Whatever you put in, you get the same stuff out. I would recommend using CHARSET=utf8 COLLATE=utf8_unicode_ci however, because this makes the

Re: Twitter Component

2008-04-17 Thread Siegfried Hirsch
I have tried the new version and I still get also the error: Class 'AppHelper' not found The problem is, that cake tries to load the xml.php in the view/helper but should instead load the xml.php from the /cake/libs directory. I am not sure, how I can tell cake to load this specific file. BTW,

Re: Twitter Component

2008-04-17 Thread Siegfried Hirsch
2008/4/17, Siegfried Hirsch [EMAIL PROTECTED]: I have tried the new version and I still get also the error: Class 'AppHelper' not found I was able to get around the errors by doing the following at the start of the file uses('xml'); App::import('Core', array('HttpSocket')); works

Re: Modal / Lightbox?

2008-03-24 Thread Siegfried Hirsch
You mean something like this, if you have proto and script loaded function animateFlashMessage(){ // do the flash disapear (duration 5.0 sec) var f = $('flashMessage'); if (f f.style.display != 'hidden') { new Effect.Parallel([ new Effect.Fade(f,

Re: Different flash layout for public and admin ?

2008-03-24 Thread Siegfried Hirsch
the function flash in SessionComponent in 1.2 has all the parameters you need. There is a key for different message types like flash, error, warning, whatever you like. flash is just the default. This constructs a different id for the div with the flash - like this: div id=errorMessagethis is a

Re: Modal / Lightbox?

2008-03-24 Thread Siegfried Hirsch
stuff it into a whatever.js and load it from you default.ctp layout 2008/3/24, John R [EMAIL PROTECTED]: Excuse me if this is a simple question .. but assuming that is a Javascript function .. how would I call it from the Controller? -- Siegfried Hirsch hhS - Welserstr. 1 - 81373

Re: Modal / Lightbox?

2008-03-24 Thread Siegfried Hirsch
($whatever) { if (validation logic) $this-modal('Success!', 'This is valid!', '/valid'); else $this-modal('FAIL!', 'You are a failure', '/fail'); } That's the part I am missing .. how do you trigger the action from the controller? -- Siegfried Hirsch

Re: Ajax AutoComplete Component issues..

2008-03-06 Thread Siegfried Hirsch
If you use 1.2 take a look at the new manual, I used it and it worked for me: http://book.cakephp.org/view/208/ajax search for autocomplete 2008/3/6, [EMAIL PROTECTED] [EMAIL PROTECTED]: --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Rss bug in 1.2.6311?

2008-02-01 Thread Siegfried Hirsch
Maybe a look into this might help: http://mentalramblings.info/posts/view/cakephp-rss-helper-implementation Now, as I said, the lack of an items / tag is hardly a fatal flaw. What's wrong with just doing this: items?=echo $rss-items($posts, 'transformRSS'); ?/items On Feb 1, 3:49 am, leo

Re: last created, last modified

2008-01-31 Thread Siegfried Hirsch
Hello grigri, 2008/1/31, grigri [EMAIL PROTECTED]: The fields 'modified', 'created' and 'updated' are managed internally within Model::save(). It doesn't matter where you call it from, if you call Model::save() then those fields will work automagically. Note that calling

Re: last created, last modified

2008-01-30 Thread Siegfried Hirsch
2008/1/31, manish [EMAIL PROTECTED]: Yes, this is managed by Cake itself. Check: http://tempdocs.cakephp.org/#TOC62105 What about cake Shells? If I use $model-save() in a Shell, do they created and modified fields also get updated ? I have just the problem and it looks like they are not

Re: Making RSS feeds with CakePHP

2008-01-28 Thread Siegfried Hirsch
, transforming the content with helpers, and *then* use $rss-items after that. -- Siegfried Hirsch --~--~-~--~~~---~--~~ 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: FormHelper methods in 1.2.0.5427

2007-07-15 Thread Siegfried Hirsch
] [justaname]' using FormHelper? -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch http://gadgetgui.de / http://www.rss-blogger.de http://www.newsbee.de NewsBee 2 - customized RSS solutions --~--~-~--~~~---~--~~ You received

Re: Graham Bird's AJAX tutorial in 1.2.x.x

2007-06-27 Thread Siegfried Hirsch
and then mentioned default.thtml.. I believe the new 1.2 branches use default.ctp ( note the extension ). It could be that your thtml files are parsing as plain text? -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch http://gadgetgui.de / http://www.rss-blogger.de

Re: horizontal form fields with css

2007-06-27 Thread Siegfried Hirsch
(Cake 1.2 style) the input method, specify the class to be used $form-input('fieldname',array('class'='floatleft') ); I believe floatleft would be appended to the class 'input' (resulting in 'input floatleft'), but you should test it On 6/26/07, Siegfried Hirsch [EMAIL PROTECTED] wrote: I

Re: horizontal form fields with css

2007-06-26 Thread Siegfried Hirsch
: __ Author: ___ I would like it to be: Title: Author: how would I do that. Thanks for your help Amy would be the input box. -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 M�nchen - (089) 5484 3564 - skype:shirsch http

Re: Rec for ajaxy popup bubbles/tooltips?

2007-06-13 Thread Siegfried Hirsch
on prototype / scriptacolous and found this one: http://prototype-window.xilinus.com/ Sorry, no helper yet, but looks promising. -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch http://gadgetgui.de / http://www.rss-blogger.de http://www.newsbee.de NewsBee 2

Re: manage different applications on same cake installation

2007-05-29 Thread Siegfried Hirsch
/index.php, which you have for every of your apps. -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch http://gadgetgui.de / http://www.rss-blogger.de http://www.newsbee.de NewsBee 2 - customized RSS solutions

Re: 1.2.0.5137alpha: form-textarea and validation doesn't work

2007-05-21 Thread Siegfried Hirsch
This is the way, we use it for a textarea field: echo $form-input('body', array('label'='Description', 'type'='textarea', 'rows'='15')); Take a look at the input implementation again, there you find all the bells and whistles. Siegfried 2007/5/21, DragonI [EMAIL PROTECTED]: Hi, When I'm

Re: AJAX mini dialogs

2007-05-20 Thread Siegfried Hirsch
2007/5/19, Samuel DeVore [EMAIL PROTECTED]: here is one I have used that builds on prototype and scripta stuff http://ajaxian.com/archives/tooltipjs-creating-simple-tooltips there are a ton look in google for tooltip netflix On 5/18/07, Chris Hartjes [EMAIL PROTECTED] wrote: More of a

SWFupload for cake1.2

2007-05-18 Thread Siegfried Hirsch
After trying SWFupload with cake 1.2, I found, that $this-params['form'] no longer is filled. So I recoded some parts of the SWLupload component from James Revillini for cakePHP 1.2. I was not able to post a comment to the original posting in the bakery

Re: params['form'] no longer in cakePHP 1.2

2007-05-17 Thread Siegfried Hirsch
2007/5/17, [EMAIL PROTECTED] [EMAIL PROTECTED]: I haven't used 1.1 for a while, so I cant comment about params['form']. I can confirm that in1.2 you will find your post data in $this-data I was asking because the SWFupload component from the bakery is depending on $this-params['form'] to

Re: Discussion on cake-apps-sites-in-the-wild

2007-05-16 Thread Siegfried Hirsch
Just a simple cakePHP app http://2big.at -- Siegfried Hirsch http://rss-blogger.de --~--~-~--~~~---~--~~ 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

Re: Auto Complete

2007-05-11 Thread Siegfried Hirsch
#comment-907 and reading the manual again and again also helps ;) Siegfried -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch http://gadgetgui.de / http://www.rss-blogger.de http://www.newsbee.de NewsBee 2 - customized RSS solutions

Re: RSS Import

2007-05-09 Thread Siegfried Hirsch
;) I have a plugin ready to be used just for that case. I have not yet put it into the bakery, because of the many parts of a plugin. But I guess, if somebody wants it, I can upload a zip file on my domain. Siegfried -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 München - (089) 5484 3564

Strange problem with $javascript in renderElement

2007-03-26 Thread Siegfried Hirsch
Hello, I have a strange problem. Developing in Win2k with php5 eveything is working. But porting to Linux with php4, I get an error when calling $javascript-link(...); in a renderElement('header'); First I thought it could be the readerElement, which has problems, but putting the same code into

Re: Navigation Component / Helper

2007-02-17 Thread Siegfried Hirsch
Model within my menu and i don't really know how to access the data from the Category Model within the elements. Any further help for this? Thanks, Frank -- Siegfried Hirsch hhS - Welserstr. 1 - 81373 M�nchen - (089) 5484 3564 - skype:shirsch http://gadgetgui.de / http://www.rss

Re: using urlencoded params

2006-10-14 Thread Siegfried Hirsch
. Is there any way I can setup cakephp to not urldecode de params of specifc controllers/actions? Thanks in advance, Rodrigo. -- Siegfried Hirsch http://www.rss-blogger.de / http://seconds11.com http://www.newsbee.de NewsBee 2.0 - customized RSS solutions https://www.openbc.com/net/sxsw/ - Forum

using an url as a parameter in cake

2006-08-23 Thread Siegfried Hirsch
: function show($url) { debug($url); } always gets me an 404 error, because the / in the $url are encoded into %2f but they are still not recognized. Is this a cake or a mod_rewrite problem ? Siegfried -- Siegfried Hirsch http://www.rss-blogger.de / http://seconds11.com

Re: findAll and sorting

2006-06-22 Thread Siegfried Hirsch
2006/6/22, Repsah [EMAIL PROTECTED]: Did you try $sortby = Model.field1 desc, Model.field2 desc; the solution is: $sortby = array(field1 = DESC, field2 = DESC); -- Siegfried Hirsch http://www.rss-blogger.de / http://seconds11.com http://www.newsbee.de NewsBee 2.0 - customized RSS solutions

findAll and sorting

2006-06-21 Thread Siegfried Hirsch
the list ascending. While I have a workaround by using query, I wanted to know if some else had this problem before Siegfried -- Siegfried Hirsch http://www.rss-blogger.de / http://seconds11.com --~--~-~--~~~---~--~~ You received this message because you

Re: Automatically generating table's?

2006-05-17 Thread Siegfried Hirsch
divs times the number of items you want in the row. So I ended just with printing the elements (121) which produce the grid. echo div id=casts; foreach ($data as $cast) { echo div id=castimg ./div; } good luck -- Siegfried Hirsch http://www.rss-blogger.de / http://seconds11.com http