Re: Record level ACL

2011-09-27 Thread sathyashrayan
Ok I have made the RMAC work (http://jmcneese.wordpress.com/2010/01/28/ rmac-is-dead-long-live-rmac/) I will tell what i have done. 1)Downloaded a fresh cakephp 2)created the users,groups tables 3)acos,aros,acos_aros ("cake schema create DbAcl" in command line) 4)Baked users and used Auth componen

Re: Trying to convince management that Open Source is a good thing

2011-09-27 Thread Thomas Ploch
Well, in a company with 20.000 employees I can imagine that the License fees for Windows Servers (there probably are a lot of them) and MSSQL databases (There probably are a lot of them too) are pretty high. So my main argument would be the financial savings in licensing costs (running costs) that

Re: HTML/CSS in Cake

2011-09-27 Thread Sam Sherlock
Html & css are the same. Your html will be in ctp files in the views folder. You can use the html helper and the form helper eases life a good deal. Link your css using the html helper by passing the file name to the method and have the file in the webroot dir. It's common for noobies to get uns

HTML/CSS in Cake

2011-09-27 Thread nobles
Are the any differences in how HTML/CSS is implemented in CakePHP? I ask, and the reason I am now teaching myself the language, is because I outsourced some work and I have a decent working product but the interface looks like my 2 year old did it. Any thoughts? Any recommended resources to help

Re: Data Not Saving Saving to db

2011-09-27 Thread Bryson Nobles
thanks all - turned out that Teddy was right on the money - thanks a million On Tue, Sep 27, 2011 at 6:50 AM, euromark wrote: > also pr() the $this->Modelname->validationErrors: > > pr($this->Modelname->validationErrors); > > > On 27 Sep., 12:01, Teddy Zeenny wrote: > > To easily identify t

How would I do this project best in CakePHP?

2011-09-27 Thread Yves S. Garret
Hi all, I'd like some advice/direction on this. I'm fairly new to Cake, so this would be very much appreciated. Basically, I have this assignment at work (oh yeah, CakePHP will be our framework as we're going along in our department, something I'm not 100% familiar), where you have a website

Accessing $this->request in Model Cakephp 2.0 Unit Testing

2011-09-27 Thread badben
I am trying to build a test for a custom validation in Cakephp 2.0 in the AppModel The problem is that the validation method uses values from $this->request to compare different fields, i.e check that password == comfirm_password. How do I create a test for this, i.e how do I set the value of

Re: Problem importing Comments Behavior Class in Controller class

2011-09-27 Thread papac...@gmail.com
I have downloaded it from your Github. And import it file by file into my dummie project. On Sep 26, 2:12 pm, José Lorenzo wrote: > How did you download the project, and where did you put the files? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: Trying to convince management that Open Source is a good thing

2011-09-27 Thread flo.kl...@googlemail.com
The only argument they will listen to (and should) is money! Here are some points where they would save money with: - No Licence costs - Faster and easier developmnent process - More secure environment Thats it from me, but im sure there will be many more posts. -flosky "Yves S. Garret" schri

Re: Trying to convince management that Open Source is a good thing

2011-09-27 Thread Yves S. Garret
Also, what was your experience in a similar situation? How did you handle it? We're a big organization with at least 20,000 people. On Sep 27, 10:40 am, "Yves S. Garret" wrote: > Sorry about this not being CakePHP specific, but rather something being > tangentially related to CakePHP.  However,

Trying to convince management that Open Source is a good thing

2011-09-27 Thread Yves S. Garret
Sorry about this not being CakePHP specific, but rather something being tangentially related to CakePHP. However, in my organization, there is a serious issue with convincing management that Open Source is a good idea. As a result we are stuck with using Windows servers and _forced_ to use MSSQL.

Re: Getting Bake to work on Linux

2011-09-27 Thread LipeDjow
Also check if php5-mysql is enabled for the php CLI. LipeDjow -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this gr

Re: Can't get the required class in form

2011-09-27 Thread euromark
usually required is also added if your DB field is default NOT NULL if it is DEFAULT NULL it should have no required class On 27 Sep., 09:28, WebbedIT wrote: > You have overwritten the div with the 'div'=>'row' attribute. > > HTH, Paul. > > On Sep 26, 4:54 pm, heohni > wrote: > > > > > > > > >

Re: Model update modifies fields not present in data array

2011-09-27 Thread dtemes
It's part of the same query, no after/beforeSave running. The model in question is the User model. These are my steps 1. Read the logged in user (Lets call it UserA) 2. Select another user from the user table to update (UserB). 3. Present a form with just a few fields that I need to update 4. Upd

Re: Data Not Saving Saving to db

2011-09-27 Thread euromark
also pr() the $this->Modelname->validationErrors: pr($this->Modelname->validationErrors); On 27 Sep., 12:01, Teddy Zeenny wrote: > To easily identify the error, you can echo pr($this->data) in the add > action. > Could it be that the attributes should be lower case ? i.e. > $this->Form->input('

Re: Data Not Saving Saving to db

2011-09-27 Thread Teddy Zeenny
To easily identify the error, you can echo pr($this->data) in the add action. Could it be that the attributes should be lower case ? i.e. $this->Form->input('title'); Teddy On Tue, Sep 27, 2011 at 4:43 AM, nobles wrote: > Hi, > > I'm new to cake and have only have a fundamental understanding of

Data Not Saving Saving to db

2011-09-27 Thread nobles
Hi, I'm new to cake and have only have a fundamental understanding of php. I've been watching video and practicing here and I have a issue I am running into. in the code below, everything seems to excite correctly except the function is not adding the text from my entries in the form to the db.

Re: Which is the better IDE for cakePHP?

2011-09-27 Thread Muhaimen Ezabbad
I am using netBeans on Mac. It's the best IDE I have seen for php. Give it a try. Just go to google and search for netBeans. On Sep 27, 2011 8:24 AM, "aya" wrote: > hi > i am begining cake T but i need IDE for detect methot of class that > have 2 level extend > > calss class1 extends class2{ > } >

Re: Can't get the required class in form

2011-09-27 Thread WebbedIT
You have overwritten the div with the 'div'=>'row' attribute. HTH, Paul. On Sep 26, 4:54 pm, heohni wrote: > Hi, > > I have this in my model, > var $validate = array( >         'name' => array( >             'required' => array('rule' => 'notEmpty', 'message' => > 'EmptyName', 'required' => true

Re: including google maps

2011-09-27 Thread WebbedIT
What line of code is generating the 'google undefined' error? I can't see a google variable in the code of your OP, only GoogleMapDiv and GoogleMap. HTH, Paul On Sep 26, 8:22 pm, Tomfox Wiranata wrote: > hi paul, > > thanks for answering. you may have a point ;) > i use firebug and it says goog

Re: URL Rewritting / Configuration of RC 2.0.0 RC2

2011-09-27 Thread WebbedIT
This is not a Cake 2 issue, would happen with 1.3 too. You've quite rightly installed the application in a subfolder of your apache web folder (/cake) so have two options. Change the base dir in the htaccess file or what most people do is setup a virtul host so you can access your application at h