Re: Which version is good and stable for development among 2.3.0 Rc2 and 2.2.5

2013-01-25 Thread Mariano C.
I will not set up a production environment with a release candidate, even if it is at the second step (then really near to a stable)! Il giorno venerdì 25 gennaio 2013 05:32:33 UTC+1, anjith ha scritto: Hi, New to cakephp. Just about to start development of new project using cakephp.

Re: Which version is good and stable for development among 2.3.0 Rc2 and 2.2.5

2013-01-25 Thread euromark
You can probably safely start with 2.3 now. By the time your app will be ready for deployment chances are pretty high 2.3 will not be a RC anymore. But in my experience, even RCs are pretty pretty close to the real deal, as there is a huge test coverage proofing that 2.3 is nothing less than an

Any way to check url before redirect?

2013-01-25 Thread LDSign
Hi I am searching for a way in cake to check an url before it is called (via redirect). Real world: The user could set a custom start page to which he is redirect after login. This page is mapped to / all the time too. So far so good :) Unfortunately it is not predictable that this page is

Re: Any way to check url before redirect?

2013-01-25 Thread euromark
Use a component and its beforeRedirect() callback see the docs for more infos, but basically you can intercept the redirect this way. Am Freitag, 25. Januar 2013 11:28:37 UTC+1 schrieb LDSign: Hi I am searching for a way in cake to check an url before it is called (via redirect). Real

Re: Any way to check url before redirect?

2013-01-25 Thread LDSign
Thank you :) Thats a good starting point, but how do I check there if the redirect will be successfull? Frank On Jan 25, 11:48 am, euromark dereurom...@gmail.com wrote: Use a component and its beforeRedirect() callback see the docs for more infos, but basically you can intercept the redirect

Re: Can't validate URL

2013-01-25 Thread Luciano Bargmann
My advise: Use http://yourls.org/ On Thursday, January 24, 2013 4:45:50 PM UTC-7, gonzela2006 wrote: Hello euromark, Thanks for your reply I'm trying to make my own short link service for my blog and I wish to make it using CakePHP I think I can't validate this URL because it is too long

Re: Simple Poll

2013-01-25 Thread lowpass
On Thu, Jan 24, 2013 at 9:14 PM, Advantage+ movepix...@gmail.com wrote: I need to create a simple poll for users and stumped on saving the results when user submits the poll. Poll hasMany Question Poll hasMany Result Question hasMany Choice This is how I did it: Poll hasMany

Re: Any way to check url before redirect?

2013-01-25 Thread lowpass
On Fri, Jan 25, 2013 at 7:07 AM, LDSign fr...@lamozik.de wrote: Thank you :) Thats a good starting point, but how do I check there if the redirect will be successfull? It depends on what these URLs are pointing to. Are they all defined in routes.php? Check Router::routes and compare. Do you

Validating multiple fields problem

2013-01-25 Thread Michael Gaiser
So, I have an event model that you are able to assign people to. Some events require at least 2 people to be assigned before they are considered valid. I have two fields for the user to filling in the persons name, and a custom validation rule that accesses $this-Event-data to loop through the

Components vs Helpers vs Utilities

2013-01-25 Thread tron
Im trying to wrap my head around utilzing some functionality at all levels of MVC. Right now, I'm writing a component that performs several date functions for my app (the date utility is insufficient for what Im doing). The problem is I need the these functions in both my models and views as

Re: Components vs Helpers vs Utilities

2013-01-25 Thread Michael Gaiser
I am having difficulty thinking of a time when I would need the same function to be called in my model and my view. On my current project, I am also needing to manipulate my dates as I have a non standard way of saving them in the database. What I have done is manipulated them in the controller

Re: Validating multiple fields problem

2013-01-25 Thread lowpass
On Fri, Jan 25, 2013 at 4:04 PM, Michael Gaiser mjgai...@gmail.com wrote: So, I have an event model that you are able to assign people to. Some events require at least 2 people to be assigned before they are considered valid. I have two fields for the user to filling in the persons name, and a

Re: Components vs Helpers vs Utilities

2013-01-25 Thread lowpass
On Fri, Jan 25, 2013 at 4:53 PM, tron tken...@gmail.com wrote: Im trying to wrap my head around utilzing some functionality at all levels of MVC. Right now, I'm writing a component that performs several date functions for my app (the date utility is insufficient for what Im doing). The problem