Is there any Code tracking software for phalcon?
|
Nov '15 |
10 |
965 |
0 |
But a simple IDE does the job right?
Lets say I have a function :
$someVariable = someFunction();
In Netbeans if I want to know where the function is defined, I simply Ctrl+Click on the "someFunction()" and it will show me. So that means you need intellisense/auto complete feature which is only available if you have phalcon dev tools for ide.
So here is the steps for setup
For Phalcon intellisense/ autocomplete setup with Netbeans or any IDE, download PHP-Dev tools from from here:
https://github.com/phalcon/phalcon-devtools
Note: the above tools have a folder called ide/1.3.2 . We need to map this directory to the IDE
Extract it to some directory. For Netbeans use the following steps:
Create a project in Netbeans or open phalcon php project Go to Properties of the project(by right click on the project)-> Include-> Add folder and map the directory upto
path-to\phalcon-devtools-master\ide\1.3.2
Thats it. Now all your classes/modules/functions etc... will be mapped and you can easily view them
Although the setup is for Netbeans I think it will work with any IDE.
Yes, it works, thank you very much. But it does not work with volt syntax.
For instance: When I visit https://localhost/invo/
I guess phalcon operating prosess like this:
invo/.htaccess/public/.htaccess invo/app/IndexController.php->initialize()->indexAction()->views->index.volt->{{ content() }}->index/index.volt->{{ content() }}
.......I got lost.
There are many" {{ content() }}" , priority is vague.
https://github.com/phalcon/invo/tree/master/app/views
1.app/views/index.volt
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{ get_title() }}
{{ stylesheet_link('bootstrap/css/bootstrap.css') }}
{{ stylesheet_link('bootstrap/css/bootstrap-responsive.css') }}
{{ stylesheet_link('css/style.css') }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Your invoices">
<meta name="author" content="Phalcon Team">
</head>
<body>
{{ content() }}
{{ javascript_include('js/jquery.min.js') }}
{{ javascript_include('bootstrap/js/bootstrap.js') }}
{{ javascript_include('js/utils.js') }}
</body>
</html>
{{ content() }}
<div class="hero-unit">
<h1>Welcome to INVO</h1>
<p>INVO is a revolutionary application to create invoices online for free.
Receive online payments from your clients and improve your cash flow</p>
<p>{{ link_to('session/register', 'Try it for Free »', 'class': 'btn btn-primary btn-large btn-success') }}</p>
</div>
.|)
app/views/index.volt is basically the generic volt file or lets say its the index.html file for a folder
{{ content() }} tag of app/views/index/index.volt is used say to the volt to put the following things inside the app/views/index.volt It replaces the {{ content() }} of app/views/index.volt with content of app/views/index/index.volt
For volt syntax highlighting, Netbeans does not highlight files other than PHP or HTML (if you installed it for PHP).
So add <?php tag at the top in a volt file and when you have completed your work remove the tag
For working with .volt file in Netbeans 8.0.2 - i do this and helps me format my .volt files
Tools --> options -->(Choose Miscellaneous tab) --> (Choose Files tab) --> in File Association Section --> File Extension --> Click New --> Type volt --> for Associated File Type(Mime), Chooose HTML Files (text/html) --> OK --> Apply All .volt files should close automatically, if not close and reopen your .volt files and you must see html formatting applied to your volt file .