Re: CakePHP 2.X

2011-12-22 Thread AD7six
On Dec 21, 11:56 pm, Ucha19871 ucha19871...@yahoo.com wrote: ooh thx.. I know this documentation,but .. do you have a PDF version of this documentation .. or .CHM file.. so i can use it locally, without Internet.. The source is here, it is quite trivial to build for local use:

Re: Choosing cakephp version

2011-12-22 Thread AD7six
On Dec 22, 6:45 am, Kiran Ambati kiran00...@gmail.com wrote: Hi All, After working with drupal and wordpress for past 6 months i am switching back to cakephp for a game project. I see cakephp 2.04 is latest version available. I want to know what is the right version to start project with.

Questions about the field modified, created, updated

2011-12-22 Thread socrates
Hello, here i am with a new question, someone could explain me how this fields works? This is how i understand they might work: 1) created, ok this is simple. 2) modified, when this field are updated? I have supposed that it change every time I update the record. For example when i call save() on

Re: Choosing cakephp version

2011-12-22 Thread Kiran Ambati
Hi Andy , Thanks for your reply, But what do you mean by Yes? cakephp 2.04? or cakephp 1.3? Thanks again, kiran On Thu, Dec 22, 2011 at 2:00 PM, AD7six andydawso...@gmail.com wrote: On Dec 22, 6:45 am, Kiran Ambati kiran00...@gmail.com wrote: Hi All, After working with drupal and

Re: Choosing cakephp version

2011-12-22 Thread Jeremy Burns | Class Outfit
The first question you need to ask is Why would it be a great idea to start a new project on an old version? and see if that helps. Jeremy Burns Class Outfit http://www.classoutfit.com On 22 Dec 2011, at 08:55:09, Kiran Ambati wrote: Hi Andy , Thanks for your reply, But what do you mean

Re: Choosing cakephp version

2011-12-22 Thread Kiran Ambati
Hi Jeremy, Thanks for your reply. As i got enough experience on cake 1.3 version I can get work done even with less support. I just want to know if cake 2.x is similar to its older version. so I can finish project even if I dont find enough support . Tight dead lines of the project is also one

Re: Choosing cakephp version

2011-12-22 Thread Sam Sherlock
It should not take too long to read up on the differences described in the book. Maybe this is a wild idea but try reading the migration guide. Try migrating a project to cake. - S On 22 Dec 2011 09:15, Kiran Ambati kiran00...@gmail.com wrote: Hi Jeremy, Thanks for your reply. As i got

Re: Questions about the field modified, created, updated

2011-12-22 Thread Sam Sherlock
Updated or modified which you use is upto you When you follow the conventions cake automagically does some stuff. Whilst still remaining flexible. - S On 22 Dec 2011 08:31, socrates socrates.alessan...@gmail.com wrote: Hello, here i am with a new question, someone could explain me how this

Re: Removing On behalf of from the Email From field Cakephp 1.3

2011-12-22 Thread Sam Sherlock
In dir named View that lives within your app exists other dirs. Email has a layout (2 html text) Likewise you'll find email has template for the body too. How you setup your email for your app is up to you play with the options to see what works best for you. - S On 22 Dec 2011 05:43, hunny

Re: editing user data when password doesn't change

2011-12-22 Thread Sam Sherlock
Intercept the password in beforeFilter - S On 22 Dec 2011 02:08, elogic asymo...@elogicmedia.com.au wrote: Hi All, I am using Auth and I have an edit user details page, the password is coming though hashed into the password field, if the user doesn't change the password, the hashed password

Re: editing user data when password doesn't change

2011-12-22 Thread euromark
this might help: http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ On 22 Dez., 11:09, Sam Sherlock sam.sherl...@gmail.com wrote: Intercept the password in beforeFilter - S On 22 Dec 2011 02:08, elogic asymo...@elogicmedia.com.au wrote: Hi All, I am using Auth

Re: Questions about the field modified, created, updated

2011-12-22 Thread euromark
you only need created and modified On 22 Dez., 10:54, Sam Sherlock sam.sherl...@gmail.com wrote: Updated or modified which you use is upto you When you follow the conventions cake automagically does some stuff. Whilst still remaining flexible. - S On 22 Dec 2011 08:31, socrates

