Re: escaping values in $form->input

2008-05-27 Thread David C. Zentgraf
If you mean "escaping to HTML entities", just override the automatic value: $form->input('nacionalitat', array('value' => html_entities($this- >data['User']['nacionalitat']))); I don't think there's an escape function built into the form helper, but I could be wrong. On 27 May 2008, at 18

Re: Email component problem

2008-05-27 Thread jeff aigner
You might want to check with your hosting company and make sure you have a PTR record set up for your domain so that other people can do a reverse lookup on your IP address and have it resolve to your mail server's domain name. Many email servers do a reverse lookup on the IP address of the sendi

Re: escaping values in $form->input

2008-05-27 Thread jeff aigner
Could you be a little more clear. I'm not sure what "escaping values in $form->input" really means. On May 27, 4:22 am, leo <[EMAIL PROTECTED]> wrote: > Is there a way to do this, yet? > > I have tried: > echo $form->input('nacionalitat', array('escape'=>false,'options'=> > $nacionalitats ));

Re: Calendar

2008-05-27 Thread David C. Zentgraf
I was looking at this calendar helper a while back, but wasn't really convinced. I ended up using the YUI calendar and a handful of hand coded JavaScript... http://developer.yahoo.com/yui/calendar/ var loader = new YAHOO.util.YUILoader({ require : ["c

Re: Calendar

2008-05-27 Thread Kyle Decot
Thanks for the help, I've downloaded it but i'm a little confused on how to use it. Could you give me an example? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to c

Re: Unable to inherit from aclnode

2008-05-27 Thread John David Anderson
On May 27, 2008, at 8:50 PM, azlanms wrote: > > I'm trying to create a model called 'Tree' based on the AclNode class > as: > > class Tree extends AclNode { > var $name = 'Tree'; > var $validate = array( >'title' => VALID_NOT_EMPTY > ); > > but I got this error message: > > Fatal error: C

Unable to inherit from aclnode

2008-05-27 Thread azlanms
I'm trying to create a model called 'Tree' based on the AclNode class as: class Tree extends AclNode { var $name = 'Tree'; var $validate = array( 'title' => VALID_NOT_EMPTY ); but I got this error message: Fatal error: Class tree: Cannot inherit from undefined class aclnode in /usr/lo

Re: Calendar

2008-05-27 Thread azlanms
Check out this link: http://cakeforge.org/snippet/detail.php?type=snippet&id=113 I've been using it for my office appointment system. I've also added tooltip when we move over the mouse at a particular appointment on the calender page to display the details. I use the javascript library called

Re: Performance question

2008-05-27 Thread jarmstrong
Grant Cox-2 wrote: > > 3. Put some more ram in that thing! $50 for a gig or so is worth how > much of your development time? > I second that 10k-20k records really arent much unless as mentioned you are binding to many records when you do not need to be. Also you should turn on debugging/m

Re: Performance question

2008-05-27 Thread b logica
Also, capture the queries Cake is using and run them directly from a terminal session to see how the database is performing on its own. Check that you've indexed your tables properly. On Tue, May 27, 2008 at 6:30 PM, Grant Cox <[EMAIL PROTECTED]> wrote: > > Well, you haven't given us any indicati

Re: Something is up with the documentation?

2008-05-27 Thread Chez17
For me, the bakery isn't working at all. I have had constant issues with the manual. Anyone know whats going on? Hopefully its because they are so busy preparing 1.2 that they have no time to worry about a functioning website. On May 26, 3:25 pm, Mike van Lammeren <[EMAIL PROTECTED]> wrote: > The

SelectTag in Array

2008-05-27 Thread Sanfly
Hi Guys Im new to cake and still trying to get my head around everything, so sorry if the answer to this is obvious. I have been looking around for the answer but cant seem to find it I have a form from an old wesite I'm trying to bring into cake. In the form I have a number of items that pass

Re: Passing variables to the layout.

2008-05-27 Thread Abdullah Zainul Abidin
You might want to try putting the $this->set in your beforeFilter or beforeRender function in the app/app_controller.php file. It'll be usable even in your layout. On Wed, May 28, 2008 at 5:42 AM, handsofaten <[EMAIL PROTECTED]> wrote: > > This works for views, but is it possible to pass variable

Re: Performance question

2008-05-27 Thread Grant Cox
Well, you haven't given us any indication of what is taking 9 seconds - is it a SQL query, and if so what is it? Anyway, some suggestions: 1. Unbind any of those associations that you don't need for any particular query. While belongsTo associations are done with a JOIN (comparatively fast), yo

