Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use BREADCRUMB in Zend Framework

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 339
    Comment on it

    Hello Guys,

    If you are looking to set Breadcrumb in zend framework. Please follow the below code for the same::

    1)Open your controller file and function in which you want to add breadcrumb.

    1. /* BreadCrumb starts Here */
    2. $breadcrumbArray = Array("Hostipal Listing" => "http://www.abc.com/hostpitals/listing/", "Xyx Hostpital" => "");
    3. //key will describe the word appear in breadcrumb and value will the Path of this.
    4. $this->view->breadcrumbArray = $breadcrumbArray;
    5. /* BreadCrumb ends Here */

    2) Open the view html file to display breadcrumb

    1. echo Zend_Common_Common::breadcrumb($this->breadcrumarray);

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: