Re: One cake application, multiple sites

2007-06-28 Thread quincy
, setup a switch based on the $site_id if you need more help, lemme know On 6/27/07, quincy [EMAIL PROTECTED] wrote: I apologise in advance becasue I know this has come up many times already, but I cannot seem to find the information I'm after. I want to be able to have a single

One cake application, multiple sites

2007-06-27 Thread quincy
I apologise in advance becasue I know this has come up many times already, but I cannot seem to find the information I'm after. I want to be able to have a single installation of my cake app (a CMS) on a server, and run several sites from the same installation by simply using a different

Does this Model-save() extension look dangerous to anyone?!

2007-04-23 Thread quincy
I have been tearing my hair out for a few days trying to figure out how i can do my own validation for things more advanced than regex, and still retain the status that invalidate() creates without it being reset by save(). Now i suddenly realised i could just extend AppModel like this: -

Re: Does this Model-save() extension look dangerous to anyone?!

2007-04-23 Thread quincy
to the drawing board!! On 23 Apr, 11:19, quincy [EMAIL PROTECTED] wrote: I have been tearing my hair out for a few days trying to figure out how i can do my own validation for things more advanced than regex, and still retain the status that invalidate() creates without it being reset by save

Re: Does this Model-save() extension look dangerous to anyone?!

2007-04-23 Thread quincy
, quincy [EMAIL PROTECTED] wrote: I really haven't thought this through!! The above technique retains the invalidate() status but it hasn't stopped cakes regex validation passing and saving the field. So in essence, i can spit back an error message saying no duplicates etc

Validation callback problem

2007-04-20 Thread quincy
Afternoon all, I'm trying to do some validation in my controller, and if it fails, i call $this-XYZ-invalidate(field) BEFORE i then attempt to save the posted data. Now it seems to me like it resets the validationErrors in the model when it calls save, so my invalidate() call does no good

Extending AppModel and/or AppController

2007-04-16 Thread quincy
I was thinking about extending AppModel and/or AppController to add some application-wide functionality and maybe alter a few things to fit my way of working etc. Now i know this has been discussed here before but from what i've read (threads that were 6-9 months old) i'm not happy with the

Re: Extending AppModel and/or AppController

2007-04-16 Thread quincy
Thanks Tarique, I'm surprised i hadn't looked at that before. I guess i don't have as much time as i'd like to get to know the ins and outs of Cake whilst i'm at work!! :) Cheers On 16 Apr, 12:26, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 4/16/07, quincy [EMAIL PROTECTED] wrote: seems

Re: AJAX - Possible to update DB with textarea content from the textarea onblur()??

2007-03-21 Thread quincy
Right, i have been trying various things with mixed success. I am trying this: - echo $javascript-event(test123, blur, new Ajax.Request('/cms/ function/test123', {parameters: Form.serialize('test123')} );, false); but i then get an error: - $(form).getElements is not a function

Re: AJAX - Possible to update DB with textarea content from the textarea onblur()??

2007-03-16 Thread quincy
I take it no-one has any ideas about this then? I am sure there must be a way of saving a textareas contents to a DB on the onblur() action somehow. Any pointers of anything related would be helpful, we're totally stuck on this one!! On 13 Mar, 10:53, quincy [EMAIL PROTECTED] wrote: I have

AJAX - Possible to update DB with textarea content from the textarea onblur()??

2007-03-13 Thread quincy
I have searched around the board and found some bits that look useful but haven't been able to figure this out. We need to have ajax functionality so that when the user tabs out of a textarea, or onblurs() it in any other way, it auto updates a database with the contents of that textarea. Any

Re: Can i setup beforeFilter() to work on certain actions but not others?

2007-02-01 Thread quincy
That worked a treat Jon, thanks a lot. And apologies for the multiple posts, I have no idea how that happened, perhaps a moderator could delete all the spares!! On Jan 31, 10:30 pm, Jon Bennett [EMAIL PROTECTED] wrote: I need to bypass beforeFilter() on certain actions in my controller but

Can i setup beforeFilter() to work on certain actions but not others?

