Re: cookbook experience

2011-02-24 Thread rj
that should be pretty robust if finetuned a bit. On Feb 24, 1:57 pm, cricket zijn.digi...@gmail.com wrote: On Wed, Feb 23, 2011 at 6:36 PM, Ryan Schmidt google-2...@ryandesign.com wrote: On Feb 23, 2011, at 13:14, rj wrote: One last note: getting rid of the flash elements which are emedded

cookbook experience

2011-02-23 Thread rj
we :-) Just my 2 cents, rj --- IE7 JS error details: User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0;) Timestamp: Wed, 23 Feb 2011 18:47:43 UTC Message: 'text' is null or not an object Line: 313 Char: 4 Code: 0 URI: http://book.cakephp.org/theme/frosted/js/app.js?v=7 -- Our newest

Security component and combine requireSecure() and requireLogin()

2010-11-23 Thread rj
Hello, I try to use the security component in cakePHP 1.3 and want to combine the requirements to establish an SSL connection with a simple security login. First I want to redirect to a secure connection. Then transmitting the password should be okay. Both methods work fine as long as long as I

Re: Append a value to multiple records

2010-10-07 Thread rj
Thanks a lot for your answer. I will do as you suggest: get the original field values, merge with the new ones and then updateAll. Just as a curiousity, right now I have made it work with some kind of SQL injection: Before calling updateAll I modify the form values and add the MySQL statement

Append a value to multiple records

2010-10-05 Thread rj
Hello, I have a single form to edit multiple records. Saving the form updates all selected records (using updateAll), e.g. id value 1 abc 2 NULL 3 def becomes 1 xyz 2 xyz 3 xyz when the new value xyz is submitted via this form. So far so good, but now I need to change that behaviour and append

Re: I can't slug the words apple purée

2010-09-16 Thread rj
Hi, I on OSX isn't that Apache? If I recall correctly, Apache by default does not serve UTF-8. You might try to change that by specifying AddDefaultCharset UTF-8 On Sep 15, 1:42 pm, Mariano C. mariano.calan...@gmail.com wrote: I have tried the same on Mac OSX with snowleopard nothing changed.

how to get last inserted ids from saveall

2010-09-01 Thread RJ
I am doing a saveall to insert multiple row at once. Is there any way by which i can get the primary ids of all the rows inserted. $this-Model-getlastinsertedid() returns the id of the latest row.. Any ideas? Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: Date based on user's country

2009-06-19 Thread RJ
this.  As long as it works, I don't think there's technically any right way to do it, other than following the MVC standards as best as possible. On Jun 18, 2:22 am, RJ johnren...@gmail.com wrote: I have a site that relays mails everyday to all the users based on the activities in their network

Date based on user's country

2009-06-18 Thread RJ
I have a site that relays mails everyday to all the users based on the activities in their network. Mails are relayed at 22:30(US time)...so any user from asian countries will recieve at 8:30... The problem i am facing is with date, when the mails are relayed, i put date as the subject line and

Email body template in different place

2009-03-24 Thread RJ
In my project i have to send mails for every activity and body content differs for every activity. I want to keep the mail body contents in separate files so that designers can directly change it w/o hushing into php code. Is there any way by which i can get html content from a ctp file in a php

Re: Accessing cake variable from non-cake file

2008-12-10 Thread RJ
Thks for ur reply Rob I tried the session way... but it isn't working In a controller file , i created a session variable : $this-Session-write('status','value'); In non-cake file, i tried accessing that variable : $_SESSION['status'] but gt a blank value Thanks, RJ On Dec 10, 1:55

Re: Accessing cake variable from non-cake file

2008-12-10 Thread RJ
anyone who encountered this kind of a problem On Dec 10, 2:31 pm, RJ [EMAIL PROTECTED] wrote: Thks for ur reply Rob I tried the session way... but it isn't working In a controller file , i created a session variable : $this-Session-write('status','value'); In non-cake file, i

Accessing cake variable from non-cake file

2008-12-09 Thread RJ
variable i.e declared in app_controller.php file My question is can i access a cake-variable from logout.php (non-cake file) Any help wld be appreciated. Thanks, RJ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

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

