URL rewrite for 2 apps on IIS7

2013-07-06 Thread Ming Zhu
usly on my CentOS production server? Thanks! Zhu Ming -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and s

missing not-null column in SQL

2013-06-10 Thread Ming Zhu
any guidance/direction would be very helpful. Thanks for any help in advance! Zhu Ming -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To

How to throw exception defined by DB?

2007-06-28 Thread Ming
Hi, I have set some rules in my DB, for example, some keys must be unique. How can I throw exception generated by the DB when inserting invalid entries? For example, if 'email' in my DB is set to be UNIQUE and I want to add a duplicate 'email', in MySQL, I will get something like: #1062 - Dupl

Debugging Cake app via DBG or Zend Debugger

2007-05-29 Thread Ming
Hi there, I wonder if anybody here can do me a favor by sharing his/her experience in debugging a Cake app by DBG (if you are using PhpED) or Zend Debugger ( if you are using Zend Studio or PDT). I have troubles in debugging, esp, breakpoints I set seem not work properly. I am not sure if it bec

Re: Question about variable scope, object and $html

2007-05-23 Thread Ming
tml (introduced in the blog tutorial), as I never declare it. Is it a global variable (global object?)? If yes, where is it declared? Many thanks, On May 23, 2:31 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 5/23/07, Ming <[EMAIL PROTECTED]> wrote: > > > >

Re: Question about variable scope, object and $html

2007-05-23 Thread Ming
ECTED]> wrote: > On May 23, 2007, at 3:27 PM, Ming wrote: > > > > > Hey John, > > > This script is from an app built on top of cakephp, and to maintain > > this app is part of my new job. There are 557 files totally in app/ > > models, app/controllers, and a

Re: Question about variable scope, object and $html

2007-05-23 Thread Ming
;John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > It might help us if we knew what you were trying to do, or why you > needed to know this... > > -- John > > On May 23, 2007, at 2:45 PM, Ming wrote: > > > > > Hi, > > > I am new to Cake

Re: Question about variable scope, object and $html

2007-05-23 Thread Ming
By the way, I tried to get help from capk's online API. But cake's API interface is pretty different with those of Java, Pear, or CPAN. Sounds need some time to get familiar with it. On May 23, 1:45 pm, Ming <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to Cake and I hav

Question about variable scope, object and $html

2007-05-23 Thread Ming
Hi, I am new to Cake and I have a question. For the file below (email.php), I do not understand where does the "render" in $this->controller->render($this->thtml) come from. $controller ($this->controller) is a variable whose domain is limited to this class. But it seems $this->controller is an

Web automation, within or outside cake?

2007-05-22 Thread Ming
Hi there, I am working to rewrite my perl codes by using php. About half of my codes involve web automation (using LWP in Perl extensively). Basically, my codes first submit some forms, follow some URLs based on some regular expression patterns, analyze web pages to get some contents, get some fe

Quesion about a variable in a model

2007-05-22 Thread Ming
Hi folks, Could you please help me understand codes below? It is in a model named Course. My question is: what does $data mean and where does it come from? Many thanks, function prepData($data=null){ if (empty($data['data']['Course']['record_status'])) { $data[

Re: how scalable is this framework

2007-05-22 Thread Ming
maybe useful for you, http://paul-m-jones.com/blog/?p=236 On May 20, 10:03 pm, surendra <[EMAIL PROTECTED]> wrote: > I am thinking of making a site like myspace,facebook(social > networking) site. Is it all right to choose this framework. Is it > scalable for such large scalable site?. Am I

Re: Question about model

2007-05-22 Thread Ming
emember, smart 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 >

Re: Question about model

2007-05-22 Thread Ming
rt, 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 Ming > Enviado el: Martes, 22 de Mayo de 2007 07:29 p.m. > Para: Cake PHP

Re: Question about model

2007-05-22 Thread Ming
May I ask where does $data come from, what does it mean? Thanks On May 22, 3:22 pm, Ming <[EMAIL PROTECTED]> wrote: > Hi folks, > > Could you please help me understand codes below? It is in a model > named Course > > Many thanks, > > function prepData($dat

Re: Question about model

2007-05-22 Thread Ming
Where does $data come from? On May 22, 3:22 pm, Ming <[EMAIL PROTECTED]> wrote: > Hi folks, > > Could you please help me understand codes below? It is in a model > named Course > > Many thanks, > > function prepData($data=null){ >

Re: Question about model

2007-05-22 Thread Ming
Many duplicates, Google group did not work properly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, s

Re: Question about model

2007-05-22 Thread Ming
Where does $data come from? On May 22, 3:22 pm, Ming <[EMAIL PROTECTED]> wrote: > Hi folks, > > Could you please help me understand codes below? It is in a model > named Course > > Many thanks, > > function prepData($data=null){ >

Question about model

2007-05-22 Thread Ming
Hi folks, Could you please help me understand codes below? It is in a model named Course Many thanks, function prepData($data=null){ if (empty($data['data']['Course']['record_status'])) { $data['data']['Course']['record_status'] = $data['form'] ['record_status

Re: Show a Page without a Model in cakePHP

2007-05-16 Thread Ming
It is exactly my question (newbie to cake, too :) ) My application involves lots of communication with a remote server via xml, just occasional local db operations. On May 16, 8:20 pm, MarsDev <[EMAIL PROTECTED]> wrote: > Hi All, > > I am a newbie to cakePHP and the model-view-controller pattern

A quick question model

2007-05-14 Thread Ming
Hi, I am a newbie to cake. I just read cake's manual and have a quick question: class User extends AppModel { // Its always good practice to include this variable. var $name = 'User'; what does this $name mean? is it mandatory? Can I name it something else? If I do not have this variabl

Beginner's question, about model

2007-05-10 Thread Ming
the Post in $this->Post refer to the data model named Post or the var $name with name Post? 3) In view, I have The question is the same, does the Post here refer to the data model named Post or the var $name with name Post? Thanks a lot Ming --~--~-~--~~~---~--~--