Re: RegEx: Dash Problem

2009-03-09 Thread KS
Thanks for your suggestion! It turns out I was using the clean function of CakePHP's Sanitize class. It was doing something to my dashes :) One I moved that function AFTER my validation, everything worked great! KS On Mar 8, 5:00 am, Graham Weldon wrote: > Hey, > > Try escap

RegEx: Dash Problem

2009-03-08 Thread KS
Hi there, This might not be a cakePHP issue, but here goes... I use CakePHP + WAMP on Windows. My problem is that whenever there is a dash in a pattern and an input string has a dash, no match occurs. As a result, validation fails (like the built in e-mail and phone number validations). I have

Checking for config.time in cake session

2008-02-21 Thread ks
In session.php in functions __checkValid There is a check with the Config.time. if ($this->_userAgent == $this->read("Config.userAgent") && $this- >time <= $this->read("Config.time")) { We have run into issues where sometimes users get logged out and found the session id string empty but als

cake i18n localization

2007-05-17 Thread ks
the __( ...) method seems to call the debug_backtrace() method to get the directory by getting the stacktrace Looking at the data returned and the call, it looks expensive to do this for every string I call to translate. Is there a way to do it differently or override this? Thanks, Krishnan -

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-05-09 Thread ks
Mariano, Am I missing something simple? Can you let me know an example were you were able to use with redirect? Should I do something different in my application. I am keen to use your new framework for our unit tests but right now I am blocked on this. Thanks Krishnan On May 1, 8:26 am, ks

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-05-01 Thread ks
is useful for the web application) but the test framework exits when that happens. What is the best way to handle this? In TestSuite, I think the dispatch maybe handled differently since I was able to test the same action with a post. Thanks Krishnan On Apr 25, 2:04 am, ks <[EMAIL PROTEC

Re: How to Display info from Different tables ?

2007-04-25 Thread ks
I am dont know if this is the best way to accomplish this but you can use the requestAction and renderElements to accomplish this. Create a view - say cpanel/home This will include elements - userelement, categoryelement, itemselement e.g. renderElement('userelement'); ?> Create each element i

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-04-24 Thread ks
you set > 'fixturize' to an array of models, then only those models will be > auto-fixturized while the other will remain with live tables. > > - data: see last item > > - method: see last item > > * testAction()can auto-fixturize the model so if you

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-04-23 Thread ks
rt coders answer ten questions for every question they ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > blog:http://www.MarianoIglesias.com.ar > > -Mensaje original- > De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre > de ks &g

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-04-17 Thread ks
Both use SimpleTest. In the case of test suite, you have add that in your vendors folder as well. >From what I was able to do: TestSuite allows you to test your controllers using get/post as well which is useful. I did not find that in the CakeTest TestSuite integrates with bake2 and can run fr

I18n and Localization support

2007-03-27 Thread ks
We are building a site that needs to support multiple languages - content ( titles of topics etc), user names and DB strings etc. will be in multiple languages - including chinese. >From the information I found on the site, the 1.1 version will not support this right? Will the alpha version (1.2