2008-07-22 Thread RJ
I have a scenario where on checking a main checkbox, all the other checkboxes should be checked eg: main checkbox: $form-checkbox('main',array('onClick' = 'check()')) other checkboxes: $form-checkbox('users',array('id'= $value['User']['id'])) javascript: function check() {

How to track database queries

2008-07-18 Thread RJ
I am having problem in saving the records in the database.The code is if($this-User-create($this-data) $this-User-save()) { //success } else { //Failed } The control always goes to else block .How can i track the problem. Basically is there any way to get the SQL query string.

Re: How to track database queries

2008-07-18 Thread RJ
: Configure::write('debug', 2); RJ schrieb: I am having problem in saving the records in the database.The code is if($this-User-create($this-data) $this-User-save()) { //success } else { //Failed } The control always goes to else block .How can i track the problem

Re: How to track database queries

2008-07-18 Thread RJ
leave it blank it gives me this error. Any help would be appreciated. On Jul 18, 12:57 pm, RJ [EMAIL PROTECTED] wrote: Still not able to figure out the error, i feel its with the query thats formed when Model::save() is called. Could any one tell me how to get the query string when Model::save

Re: How to track database queries

2008-07-18 Thread RJ
On 18 Jul., 10:10, RJ [EMAIL PROTECTED] wrote: got the query by putting the DEBUG level to 2... the error that i get is : Warning (512): SQL Error: 1366: Incorrect integer value: '' for column 'phone_buisness' at row 1 the column phone_buisness is 'int' with default as null. When i

Layout issues

2008-07-18 Thread RJ
I have the following issues regarding the html layout: 1.) How to generate a text input box like: Label http://[ textbox ].xyz.com with direct html , the above is possible but i don't know how to get the text-box value in controller file as it will not be in $data

Re: Layout issues

2008-07-18 Thread RJ
neone to help ??? On Jul 18, 3:46 pm, RJ [EMAIL PROTECTED] wrote: I have the following issues regarding the html layout: 1.) How to generate a text input box like: Label http://[ textbox ].xyz.com with direct html , the above is possible but i don't know how

how to set the root folder

2008-07-16 Thread RJ
, i guess it has something to do with .htaccess file any help wld be appreciated -RJ --~--~-~--~~~---~--~~ 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

Re: how to set the root folder

2008-07-16 Thread RJ
15, 11:15 pm, RJ [EMAIL PROTECTED] wrote: The directory structure is as follows: /htdocs/appName/xyz/app app is the folder that contains all the cakephp files. Now when i hit any url , it appears as: http://localhost/apName/xyz/users/login, but the requirement is such that 'xyz

Re: how to set the root folder

2008-07-16 Thread RJ
anybody to help On Jul 16, 11:21 am, RJ [EMAIL PROTECTED] wrote: can't do it coz subversioning data resides in 'xyz' folder. The directory structure has remain that way... Ne way out? On Jul 16, 11:18 am, Duncan [EMAIL PROTECTED] wrote: If you don't need the xyz dir

Re: Onkeypress event

2008-07-16 Thread RJ
a bit doubt about $ajax-observeField(), when i keep options['frequency'] =1 does it mean it makes ajax call every second when the particular field is focussed or the ajax call is made only when the value in the field is changed... On Jul 16, 10:31 am, RJ [EMAIL PROTECTED] wrote: yes onblur wld

Re: how to set the root folder

2008-07-16 Thread RJ
if somebody can tell me how does the folder app does not appear in the url although all the files are in that folder.. for eg: localhost/project/users( though there is an 'app' folder inside 'project') mebbe can solve my problem. -RJ On Jul 16, 12:40 pm, RJ [EMAIL PROTECTED] wrote: anybody

Onkeypress event

2008-07-15 Thread RJ
I want to implement the following scenario: there are 4 text-boxes ,when user enters his name in the first input box, i want that data(i.e user name) to be auto-filled in the 4th input box after validating it with database(to check uniqueness) . For this i'll need to make an ajax request on

Re: Onkeypress event

2008-07-15 Thread RJ
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 event) .how to do that ? On Jul 15, 5:28 pm, Kyle Decot [EMAIL PROTECTED] wrote: That's going to get to be a lot of

Re: Onkeypress event

2008-07-15 Thread RJ
it doesn't work i guess ... i want to make ajax calls on 'onkeyup' event how to use $ajax-observeField for the same?? On Jul 15, 6:04 pm, Siegfried Hirsch [EMAIL PROTECTED] wrote: what about trying with the $ajax-observeField helper. On Tue, Jul 15, 2008 at 2:45 PM, RJ [EMAIL PROTECTED] wrote

Re: Onkeypress event

2008-07-15 Thread RJ
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 $ajax-observeField for the same

Re: Onkeypress event

2008-07-15 Thread RJ
yes onblur wld be a good option..but m not able to find how to do that in cakephp. could any one help in this as to how to make an ajax call on any event(onBlur.onclick,etc) -RJ On Jul 15, 10:37 pm, Joel Perras [EMAIL PROTECTED] wrote: Problem with using onkeydown

exclude default layout from login view

2008-06-26 Thread RJ
Hi, How should i explicitly exclude the default layout from my login page. For the other views , i need the default layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send