over 9 years ago
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.
- /* BreadCrumb starts Here */
- $breadcrumbArray = Array("Hostipal Listing" => "http://www.abc.com/hostpitals/listing/", "Xyx Hostpital" => "");
- //key will describe the word appear in breadcrumb and value will the Path of this.
- $this->view->breadcrumbArray = $breadcrumbArray;
- /* BreadCrumb ends Here */
/* BreadCrumb starts Here */ $breadcrumbArray = Array("Hostipal Listing" => "http://www.abc.com/hostpitals/listing/", "Xyx Hostpital" => ""); //key will describe the word appear in breadcrumb and value will the Path of this. $this->view->breadcrumbArray = $breadcrumbArray; /* BreadCrumb ends Here */
2) Open the view html file to display breadcrumb
0 Comment(s)