Re: $cakeDebug variable undefined

2009-01-01 Thread glenda guo
what's the version number? if you want to use element, it should like this, $this->renderElement On Thu, Jan 1, 2009 at 4:15 AM, gemmes wrote: > > Hi all, > > Nooby question. Why am I getting this error? > Notice (8): Undefined variable: cakeDebug [CORE/cake/libs/view/ > elements/footer.ctp,

Re: getting edit view of HABTM

2008-09-29 Thread glenda guo
the default form action parameter is add ,as below, you just need to assign it echo $form->create(' > > EmployeesAccreditation', array('action' => 'edit')); On Sun, Sep 28, 2008 at 7:58 PM, jojiju <[EMAIL PROTECTED]> wrote: > > hi all, >I have tables employees and accreditations and join ta

Re: Validation: dashes in email fail

2008-09-29 Thread glenda guo
You can reference this page http://cakebaker.42dh.com/2007/01/03/validation-with-cakephp-12/ On Mon, Sep 29, 2008 at 3:22 PM, JuergenRiemer <[EMAIL PROTECTED]>wrote: > > Hi, > > afaik dashes are allowed in email adresses; why does the validation > module let them fail? do I overlook sg here, I am

Re: Filtering on sub table

2008-09-29 Thread glenda guo
ith it > $array['Program']['ProgramBroadcaster']['Broadcaster']['name']; //Not > working > > Thanks. > > Yudao. > > On Mon, Sep 29, 2008 at 7:43 AM, glenda guo <[EMAIL PROTECTED]> wrote: > >> In this case, you can add filter i

Re: controller/view not found (probably apache config problem)

2008-09-28 Thread glenda guo
I met this problem. Because the version of Apache is lower than 2, .htaccess file has no effect. This problem was solved when I added RewriteBase to .htaccess file. So, you can try it ... On Mon, Sep 29, 2008 at 2:51 AM, paragjagdale <[EMAIL PROTECTED]>wrote: > > Hi, > for me this works: > > h

Re: Filtering on sub table

2008-09-28 Thread glenda guo
use ? > > Because $this->ProgramBroadcaster->Program->ProgramFile->ProgramState is a > very deeper relationship. > > Thanks. > > Yudao. > > > On Sun, Sep 28, 2008 at 4:19 AM, glenda guo <[EMAIL PROTECTED]> wrote: > >> $this->set('programS

Re: validate alphanumeric

2008-09-27 Thread glenda guo
You can write validation function by yourself. On Sat, Sep 27, 2008 at 12:50 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hari, > > I would like to use validation with 1.2. I need something like > alpanumeric, but it seems it does not accept non latin characters. I > need it for a hung

Re: Filtering on sub table

2008-09-27 Thread glenda guo
$this->set('programStateList', $this->ProgramBroadcaster-> Program->ProgramFile->ProgramState->find('list')); You can add condition in it. On Sat, Sep 27, 2008 at 10:43 PM, Mickael Gentil <[EMAIL PROTECTED]>wrote: > Hi all, > > I need some help with a problem. > > This is my controller : > >