Re: Problems with ajax and security component.

2011-12-12 Thread porangi.chris
Hi Miles, Jose, Thanks for your input but I've tried that and it hasn't helped in the slightest. Does it make any difference that I'm using Cake 2. Currently I have: function beforeFilter() { echo "BeforeFilterLog"; if(isset($this->Security) && $this->action == 'tracker') {

Problems with ajax and security component.

2011-12-08 Thread porangi.chris
Hi, I'm having issues with running Ajax and the security component alongside each other. Security works fine on the other forms. Ajax works fine if Security is commented out. Security is included in the App Controller alongside other components 'Security' => array( 'csrfExp

Class 'File' not Found / Class 'Folder' not found in Version 2.0 (worked OK in version 1.3)

2011-11-07 Thread porangi.chris
I wrote an import routine for pulling stuff from a csv file in version 1.3 and it worked perfectly. I have since upgraded to version 2.0 and I cannot get the same code to work. I have tried adding File to the App:uses and App:imports but this doesn't change anything. Folder was a second test jus

Routes Problem

2011-10-19 Thread porangi.chris
Hi, I'm trying to create a custom route that matches the url used by a previous system to a new version written in cake. Basically I have urls that are domain.com/r/i/some-name and I'd like to match them to the categories -> display action with two named parameters id and url. Id maybe null as

Re: Manual entry for habtm linking table.

2011-09-18 Thread porangi.chris
e: > If using Cakes HABTM automagic the table should be named > classes_teachers and have the following fields > > id (primary_key, auto_inc) > class_id > teacher_id > > After that it's a case of > INSERT INTO classes_teachers (class_id, teacher_id) SELECT class_id, >

Manual entry for habtm linking table.

2011-09-15 Thread porangi.chris
hi, First time user of cake with CI background, I have two tables teachers and classes that share a many to many relationship e.g. Teacher-Classes. I'm having to import the data from CSV files that have been exported from another system that we have limited access to.I've got the classes wor