+ Reply to Thread
Results 1 to 3 of 3

Thread: how to use href tag in the zend framework

  1. #1
    sukumar is offline Junior Member
    Join Date
    Feb 2008
    Posts
    4

    Default how to use href tag in the zend framework

    I am using two separate controllers for the list on the menu. How do I use the href tag for those. In one controller's menu file, I just put the href tag as controller name/action name. Its working fine. While in another controller's menu file, I just put the same thing for href tag, but its not working. In the sense when I am in one controller file, and when I try to access the other controller from it using the href tag format said above, its not working? Any help would be appreciated. Thanks.

  2. #2
    davidmpaz is offline Junior Member
    Join Date
    Mar 2008
    Posts
    14

    Default

    take a look to this to see if it is your solution:

    Premature Optimization Handling relative links with Zend_View_Helper

  3. #3
    megainfo is offline Junior Member
    Join Date
    Jul 2008
    Posts
    6

    Default

    <a href="<?php echo $this->url(array('controller'=>'controlle_rName','action '=>'action_Name','param1'=>value,'param2'=>value,) );?>">your link here </a>

    and without parms :

    <a href="<?php echo $this->url(array('controller'=>'controlle_rName','action '=>'action_Name'));?>">your link here </a>

+ Reply to Thread

Similar Threads

  1. Hide the URL of a href link
    By nadav in forum General Q&A on Zend Framework
    Replies: 2
    Last Post: 07-27-2010, 12:37 PM
  2. Submitting zend form using javascript and href
    By lee140685 in forum Core Infrastructure
    Replies: 0
    Last Post: 02-10-2010, 06:39 AM
  3. Browser changes base URL for modules in href for <link...
    By foo_bar in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 08-31-2009, 07:51 PM
  4. Zend Framework and Zend Studio + Platform
    By Kalyse in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 06-02-2008, 02:32 AM
  5. Zend Framework remote debugging w/ Zend Studio
    By Ron in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 04-28-2008, 02:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts