Re: Cakephp website/app to a new domain and hosting

2014-06-30 Thread adam_g2000
Can I take it that you have had this site built for you, but are not the original developer? If this is the case you would be wise to find someone local to assist you. Some hosting companies will offer to move a site like this for you. The one we frequently use here in New Zealand will do

Re: Sort the content output in an edit/add page for belongsTo

2011-04-06 Thread adam_g2000
://www.classoutfit.com On 6 Apr 2011, at 00:27, adam_g2000 wrote: Hi Guys, Can't wait until I can throw away my newbie card, but here it is again. Something which is probably simply but looking through the cook book and searching has pulled up nothing. I've got a model called resources

What's the deep difference between App::import and ClassRegistry::init?

2011-04-06 Thread adam_g2000
Hi Guys, Before continuing, I have a basic understanding of what they do (and their syntax), but have hit upon something I find strange, and worrying. I needed to import a foreign model into a controller and initially tried this: App::import('Model','Category'); $cat = new Category(); $cats =

Re: Is it time for ACL?

2011-04-05 Thread adam_g2000
book listed on that project, try out theACL+Auth setup on a dummy project first and then go ahead. Thats what I would do. On Apr 4, 12:13 am, adam_g2000 a...@designcollective.co.nz wrote: Hi All, I've been working on a project, that is essentially an artists portfolio. She's just

Sort the content output in an edit/add page for belongsTo

2011-04-05 Thread adam_g2000
Hi Guys, Can't wait until I can throw away my newbie card, but here it is again. Something which is probably simply but looking through the cook book and searching has pulled up nothing. I've got a model called resources, part of which belongsTo subcategories. In add/edit views I've used the

Is it time for ACL?

2011-04-03 Thread adam_g2000
Hi All, I've been working on a project, that is essentially an artists portfolio. She's just dropped a bombshell, previously, the authentication was simple. You either had rights to view the site and it's CMS or you had the rights to view only the site. Now she wants to *lock* certain areas of

Newbie having trouble with 'html helper', need to add 'rel' to url...

2011-03-24 Thread adam_g2000
Hi Guys, I'm using the following code: echo $this-Html-image('photos/' . $resource['Resource']['filename'], array( 'alt' = $resource['Resource']['title'], 'url' = array('controller' = 'resources', 'action' = 'lightbox', $resource['Resource']['filename_large']) )); What I need to

Re: Join Table being wiped.

2011-03-01 Thread adam_g2000
it!), but for the sake of learning, I'll also chase up this issue so I know what to do next time. Once again, thanks! Adam. On Mar 2, 5:51 am, cricket zijn.digi...@gmail.com wrote: On Mon, Feb 28, 2011 at 9:32 PM, adam_g2000 a...@designcollective.co.nz wrote: Hi Guys, I've got a HABTM

How do I circumvent the default HABTM deletion behaviour

2011-03-01 Thread adam_g2000
I had a problem with updating data in a loop, during the update, the assoc. HABTM data is wiped in the join table. I was led back to the Cookbook where I found this is default behaviour (last section, this page http://book.cakephp.org/view/1034/Saving-Related-Model-Data-HABTM). What isn't clear

Re: How do I circumvent the default HABTM deletion behaviour

2011-03-01 Thread adam_g2000
asking and in the end after a few attempts it was just more work so let Cake do its thing. K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of adam_g2000 Sent: Tuesday, March 01, 2011 5:18 PM To: CakePHP Subject: How do I circumvent

Join Table being wiped.

2011-02-28 Thread adam_g2000
Hi Guys, I've got a HABTM relationship between subcategories and resources. There is a resources_subcategories join table. I've written a method on subcategories that changes the order field in a record by decrementing it. It's a bit like the tree behaviour (which I may resort to if I cannot get

Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
]['order'] )); K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of adam_g2000 Sent: Thursday, February 24, 2011 12:07 AM To: CakePHP Subject: afterDelete not running as intended Hi Guys, I have this method I've written

Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
://www.classoutfit.com On 24 Feb 2011, at 03:36, adam_g2000 wrote: Hi Guys, I have this method I've written... function tidyup() {    //Re-sort orders to remove the 'hole'    // Create an array of the image table contents of IDs and Orders.    $conditions = array

Re: afterDelete not running as intended

2011-02-24 Thread adam_g2000
-Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of adam_g2000 Sent: Thursday, February 24, 2011 4:36 PM To: CakePHP Subject: Re: afterDelete not running as intended Hi again Jeremy! Thanks for that, there's my sanity check! I've done

afterDelete not running as intended

2011-02-23 Thread adam_g2000
Hi Guys, I have this method I've written... function tidyup() { //Re-sort orders to remove the 'hole' // Create an array of the image table contents of IDs and Orders. $conditions = array( 'fields' = array('id','order'),

Re: Variable scope problem

2011-02-14 Thread adam_g2000
, adam_g2000 wrote: The edit method in my controller is successfully being passed a variable called $categoryID. I'm using the variable to query another model, which happens successfully and the title field from the model is displayed in the view via the variable defined here. App::import

Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
,                 $category         ) ); Note that the 'Text' has gone but the array is the same. Jeremy Burns Class Outfit jeremybu...@classoutfit.comhttp://www.classoutfit.com On 10 Feb 2011, at 21:25, adam_g2000 wrote: Hi Guys, Firstly, this is my first post, so please

Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
; $this-set('subcategories', $subcategories); } On Feb 14, 11:48 am, adam_g2000 a...@designcollective.co.nz wrote: Thank you Jeremy, you've saved me a great deal of time going forward. I now really have got to grips with the base routing and have redeveloped the work done so far using

Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
, adam_g2000 wrote: On Feb 14, 11:48 am, adam_g2000 wrote: However I still have the problem with redirect. It doesn't seem to be sending the variable, or my controller is not reading it. When I reference the variable in the view, I get the error Notice 8: Undefined variable: categoryID [APP

Re: Moving servers

2011-02-13 Thread adam_g2000
Has anything changed in the location of the filestructure that would need anything to be altered in the .htaccess files in you folders? In webroot/index.php there is a line, around the early 50's, that defines a static variable for the path to the core files, CAKE_CORE_INCLUDE_PATH Is it

Re: Redirect URL format not as expected.

2011-02-13 Thread adam_g2000
:02 pm, adam_g2000 a...@designcollective.co.nz wrote: Thanks for pointing that out Ryan, I'm sorry I should have been more clear. I know why the error is occurring in the page (I can see currently there is the opportunity for it not to be set, and will revise that once I've finished sorting out

Variable scope problem

2011-02-13 Thread adam_g2000
The edit method in my controller is successfully being passed a variable called $categoryID. I'm using the variable to query another model, which happens successfully and the title field from the model is displayed in the view via the variable defined here. App::import('Model','Category'); $cat =

Redirect URL format not as expected.

2011-02-11 Thread adam_g2000
Hi Guys, Firstly, this is my first post, so please be gentle and my apologies for any inevitable faux pas should I make any. Secondly, I am aware there seems to be much confusion around redirect, I have been studying both the Cookbook, CakePHP Application Development (Book) and a series of