View caching and pagination in Cake 1.1

2008-05-27 Thread Miguel XT
Hi, I'm trying to use view caching with a ajax paginated view results set. I'm getting some weird behavior and I think is a bug. I turned on caching in core.php, then I cached an entire controller. When go the controller/index (the paginated view) the first time is OK as there isn't any caching

Re: Passing variables to the layout.

2008-05-27 Thread handsofaten
This works for views, but is it possible to pass variables to layouts? I don't see anything about this in the docs, other than the standard $title_for_layout and $content_for_layout. Thanks. On Apr 16, 1:42 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > in the controller > $testArr

Performance question

2008-05-27 Thread Miguel XT
Hi, I'm using CakePHP 1.1 for a inventory/invoicing software. I have 44 tables. The largest ones have ~10,500 and ~26,000 rows. It's all running on and old Pentium 4 1.8 GHZ with 256MB RAM and WinXP. The same computer is running MySQL 5.0.37, Apache 2, and PHP 5. Lately it has been running ver

1.2 Cache issues

2008-05-27 Thread Chez17
I am trying to recode my blog as a project to learn cakePHP, and the only thing not working now is the cache. I have turned it off completely using Configure::write('Cache.disable', true); and I have even inserted in the code and nothing is working. I have set up FireFox to not cache anything so

Re: Email component problem

2008-05-27 Thread 3lancer.eu
Aaah, you mention that you MUST use sendmail... Well, possibly answer is in the sendmail logs or the mail headers. Piotr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Re: Email component problem

2008-05-27 Thread 3lancer.eu
Hi, As for me, it's highly probable that the e-mails get lost due to some anti-spam filters. Did you try sending it properly, with smtp? Just create 'noreply' account and have a go... P.S. Remember to set 'from' field for the smtp, otherwise you may run into errors. Piotr --~--~-~--~---

Re: Htmlhelper link and passing value to controller function

2008-05-27 Thread Chris Hartjes
On Tue, May 27, 2008 at 1:51 PM, Mike <[EMAIL PROTECTED]> wrote: > > Ok, I think I solved it. The proper value was being passed into the > function after all. The problem was in how I was structuring my find > in the controller function. I had: > > $conditions = array(); > $conditions['Transaction

Re: Htmlhelper link and passing value to controller function

2008-05-27 Thread Mike
Ok, I think I solved it. The proper value was being passed into the function after all. The problem was in how I was structuring my find in the controller function. I had: $conditions = array(); $conditions['Transaction']['clientID'] = "= {$theclientid}"; $results = $this->Transaction->findAll($c

Calendar

2008-05-27 Thread Kyle Decot
Does anyone know of a good calendar helper, or component or something? I need to have a ajax calendar, and be able to put information inside of certain dates. Thanks as always. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: session->check error but I'm not using sessions yet

2008-05-27 Thread scoby
I was trying use a variable I created called $sessions which seems to be reserved for the cake session variable ( or maybe php? ) Anyhoo, just changing the name of my variable fixed the problem. Thanks. On May 26, 3:54 pm, "b logica" <[EMAIL PROTECTED]> wrote: > Check that your app/core.php has

Re: session->check error but I'm not using sessions yet

2008-05-27 Thread scoby
That line is present and correct in app/config/core.php On May 26, 3:54 pm, "b logica" <[EMAIL PROTECTED]> wrote: > Check that your app/core.php has: > > Configure::write('Session.start', true); > > On Mon, May 26, 2008 at 9:04 AM, scoby <[EMAIL PROTECTED]> wrote: > > > I get the following error

Accessing plugin functions from app controller?

2008-05-27 Thread Matt Huggins
I'm building my first ever CakePHP plugin (1.2), and I can't find any help on how to access plugin functions from within a controller that resides within my application. I've found that it can be done using requestAction, but I do not wish to access my plugin's controller actions in this way if i

Htmlhelper link and passing value to controller function

2008-05-27 Thread Mike
Hi: I am using Cake 1.2 and I love it so far! I have a small problem that I cannot solve. I have the following in one of my views: echo $html->link( 'View My Current Inventory', '/transactions/viewinventoryforclient/'.$session- >read('customclientid') ); In my controller for

Email component problem

2008-05-27 Thread bondo
I'm having problems using the native email component using templates. It only seems to send messages to certain email addresses. I'm not sure if this is a Cake problem or a web host (hostmonster) problem. For example, if I send to my gmail account it works fine. If I send to an alternate address,