Re: 406 Not Acceptable error on cake.generic.css

2013-04-13 Thread janarthanan manoharan
Try enabling rewrite module in you Apache config. The line should look like the one below. I had the same problem and got it solved by doing so. LoadModule rewrite_module modules/mod_rewrite.so -- Jena On Wednesday, March 2, 2011 9:42:12 PM UTC+5:30, Duke wrote: > > Thanks for your reply, > >

Re: Download file

2013-04-13 Thread Muhammad Asyraf
Actually, im on CakePHP 2.3...i read the documentation but confused on how to implement it. Sorry, im totally new with CakePHP.. On Monday, April 8, 2013 11:41:10 PM UTC+8, Muhammad Asyraf wrote: > > Based from tutorial at > http://www.tuxradar.com/content/cakephp-tutorial-build-file-sharing-app

A more advanced use of ACL?

2013-04-13 Thread Michael Gaiser
I have been thinking about how I want to setup my sites permissions. Here is my concept. I have a site that will assign a basic ARO ('Standard') which has access to the standard areas. In addition to that, moderators can create custom ARO's for the members they are responsible for. When accessing a

Re: ajax content within ajax page call

2013-04-13 Thread Chris
thanks guys,... On Wednesday, April 3, 2013 9:56:48 PM UTC-7, Chris wrote: > > hi guys,... can anyone help please,... > > I have a photo page with lots of ajax function, features in it,... e.g. > Likes, Dislikes, Make Favorite,... and Post a Comment,... I'm calling this > page via ajax with Hi

Re: retrieving data in a view cake 1.3

2013-04-13 Thread Chris
thanks david,... On Tuesday, April 2, 2013 11:25:16 AM UTC-7, david...@gmail.com wrote: > > The easiest way to debug a problem like this is to set up a debugging > environment (like NetBeans and XDebug see > https://netbeans.org/kb/docs/php/debugging.html). You can then set a > break point at

Re: Jquery and Internet Explorer compatibility in cake1.3

2013-04-13 Thread Chris
thank you for your reply eugen,... It's not about that code only (that's fixed removing comma in title " title: 'Report Photo' " on IE7 and +),... I'm having problem on IE10 ,... I have other functions like jQuery autocomplete, etc,... not works until I reload the page "F5". Let say on every

Re: Jquery and Internet Explorer compatibility in cake1.3

2013-04-13 Thread Eugenio
Can you try this code? $(document).ready(function() { $('a.report').click(function(e) { e.preventDefault(); var t = $(this); var dialog = $('
').load(t.attr('href')).dialog({ autoOpen: false, width: 500, modal: true, title: 'Report Photo', }); }); }); and the link: 201

Re: CKEditor and model validation

2013-04-13 Thread Chris
hi frederik,... I have a problem submitting with ckeditor,... this is my form,... but its not passing content to controller,... Html->script('ckeditor/ckeditor'); ?> Form->textarea('content', array('rows' => '3', 'cols' => '5', 'class' => 'ckeditor')); ?> can you share with us please,...

Re: database.php permission

2013-04-13 Thread Chris
"So anybody could know the user and the password.Is it correct?" -- No, It's not correct, nobody can see that file (database.php) unless you give your FTP access, On Saturday, April 13, 2013 9:25:22 AM UTC-7, and wrote: > > In database.php are stored some information about username and

database.php permission

2013-04-13 Thread and
In database.php are stored some information about username and password.How can i protect this file?i would like that is read only for the applications. Now the permissions are: -rw-r--r-- 1 root root 3188 2013-04-10 18:36 app/config/database.php If i am not wrong the file is readeble for the own

CKEditor and model validation

2013-04-13 Thread frederikjacques
Hi all, I was wondering how you can use CKEditor and the model validation array. I got my textareas changed to CKEditors, but now my validation fails. If I remove a rule like non-empty everything works again, but I would rather keep my validation rules :-) Cheers, Frederik -- Like Us on FaceB

Re: invalidFields() returns duplicates?

2013-04-13 Thread Điển vũ
https://cakephp.lighthouseapp.com/projects/42648/tickets/2597-model-invalidfields-add-validation-messages-each-time-it-s-called this answer from *Mark-story:* Yes, this is how it works. Since you are using lower level methods the validationErrors are not reset. You should use create() + save()

RE: Proper Relations Question

2013-04-13 Thread Advantage+
Thanks, I went ahead and built it that way, except the over sight of the employer_id so I will remove that from the contractes_employees table as you noted. Dave From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Jeremy Burns | Class Outfit Sent: Saturday, Apr

Re: Proper Relations Question

2013-04-13 Thread Jeremy Burns | Class Outfit
I would say you need a contracts_employees table that contains the contract_id and the employee_id. When the employee logs in select all contracts with his employee number and when viewing a contract select all employees with that contract number. You don't need the employer_id in it as the empl

Proper Relations Question

2013-04-13 Thread Advantage+
I need to properly configure this model relationship and was looking for some insight. Basically : Company hasMany Employees Company hasMany Contracts I need to allow the administrator for that Company to assign a Contract to and Employee So Employee hasMany Contracts but the Contract <