Re: CakePHP 2.X

2011-12-22 Thread euromark
@ M Kaufman: What about one with a 42u rack in his random location without Internet, operating quite securely, and avoiding theft or notice? Nice example^^ Must be sth pretty important you are programming. you could simply use two computers then instead of making yourself the most isolated human

CakePHP - REST POST functionality not working with default mapping

2011-12-22 Thread bwhite
down vote favorite share [fb] share [tw] I am very new to CakePHP and am attempting to configure my web app to use REST. I am using CakePHP version 2.0.4. Following the CakePHP Cookbook, I have entered the following into the routes.php file ('Apples' pointing to the ApplesController.php

Re: Lightbox form CakePHP 2.0

2011-12-22 Thread stefanski
Hi Florin. I read through your question again. I would go for this: - create a controller function that returns all countries as json - when the lightbox is closed, call that controller function by ajax and populate the country select values with the countries it's mostly javascript coding.

Error when sending emails

2011-12-22 Thread heohni
Hi, when I send an email I get this errors: Warning (2): array_map() [http://php.net/function.array-map]: Argument #2 should be an array [COREcake/libs/controller/components/email.php, line 583] Warning (2): implode() [http://php.net/function.implode]: Invalid arguments passed

Re: Error when sending emails

2011-12-22 Thread AD7six
On Dec 22, 12:01 pm, heohni heidi.anselstet...@consultingteam.de wrote: Hi, when I send an email I get this errors: Warning (2): array_map() [http://php.net/function.array-map]: Argument #2 should be an array [COREcake/libs/controller/components/email.php, line 583] Warning (2): implode()

Re: Lightbox form CakePHP 2.0

2011-12-22 Thread Florin Trifu
Thank you! On Thu, Dec 22, 2011 at 12:58 PM, stefanski stefansc...@googlemail.comwrote: Hi Florin. I read through your question again. I would go for this: - create a controller function that returns all countries as json - when the lightbox is closed, call that controller function by ajax

Re: CakePHP 2.X

2011-12-22 Thread Ucha19871
On Dec 22, 5:38 am, M Kaufman (Gmail) mkfmn...@gmail.com wrote: What about one with a 42u rack in his random location without Internet, operating quite securely, and avoiding theft or notice? I'm exactly in that situation ... I don't what to be distracted while I studding... AD7six -

Re: CakePHP 2.X

2011-12-22 Thread Jeremy Burns
I guess studding would get in the way of programming. At least for me it does anyway. On 22 Dec 2011, at 12:58:17, Ucha19871 wrote: On Dec 22, 5:38 am, M Kaufman (Gmail) mkfmn...@gmail.com wrote: What about one with a 42u rack in his random location without Internet, operating quite

Multiple Businesses in one database

2011-12-22 Thread cakebrother
Good Morning Developers, I plan on creating an App that will be used by multiple businesses where they can create, view, and deliver billing, invoice, and appointment info. I'd like to have all of the data in the same database and same tables. Also each business should only be able to see their

Re: Multiple Businesses in one database

2011-12-22 Thread Jeremy Burns | Class Outfit
At its simplest you'll need a clients table and have a client_id field on all related tables; filter on find. Jeremy Burns Class Outfit http://www.classoutfit.com On 22 Dec 2011, at 14:24:08, cakebrother wrote: Good Morning Developers, I plan on creating an App that will be used by

Re: Multiple Businesses in one database

2011-12-22 Thread cakebrother
Thank You Jeremy. I'll give that a try. Is filter find a function? Basically when an admin of one of the businesses logs in they'll be able to create invoices and bills etc. They should only be able to see the content they've created can you send me any links you may have that explain this. --

Re: Multiple Businesses in one database

2011-12-22 Thread cakebrother
Thank You Jeremy. I'll give that a try. Is filter find a function? Basically when an admin of one of the businesses logs in they'll be able to create invoices and bills etc. They should only be able to see the content they've created can you send me any links you may have that explain this. --

new action is being blocked by AuthComponent and I'm not sure why

2011-12-22 Thread Wendall
Hi all, I've implement the AuthComponent in my app and have gotten it working well. Currently I've got it set up so that only the admin account can create new users, and I'm adding some new functionality for users to register themselves, and have the following form for that purpose: form

Re: Multiple Businesses in one database

2011-12-22 Thread Jeremy Burns | Class Outfit
I don't think it's rocket science. When a user logs in find out what (or which) clinic (or clinics) he has privileges on. If it's more than one prompt him to choose a client to work with. Hold that client_id in session and then when they go to, for example, view invoices only display those

Can I automagically add an ID to the div generated by form-input

2011-12-22 Thread lsenft
I need to add IDs to divs generated by form helper. In the past I've done something like $form-input( 'Model.field', array( 'div' = array('id' = 'ModelFieldDiv', 'class' = 'input text required') ) ); Is there a way to make this the default behavior without hacking form

Excerpt of just first result from foreach

2011-12-22 Thread Mr.Jayesh
Hello Everyone, Hope thing are baking great I require an input from you people, so I can get in with this. See, I am making a blog like layout for which I have planned to give out a list of 10 recent post in my main page. Now, out of that 10, I wanted to show an excerpt of the first one,

Re: editing user data when password doesn't change

2011-12-22 Thread elogic
http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ - This was perfect, thankyou! On Dec 22, 8:23 pm, euromark dereurom...@googlemail.com wrote: this might help:http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ On 22 Dez., 11:09, Sam Sherlock

Re: Excerpt of just first result from foreach

2011-12-22 Thread Geoff Douglas
foreach($posts as $indexValue = $post){ if($indexValue == 0){/* Show the excerpt*/}else{/* Show the link */} } -- 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

Re: Can I automagically add an ID to the div generated by form-input

2011-12-22 Thread Geoff Douglas
If you are using greater than 1.3, check this out http://book.cakephp.org/view/1616/x1-3-improvements The form helper create() method, now has a inputDefaults array key... that will do what you want. I believe. -- Our newest site for the community: CakePHP Video Tutorials

Re: new action is being blocked by AuthComponent and I'm not sure why

2011-12-22 Thread Geoff Douglas
Because you are authorizing actions, you have to add the action to the aco table. You can do this by using the cake console... but here is some code that I use to automatically do it for you. Put this is your AppContoller... /* * * Used for Adding Aco action automatically on page load. * *

Textarea linebreak getting converted to text

2011-12-22 Thread Geoff Douglas
So, I am working with a textarea, where I am allowing for an entry per line. When I submit the form the data hits the controller as expected with the PHP \n intact. I am do a postback to the same controller/action, and when the page renders and the Form input gets populated, all the \n line

Re: Textarea linebreak getting converted to text

2011-12-22 Thread Geoff Douglas
Just for additional info: The following works to remedy the issue. ?php $this-Form-data['ProductCalculation']['batch'] = str_replace('\n',\n,$this-Form-data['ProductCalculation']['batch']); ? I also checked when this is happening... The $this-data array contains the real line breaks inside the

Re: Textarea linebreak getting converted to text

2011-12-22 Thread Geoff Douglas
Another bit to this issue... the line breaks are coming over as \r\n not just \n, so that could be part of the issue... -- 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

Re: Organizing Controllers into subfolders in CakePHP 2

2011-12-22 Thread #2Will
You Can still set alternative locations for everything in the bootstrap though. I do this for my CMS. So everything for the cms is in one place, and the stuff specific to the site is in another. w App::build(array( 'Plugin' = array(ROOT . '/Tractor/Plugin/'), 'Controller' =

how to show light box in the view file

2011-12-22 Thread ahmed fakher
0 down vote favorite share [fb] share [tw] i use light box but something wrong i follow all steps in this link http://www.huddletogether.com/projects/lightbox2/#download instead of use this code a href=images/image-1.jpg rel=lightbox title=my captionimage #1/a i use this code for view

how to use multiple database connections.

2011-12-22 Thread Jack
Hi all, i am new for cakephp, and developing application with both Mysql and postgres databses, i have tried to solve this situation but there is no other way i have to use both databases, then how to synch both databases? any idea? Thanks and Regards, Jack -- Our newest site for the