Re: CakePHP 2.2 and Autocomplete Jquery

2012-11-21 Thread Rob M
This code snippet needs refactoring in order to use JsHelper, but it works: controller code (Controllers/PeopleController.php): function autoComplete() { $this-autoRender = false; $search_string = trim($this-request-query['term']); if (!is_null($search_string) $search_string != '') { $people =

Re: Recursive removed?

2012-11-21 Thread Jonathan Sundquist
Jeremy, I took your suggestion add added Location.state_id and State.id to the fields array and it still returns the same error. Good idea, unfortunately same out come. - Jon On Tue, Nov 20, 2012 at 9:34 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: What happens if

How to convert given date string to utc format ?

2012-11-21 Thread Steve Babs
-- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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 from this group,

Re: How to convert given date string to utc format ?

2012-11-21 Thread Steve Babs
Hi all, How to convert given date string to utc format ? On Wednesday, November 21, 2012 6:28:18 PM UTC+5:30, Steve Babs wrote: -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed

Re: How to convert given date string to utc format ?

2012-11-21 Thread Jonathan Sundquist
Using the time helper you can do the following. $time-format('c', $yourdate); On Wed, Nov 21, 2012 at 7:39 AM, Steve Babs pan.sath...@gmail.com wrote: Hi all, How to convert given date string to utc format ? On Wednesday, November 21, 2012 6:28:18 PM UTC+5:30, Steve Babs wrote: --

Problem with PayPal listener / mysql_real_escape_string: session not logged into the database?

2012-11-21 Thread Daniel
In my controller I have a PayPal IPN listener function which calls the mysql_real_escape_string function. This causes a warning, I think because the session is not logged onto the database: 2012-11-21 14:43:08 Warning: Warning (2): mysql_real_escape_string() [a

Model can't find the table in the database

2012-11-21 Thread and
Hi all, I have this error: *Error: * Database table *models* for model *model* was not found. I have a product model ?php class Product extends AppModel{ var $name='Product'; var $actsAs=array('Acl'=array('type'='controlled')); var

Re: Problem with PayPal listener / mysql_real_escape_string: session not logged into the database?

2012-11-21 Thread Daniel
I don't need the mysql_real_escape_string function anyway because I am using Cake save. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To

Two problems with data when using create and save

2012-11-21 Thread Daniel
I have a create and save calls as shown below. Whilst these actually create a record on the database there are two problems with the data that is saved: 1. the fee field value is 0.00, even though the value of $fee at run time is 0.67. Note that the type of fee on the database is decimal 10,

Re: Two problems with data when using create and save

2012-11-21 Thread Daniel
I cleared out the cache on my server and these problems went away. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: Model can't find the table in the database

2012-11-21 Thread lowpass
Is that literally the error msg? Do you have a model name Model? On Wed, Nov 21, 2012 at 11:43 AM, and andreaesposit...@gmail.com wrote: Hi all, I have this error: Error: Database table models for model model was not found. I have a product model ?php class Product extends AppModel{

Question in mysql function

2012-11-21 Thread Peter Nassef
hello guys i want create function in mysql database to return result of select statement with joins or return result of stored procedure and thx -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

Re: WebHosting Suggestion needed

2012-11-21 Thread Wallace Cardoso Colaco Ricardo
Thanks Guys. I'm going to study the advantages and disadvantages of each one and let my boss pick one out .. Thanks, Happy holidays! On Nov 20, 2012, at 10:42 PM, Alok Mishra wrote: Hi , I think better service provider Bluehost Trusted by Millions as the Best Web Hosting Solution.

FULL_BASE_URL error using requestAction()

2012-11-21 Thread Miles J
I keep seeing this in my debug.log, any ideas? 2012-11-22 03:22:36 Notice: Notice (8): Use of undefined constant FULL_BASE_URL - assumed 'FULL_BASE_URL' in [/var/www/cake/latest/lib/Cake/Core/Object.php, line 87] Trace: Object::requestAction() - CORECake/Core/Object.php, line 87 include -