Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4570706
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:24:00+00:00 2026-05-21T19:24:00+00:00

A page I have in my app will not display the required text so

  • 0

A page I have in my app will not display the required text so I checked my Apache error log and I found the following notice/error.

 PHP Notice:  Undefined index: PetManager_Model_Groomprocedures display.phtml on line 34 

It is due to the fact that I’m trying to display a result from a query and it can’t seem to obtain this item from my result array.
The situation is I’m querying a booking table that is related to a services table (theses elements display fine) the services table is in turn related to a procedures table(this is the element that will not display).

Can someone tell me where I’m going wrong i.e. my Query or my display code and how can I get this to work.

Query Code from my Display Action

     if ($input->isValid()) {
         $q = Doctrine_Query::create()
            ->from('PetManager_Model_Kennelbooking k')
            ->leftJoin('k.PetManager_Model_Kennelservices s')
            ->leftJoin('s.PetManager_Model_Groomprocedures g')
            ->leftJoin('k.PetManager_Model_Clients c')
            ->leftJoin('k.PetManager_Model_Kennels l')
            ->where('k.kennelbookingID = ?', $input->id);
            if('k.groomingIncluded'==1)
            {$q->addWhere('s.groomingGiven=g.groomProceduresID');
            }

  $result = $q->fetchArray();
  if (count($result) == 1) {
    $this -> view -> booking = $result[0]; 

The display code from my phtml file

   <td class="key">Grooming Procedure </td>
 </tr>
 <tr>
 <?php if($this->booking['PetManager_Model_Kennelservices']['groomingGiven']==NULL)
    echo '<td>'.'There is no grooming procedure associated for this booking'.'</td>';
    else echo '<td>'.$this->escape($this->booking['PetManager_Model_Groomprocedures']['groomprocedure']).'</td>';
    ;?>
 </tr>  

Many thanks in advance,

Graham

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:24:01+00:00Added an answer on May 21, 2026 at 7:24 pm

    As you can see the index PetManager_Model_Groomprocedures is not defined in the booking-variable.

    To see which keys are available do the following in your controller to get a debug output.

    echo '<pre>';print_r($result[0]);echo '</pre>';exit;
    

    You will see which keys are available in this array. I guess you are not selecting the wanted row explicitly. You will modify your query this way, that you also do select the wanted row.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that display's the current time when a page opens. I
I have created a Page Tab Facebook App where I want to display different
I have an app that will display web pages within a UIWebView. The pages
I have a JSP page that will display the exact content of another web
I have a Google App Engine app - http://mylovelyapp.appspot.com/ It has a page -
Background I have a page on my ASP.NET MVC web app for users to
I have a rails app running on port 3000. The page in question has
I have a web page that is being displaying in a winform app using
I have a user profile page on my web app which has contact information.
I have a simple web app: a web page with a form to submit,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.