Call to a member function on a non-object zend

I'm working with the Zend framework, backed by MySQL, and trying to set up an index view. However, with the code I have, I keep getting the "call to a member function on a non-object" error and I don't know how to solve it. Here's the Controller for my index page:. Finally, here's the source of my Index view page where I'm trying to display the values from the DImage model:.

call to a member function on a non-object zend

When I load that page, I get the "Call to a member function getImageDesCol on a non-object" error instead of a rendered page. Since I'm new to the Zend framework and PHP in general, I feel like there's something obvious that I'm missing.

What can I do to fix this?

As such, you need to explicitly pass to the view whatever objects the view scripts will use. By posting your answer, you agree to the privacy policy and terms of service.

Using MySQL Stored Procedure IN/OUT and Recordset w/ PHP « Joey Rivera

Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us.

Write your own PHP MVC Framework (Part 1) | anant garg

Log In Sign Up. Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: Here's the Controller for my index page: Brighid McDonnell 2, 2 22 Varun 30 1 4. Yup that works but I am unable to display data which it should suppose to do.

call to a member function on a non-object zend

Instead o returning data from the DB, try to return a fixed string e. If it prints, then debug your DB query. Thanks a lot guys! Hey thanks for the reply. I just it did but its not working.

Sign up or log in StackExchange. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

call to a member function on a non-object zend
Rating 4,7 stars - 661 reviews
inserted by FC2 system