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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:22:07+00:00 2026-05-28T16:22:07+00:00

They gave me some tasks over a huge site realized with Magento. I use

  • 0

They gave me some tasks over a huge site realized with Magento.
I use Netbeans with Xdebug to debug (I’m on lubuntu oneiric btw) and I’m finding myself quite fine with all my tasks.
It happened to me to face a task concerning a class redeclaration and I lost a lot of time in finding the right file to change.

Just to learn how to do it correctly:
the task was to change the meta keywords, starting from a code like

<meta name="keywords" content="<?php echo htmlspecialchars($this->getKeywords()) ?>" />

With Netbeans debugger I can easily open the file containing getKeywords() which has:

public function getKeywords()
{
    if (empty($this->_data['keywords'])) {
        $this->_data['keywords'] = Mage::getStoreConfig('design/head/default_keywords');
    }
    return $this->_data['keywords'];
}

Now I couldn’t find an easy way to go on through debugging in both cases 🙁
In particular my case is that $this->_data['keywords'] is not empty on the page I had to correct ..

so how can I easily know how this object is created and in particular who fills _data['keywords']?
It took me long time to find the right file by myself.

I’m not so expert in debugging, so maybe I could do it with netbeans w/ xdebug, but I cannot figure it out.

Thanks

  • 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-28T16:22:08+00:00Added an answer on May 28, 2026 at 4:22 pm

    open up terminal and

    grep 'setKeywords(' app/code/ -rsn 
    

    this will reveal you the locations where this variable is set or used

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

Sidebar

Related Questions

I was looking at an open source Mac application, and they gave some suggested
In Jquery Template website they gave this example.( http://api.jquery.com/jQuery.template/ ) <script> var movies =
Is there any design reason for that (like the reason they gave up multi
I am developing an application for a company, they gave me the admin role
I'm just starting with The Well-Grounded Rubyist, and they gave the following example: print
I some animations, they are like this: /OP/ /OP/OP1/ /OP/OP1/OP1.rmvb /OP/OP2/ /OP/OP2/OP2.rmvb /OP/OP3/ /OP/OP3/OP3.rmvb
I see some related questions have been asked, but they're either too advanced for
I am doing building an application for an app-store market. They gave me following
Currently we use log4net of version 1.2.10.0 and we should start using some 3rd
I have some source code which I had developed and later gave to another

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.