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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:11:53+00:00 2026-06-07T00:11:53+00:00

In my PHP project I have two different models that have a function with

  • 0

In my PHP project I have two different models that have a function with the same.

class Foo
{
    function xyz()
    {
        return "foo";
    }
}

and

class Bar
{
    function xyz()
    {
        return "bar";
    }
}

The problem with Geany is when I try to go to a function definition. Consider the following:

$bla = new Foo();
echo $bla->xyz();

Normally if I CTRL+click on xyz I except it to go to function xyz() in class Foo, but Geany gets completely confused and goes to the definition in Bar.

Is there a way I can make Geany go to the actual definition, not the first one it finds?

  • 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-06-07T00:11:53+00:00Added an answer on June 7, 2026 at 12:11 am

    Sounds like, this editor has a simple lexer/parser-implementation for PHP with weak class/method/function-indexing. You can do 2 things to improve this scenario:

    1. Use another IDE. Eclipse (PDT or ZendStudio) is a common choice. Many people also use phpStorm or NetBeans. There are others to mention, but I think, these are the big players.
    2. Write a better Plugin for Geany. If Geany is you editor of choice, but it has other strengths which legitimate the usage, its the only way to go. Maybe, there is a better PHP-Plugin already.

    Another thing to mention: Due to PHPs weeknesses in type-hinting, there are a few ways to extend the abilities of some IDEs. Here are some examples: http://code.neox.net/2009/03/10/eclipse-pdt-code-completion-and-zend-framework/

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

Sidebar

Related Questions

I've got question to you. I have got two project in PHP that uses
I have these two file in my project that I am migrating from php.
I have a Django project that I need mounted at two different subdirectories of
I have a large-ish PHP project (hundreds of files) that I've been brought in
I have this problem getting my newly created php project on Netbeans work on
I have a php page that creates page data from two .txt files (one
I'm working on a project that involved getting information from two different servers. What
Suppose I have two url for the same file, say http://site.com/fr/page.php and http://site.com/en/page.php .
I have a PHP project setup in Netbeans (v6.8) where all the PHP files
All, We have a PHP project in SVN. We develop code and do SVN

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.