Re: ACL renamed database table

2012-11-11 Thread iFemke
Thanks that did it! I forgot that part, stupid mistake. Op vrijdag 9 november 2012 19:46:13 UTC+1 schreef cricket het volgende: > > The table names normally follow from the model names: Group -> groups. > If you want to do something different you'll need to add a $useTable > var at a minimum.

Unit testing models and mocking

2012-11-11 Thread Reuben
I have a model method that I've written a unit test, but the method under test calls another method on the same model that I would like to mock. It seems that if I mock the method on the model, fixture information gets lost (that is, I think the datasource gets reset). The test is as follows:

[URGENT] Acl::check() is not working

2012-11-11 Thread polutan polution at all
i have group's access rights setting page http://imageshack.us/f/600/accessrightslist.png/ . now i using Acl::check() to check whether an access item is allowed or denied, if allowed the checkbox is checked. I create my checkbox form using an helper this is my helper code http://pastie.org/53

Request JSON data from POST

2012-11-11 Thread derwu22
This is right way? public function add() { if ($this->request->is('post')) { $this->Group->create(); *$this->request->data = $this->request->input('json_decode'); // this line* if ($this->Group->save($this->request->data)) { $this->

Changing what column the foreign key drop down is referencing

2012-11-11 Thread rdepena
Hello, I am developing a web page that allows users to create a report from a web form. Currently, I've created a client table called "People" and a report table called "Inspections" (see the SQL and associated scaffolded views). *CLIENT TABLE* * * CREATE TABLE HostMyInspectionDB.people ( id in

CakePHP 2.2 and Autocomplete Jquery

2012-11-11 Thread franscelstain
Is there someone who can help me make jquery autocomplete using CakePHP 2.2 -- 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

Re: Display user's name after login (PHP)

2012-11-11 Thread franscelstain
// Controller $this->Session->read('Auth'); Pada Sabtu, 10 November 2012 7:48:39 UTC+7, thelee menulis: > > hello.im creating a website.i want to show the user name after they > logged in and for those who dont register i want to leave any msg. when the > user login it will show welcome "the us

delete image "file" in server from controller

2012-11-11 Thread Chris
hi guys,... can someone help me please,... I got image files in server: /img/group-banners/original/39-afgmeq4hbsq7fmx2fywc.jpg /img/group-banners/banner/39-afgmeq4hbsq7fmx2fywc.jpg where "39" is a asigned as group id as unique id for a file while its uploading, and "afgmeq4hbsq7fmx2fywc" i

RE: No CSS / JS / Images (config file here)

2012-11-11 Thread Advantage+
server { listen 80; server_name my_site.com www.my_site.com; #server logs access_log /var/www/my_site.com/private/logs/access.log; error_log /var/www/my_site.com/private/logs/error.log; rewrite_log on; # check memcac

No CSS / JS / Images

2012-11-11 Thread Advantage+
I have just moved over to an nginx setup. I had this site built before but took it down, so now putting it back up but using Cake 2.2.3 I have pretty urls and all that from the existing setup. Only now I have styles-less / script-less / image-less pages. All come up 404 not found. I

Multiple HABTM associations in containable find

2012-11-11 Thread Stuart Bridger
I have HABTM associations between two models but can only get find to return one level. I can return several levels with other associations but think I must be doing something wtong with HABTM. Controller/SchedulesController.php $this->Schedule->find('first', array( 'contain' => array(

Re: Migrating from local host...Issues with CSS

2012-11-11 Thread April DeRossett
At this point...BTW, I have several codeigniter applications I am hosting on this same server environment and I have no issues with mod_rewrite. On Sun, Nov 11, 2012 at 12:18 PM, April DeRossett wrote: > ? I have followed all of the steps and still nothing. Has anyone else > had this issue? M

Re: Migrating from local host...Issues with CSS

2012-11-11 Thread April DeRossett
? I have followed all of the steps and still nothing. Has anyone else had this issue? My server is a dedicated virtual server on Godaddy - not virtual hosting; virtual server. My head is starting to hurt. On Sun, Nov 11, 2012 at 3:44 AM, Paul Willis wrote: > The CSS not loading is a classi

Re: Migrating from local host...Issues with CSS

2012-11-11 Thread Paul Willis
The CSS not loading is a classic sign That your mod_rewrtie isn't working on he server http://book.cakephp.org/2.0/en/installation/advanced-installation.html PW On 11 Nov 2012, at 02:41, April wrote: > This is kicking my butt...I have migrated my application from my localhost to > my server