Your pages should be on different actions?

/resume/add
/resume/edit
/resume/delete

And within each of those you show the context specific links.

On Jan 24, 11:10 am, "[email protected]" <[email protected]> wrote:
> Hi Sam,
> thanks for help...
> and how do I do that...?
> Here is another example, what I have is a video to be favorite. And
> once its favorite it, the button "Add to Favorites" should not be
> seen.
>
> The table for favorites I have is:
>
>  id     int(11)         UNSIGNED        No              auto_increment
>  video_id       int(11)         UNSIGNED        No      0
>  user_id        int(11)                 No      0
>  video_user_id  int(11)         UNSIGNED        No      0
>  created
>
> where video_user_id is original video poster.
>
> I need to create this statement
> e.g. <?php if(($favorite['VideoFavorite']['user_id']  == )): ?> ...??
> I don't know how... lol
>
> Thank You All for Your Help...
> Chris
>
> On Jan 23, 8:45 pm, Sam Sherlock <[email protected]> wrote:
>
> > make your nav display links dependent on the action.
>
> > On 24/01/2011, [email protected] <[email protected]> wrote:
>
> > > No cricket,... no,.. no,... there is no java issue that I have.
> > > All I want is to make a statement to hide "Create Resume" link when
> > > resume is created, and show links to "Edit Resume" and "Delete
> > > Resume" .
>
> > > Please,... anyone help...
>
> > > Thanks
> > > Chris
>
> > > On Jan 23, 4:21 pm, cricket <[email protected]> wrote:
> > >> On Sun, Jan 23, 2011 at 5:59 PM, [email protected] <[email protected]>
> > >> wrote:
> > >> > Hi guys,
>
> > >> > I wanna to make a statement in ../views/resume/view.ctp
>
> > >> > I have a table named: resume
>
> > >> >  id     int(11)         UNSIGNED        No              auto_increment
> > >> >  user_id        int(11)                 Yes     NULL
> > >> >  name   varchar(120)    latin1_swedish_ci               No
> > >> >  content        text    latin1_swedish_ci               No
>
> > >> > and in view... when resume is created, link to "Create Resume" will be
> > >> > replaced with "Edit Resume" and "Delete Resume"
>
> > >> > How do I do that...?
>
> > >> > What I have is manage to do is just a links:
>
> > >> > <span style="float: right; margin: 0 5px 0 0;">
> > >> >  <?php echo $html->link(ucfirst(__('create Resume', true)), '/resumes/
> > >> > create', array('class' => 'album'), false, false, false) ?>
>
> > >> >     <?php echo $html->link(__('edit Resume', true), '/resumes/
> > >> > edit/' . $resume['Resume']['id'], array('class' => 'edit'), false,
> > >> > false) ?>
>
> > >> >     <?php echo $html->link(__('delete Resume', true), '/resumes/
> > >> > delete/' . $resume['Resume']['id'], array('class' => 'delete'), false,
> > >> > false) ?>
> > >> > </span>
>
> > >> This is a javascript issue; nothing to do with CakePHP.
>
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > others with their CakePHP related questions.
>
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this group 
> > > at
> > >http://groups.google.com/group/cake-php
>
> > --
> >  - S
>
> > +44 (0)7908 069 219

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to