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 6920021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:05:43+00:00 2026-05-27T10:05:43+00:00

We had a developer code for us, and he did it in php. When

  • 0

We had a developer code for us, and he did it in php. When we were studying the code, we noticed that all the views have html as their extension instead of phtml. We checked by renaming a file to phtml, and it gives an error. What’s amazing is that they have not done this in the app, they have done it at Zend Level.

IF I replace the zend framework in the library directory with a fresh download, the app stops working. saying that the view was not found

Does anyone know how they did this (modified ZF to search for html instead of phtml files)?

One more thing:
all over the place, he’s using a variable $this->baseURL (not $this->baseUrl() as provided by zF) which holds the base url. Its not a helper, I checked and can’t seem to find the declaration anywhere in the code, but still magically it is available through all the controllers and views. How did they implement? I did a search through all the files, but nowhere is baseURL defined or the option baseURL written to AUTH, STORAGE, or anything. So how did he get to this? Modify the zf again?

  • 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-27T10:05:43+00:00Added an answer on May 27, 2026 at 10:05 am

    They may have changed the Zend Layout class file Zend/Layout.php.

    You can check for protected $_viewSuffix = 'html'; instead of phtml which is the default.

    You can fix this by adding the following to your bootstrap so you can upgrade the Zend Framework files.

    protected function _initViewSuffix()
    {
        Zend_Layout::getMvcInstance()->setViewSuffix('html');
    }
    

    As for the $baseURL variable, this could have been set via a plugin, or action helper.

    If you get the view object you can do something like $view->baseURL = 'xxx'; to make it available. This can be done from a plugin or action helper.

    Hope that helps.

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

Sidebar

Related Questions

I'm a c# developer but have a job that involves some jsp code. I've
I had another developer ask why I use List all over the place ...
I had a developer tell me recently that you should ALWAYS do database calls
I noticed something in Chrome the other day- I had opened Developer Tools, and
I just had a conversation with my lead developer who disagreed that unit tests
Did you ever had a bug in your code, you could not resolve? I
I'm a php developer, but recently had to write the same application twice, once
Debugging one of my projects I noticed another developer had changed the $(document).ready() function
I am not a MYSQL developer, but just had to write some code. Please
I recently had a discussion with another developer who claimed to me that JOINs

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.