2007-01-31 Thread quincy
Greetings one and all, I need to bypass beforeFilter() on certain actions in my controller but leave it in place for the rest. Is there a simple way to do this? Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
I installed the live HTTP Headers extension, and when i hit submit on my form, it appears to go nowhere but the headers (as far as i can tell) appear to indicate that its trying to redirect and request the right page. I get: - POST /cms/cms/user/processlogin/ HTTP/1.1 .. HTTP/1.x 302

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
the action but not rendering the page it seems. Help!! On Jan 30, 11:03 am, AD7six [EMAIL PROTECTED] wrote: Hi Quincy, On Jan 30, 11:08 am, quincy [EMAIL PROTECTED] wrote: I might point out (don't think i did initially) that i'm using Ajax. Maybe that has something to do with it.If you

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
on it, wheres as the login page doesn't? My head hurts! On Jan 30, 12:37 pm, AD7six [EMAIL PROTECTED] wrote: On Jan 30, 1:03 pm, quincy [EMAIL PROTECTED] wrote: Hey, Thanks for the pointers. After some confusion and searching here i have overwritten the redirect() function in AppController

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-30 Thread quincy
coming up so i hope i can give something back as i get more experienced. Cheers! p.s. don't you just simultaneously love/hate these kinds of bugs/ mistakes/cock-ups!! On Jan 30, 2:41 pm, AD7six [EMAIL PROTECTED] wrote: Hi quincy, Please clarify this contradition: I might point out (don't

Redirection problem - sometimes works, sometimes doesn't!!

2007-01-29 Thread quincy
I have a very simple login authentication system, and depending on the outcome I either redirect to an action in a different controller or post an error message in the session and redirect back to the login page: - $username = $this-data['User']['username']; $password =

Re: Redirection problem - sometimes works, sometimes doesn't!!

2007-01-29 Thread quincy
Hi Grant, Basically, the do you want to save this password... browser dialog pops up, i hit no and the dialog dissapears, then the page just sits there. it doesn't redirect, or clear the form input fields, or anything. Just sits there!! Very frustrating!! On Jan 29, 11:43 am, Grant Cox

Anybody got WysiwygPro editor working with Cake?

2007-01-29 Thread quincy
Hey, I wanted to use WysiwygPro (http://www.wysiwygpro.com/) in my new CMS project but i couldn't get it to work. After nearly a day spent tearing my hair out I've gone with TinyMCE using the Bakery tutorial as a starting point. Its very easy to set up but my boss(you guessed it) would

URLs with Ajax confusion

2007-01-25 Thread quincy
Hi, I was recently using $this-render(xyz, ajax) until i realised that if a user typed a URL directly it would render a messed up non-ajax page. So I promptly removed the ajax parameter and now the pages render correctly when the URL is entered directly. I take it from my travels here that the

$cacheQueries doesn't appear to be having any effect - help!!

2007-01-22 Thread quincy
any light on what is going wrong here. Thanks in advance Quincy --~--~-~--~~~---~--~~ 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

Can i make an entire table row an ajax link?

2007-01-17 Thread quincy
I'm listing records in a table, and each has a link view which uses ajax to display the full record detail below the list, and alter the css so the row in the list table is highlighted. In a nutshell, i want to be able to click anywhere on a row in the table and have it become selected that

Re: Can i make an entire table row an ajax link?

2007-01-17 Thread quincy
: On 1/17/07, quincy [EMAIL PROTECTED] wrote: I'm listing records in a table, and each has a link view which uses ajax to display the full record detail below the list, and alter the css so the row in the list table is highlighted. In a nutshell, i want to be able to click anywhere

Find functions don't seem to be working, can anyone help?

2007-01-16 Thread quincy
Hi all, getting on pretty well with a CMS in cake but having trouble with find functions. For example: - $result = $this-User-query(SELECT * FROM user WHERE username = '{$username}'); That will return an array with the expected result. However, this :- $result =

Re: Find functions don't seem to be working, can anyone help?

2007-01-16 Thread quincy
Cheers nate. It seems after analysing the debug output and a bit of head scratching, that I had my model associations set up wrong, so it was failing at the stage of building the SQL query. I guess my understanding of the associations in Cake isn't quite up to scratch!! Thanks a lot, I'm