I use Panic's Coda, with a plugin installed to do php syntax verification so I don't take down my employer's site with a dumb error.![]()
http://www.chipwreck.de/blog/software/coda-php/Could you link me up to the plugin? Been looking for one of them for ages!!
You may either right click any variable or class name and select Open Declaration from the dropdown menu or click on var or class and press F3.Since this is about eclipse pdt.. I am trying to get it going. I got it to import as a project. But how do I get it so that when I see a class being referenced somewhere that I can rightclick it and go to definition?
I assume eclipse can handle that?
The problem is... nothing happens when I do that..You may either right click any variable or class name and select Open Declaration from the dropdown menu or click on var or class and press F3.
The greatness of an app has nothing to do with the tools that are used to create it, in that respect you are right.I've coded many pieces of software, apps and mods using Notepad++, and I've never even touched an IDE. I expect that to continue during my time coding for XenForo once I get my head around the formatting. I'm too fixed into the IP.Board methods, which I love working with.
Personally, I believe it is the talent of the coder, not the power of their tools that makes a great app.
[INDENT=1]<?php[/INDENT]
[INDENT=1]class bla extends XenForo_Model {[/INDENT]
[INDENT=1] public function blubb() {[/INDENT]
[INDENT=1] $beer = $this->_getPostModel()->getPostsByIds($test, array());[/INDENT]
[INDENT=1] }[/INDENT]
[INDENT=1] protected function _getPostModel() {[/INDENT]
[INDENT=1] return $this->getModelFromCache('XenForo_Model_Post');[/INDENT]
[INDENT=1] }[/INDENT]
[INDENT=1]}[/INDENT]
Almost every IDE out there would need hinting to resolve that code and identify getPostsByIds(). Try this instead:To put the IDE to the test, how does your IDE behave in the following case:
<?phpclass bla extends XenForo_Model {public function blubb() {$beer = $this->_getPostModel()->getPostsByIds($test, array());}protected function _getPostModel() {return $this->getModelFromCache('XenForo_Model_Post');}}
PhpStorm marks getPostByIds() as an undefined method. How about the IDE you are using?
<?php
class bla extends XenForo_Model {
public function blubb() {
$beer = $this->_getPostModel()->getPostsByIds($test, array());
}
/**
* @return XenForo_Model_Post
*/
protected function _getPostModel() {
return $this->getModelFromCache('XenForo_Model_Post');
}
}
Don't be a notepad snob, use decent tools to save you time and do a better job.
There might be 10 PHP files driving a single page you're looking at.Why an ide instead of a simple editor?
In fact i understood quite nothing up to now!There might be 20 PHP files driving a single page you're looking at.
Then when you write a plugin, that's at least 2 more PHP files.
You'd rather view 22 separate PHP files and have to constantly read through them to understand the relationships between the files and how the code links together?
Since this is about eclipse pdt.. I am trying to get it going. I got it to import as a project. But how do I get it so that when I see a class being referenced somewhere that I can rightclick it and go to definition?
I assume eclipse can handle that?
We use essential cookies to make this site work, and optional cookies to enhance your experience.