Re: Stop Users From Going Back After Logout

2007-12-05 Thread Joyce
wser not to cache at > all? I haven't heard of such a thing. > > On Dec 5, 4:39 am, Joyce <[EMAIL PROTECTED]> wrote: > > > I see. Hopefully I can get what you mean by that. > > > I will give it a shot. Thanks. > > > On Dec 5, 2:31 am, "Chris Hartj

Re: Stop Users From Going Back After Logout

2007-12-04 Thread Joyce
I see. Hopefully I can get what you mean by that. I will give it a shot. Thanks. On Dec 5, 2:31 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Dec 4, 2007 1:26 PM, Joyce <[EMAIL PROTECTED]> wrote: > > > > > Thanks Chris, > > > I will look th

Re: Stop Users From Going Back After Logout

2007-12-04 Thread Joyce
Thanks Chris, I will look through your tutorials. I am using CakePHP 1.1, can that work? On Dec 5, 2:11 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Dec 4, 2007 12:49 PM, Joyce <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I have questi

Re: Stop Users From Going Back After Logout

2007-12-04 Thread Joyce
m to a blank page, but who cares? > > On Dec 4, 12:49 pm, Joyce <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have question regarding how to prevent users from going back to the > > application after they have logout. > > > Below is my index and logout for

Stop Users From Going Back After Logout

2007-12-04 Thread Joyce
Hi, I have question regarding how to prevent users from going back to the application after they have logout. Below is my index and logout for userscontroller: function index() { $this->checkSession(); if ($this->Session->check('user')) { $this->Us

Re: How To Create Select Options for Fields Within Same Table

2007-12-01 Thread Joyce
| Null | Key | Default | Extra | > > +--+--+--+-+-++ > > | id | int(20) | | PRI | NULL| > > auto_increment | > > | cat_id| int(5) | | | 0 | > > |

Re: How To Create Select Options for Fields Within Same Table

2007-12-01 Thread Joyce
> > | Field| Type | Null | Key | Default | Extra | > > +------+--+--+-+-++ > > | id | int(20) | | PRI | NULL| > > auto_increment | > > | cat_id| int(5) | | |

Re: How To Create Select Options for Fields Within Same Table

2007-12-01 Thread Joyce
| +--+--+--+-+-++ | id | int(20) | | PRI | NULL| auto_increment | | cat_id| int(5) | | | 0 | | | productname | varchar(100) | | | | | +--+--+--+-+-++ Thanks. On Dec 1, 11:36 pm,

Re: How To Create Select Options for Fields Within Same Table

2007-12-01 Thread Joyce
;{n}.Category.catname")); > > > Thanks. > > You're welcome. > > > On Dec 1, 5:41 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > > I you want to use fields from associated tables, use the key/valuePath > > > options in M

Re: How To Create Select Options for Fields Within Same Table

2007-11-30 Thread Joyce
tables, use the key/valuePath > options in Model::generateList(), and set recursive to the apropiate > value. > > 2007/11/30, Dardo Sordi Bogado <[EMAIL PROTECTED]>: > > > This is for fields from the same table. I don't understand what you > > mean with "

Re: How To Create Select Options for Fields Within Same Table

2007-11-30 Thread Joyce
layField : > > class Category extends AppModel { > var $name = 'Category'; > var $displayField = 'catname'; > > } > > Then, it becomes: > > $categories = $this->Category->generateList(); > > 3. You can rename colmn catname to name (defau

Re: How To Create Select Options for Fields Within Same Table

2007-11-30 Thread Joyce
me'; > > } > > Then, it becomes: > > $categories = $this->Category->generateList(); > > 3. You can rename colmn catname to name (default displayField). > > I think number 2 is best. > > Dardo Sordi. > > 2007/11/30, Joyce <[EMAIL PROTECTED]>:

How To Create Select Options for Fields Within Same Table

2007-11-30 Thread Joyce
Hi all, I am a newbie in cakePHP, and I have created a table as per below. I have 3 fields for my categories table, and would like to create a Select form element to insert new categories and link within the table itself(where the parent_id comes from the id). Such that it will echo the select