Unit Testing in 1.2

2007-03-18 Thread Dat Chu
Hi guys, Does anyone know how to go about running a unit test case / suite in 1.2 . I can't seem to find the documentation anywhere about this. I have version 1.2 of cake now and have put some test code under /app/ tests/cases/controllers/my_controller.test.php How do I run it? Do I need to put

Re: Ajax editor() and wysiwyg editor

2007-03-18 Thread Dat Chu
I don't thnk either of those support ajax editor at the time. You might want to write a plugin for them. However, TinyMCE is quite heavy since it does a lot of checking and processing (its capabilities is really broad too). You might want to go for a the lite version of TinyMCE and put it in your

Re: Houston Bakers?

2007-02-23 Thread Dat Chu
Me, waving from University of Houston On Feb 23, 3:01 pm, "naryga" <[EMAIL PROTECTED]> wrote: > Any Bakers in the Houston, TX Area? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: Installing a CakePHP application on an existing site

2007-02-16 Thread Dat Chu
Have a good weekend ^_^. On Feb 16, 8:11 am, "Mike" <[EMAIL PROTECTED]> wrote: > Thanks to all who replied. I have a long weekend coming up and will > most likely try these suggestions out then. > > Thanks. > > On Feb 15, 9:39 pm, "Dat Chu" <[EMAIL

Re: checkbox and hidden fields

2007-02-15 Thread Dat Chu
Is there a specific problem with hidden field? I think your question might be about something else. On Feb 15, 5:54 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > No. > > This is because a checkbox does not post any value in a submitted form > if it is not checked - so Cake would have no way of kno

Re: Installing a CakePHP application on an existing site

2007-02-15 Thread Dat Chu
In .htaccess, you can specify that if the URL is a correct file/ directory path, then it will serve the page. Otherwise, it will rewrite to your index.php in cake webroot (to be handled by cake). That way, you cake files can stay on / as well. On Feb 15, 7:07 pm, "the_woodsman" <[EMAIL PROTECTED

Re: Regular Expression to find content inside a tag pair

2007-02-14 Thread Dat Chu
eaks which most forms will contain. > > Let me know if that works for you or not, > -- Felix > ------ > http://www.thinkingphp.org > http://www.fg-webdesign.de > > > Dat Chu wrote: > > There are several things with anuke's pattern: > > Fi

Re: Regular Expression to find content inside a tag pair

2007-02-14 Thread Dat Chu
you'll > have access to the complete DOM of the HTML. > > On Feb 14, 12:02 am, "Dat Chu" <[EMAIL PROTECTED]> wrote: > > I want to find the content inside of a tag pair. > > > > Say form tag. What would be the way to achieve this? >

Re: Regular Expression to find content inside a tag pair

2007-02-13 Thread Dat Chu
ill match the whole thing instead of just the first pair. On 2/13/07, anuke <[EMAIL PROTECTED]> wrote: > > > $pattern = '/(.*)<\/form>/'; > > On 14 фев, 02:02, "Dat Chu" <[EMAIL PROTECTED]> wrote: > > I want to find the content inside of

Re: Multi step AJAX forms

2007-02-13 Thread Dat Chu
Renderring a view of a different Controller is the same as rendering a view of the same controller. (Using AJAX helper). [EMAIL PROTECTED], my first thought when I see your approach is: it violates MVC. However, upon further look I think it actually make sense since there is no use in duplicatin

Regular Expression to find content inside a tag pair

2007-02-13 Thread Dat Chu
I want to find the content inside of a tag pair. Say form tag. What would be the way to achieve this? My solution so far is using a regular expression similar to this /]*>(.*?)/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: AJAX & 404 error

2007-02-03 Thread Dat Chu
Have you tried using some tool like FireBug addon on Mozilla to diagnose your XHR ? Also, check your web server access log to see if the request is correct. On Feb 3, 3:39 pm, "Jacek" <[EMAIL PROTECTED]> wrote: > More info. > On AJAX requests I'm getting 403 forbidden header from server. > Quest