<?
/* @var $html HtmlHelper */
$html->...
?>
anonymous user on 10/4/08
How to use html templates in ctp files? I have a problem with this because in ctp files only PHP templates works for me.
anonymous user on 10/7/08
raph: For me when I’m not inside a <?php ?>
block the html templates trigger, since all the templates I posted have <?php ?>
I posted them as html templates, but I think you should be able to import them into the PHP templates. By the way I’m just using the PHP/default HTML editor for .ctp/.thtml files.
mark story on 10/8/08
Just a note, the same should work in most cases for Zend Studio too (at least in the old non-eclipse version).
anonymous user on 10/9/08
dr. Hannibal Lecter: Good to know, all the snippets will work in the current versions of Zend Studio as well, as they are sibling projects.
mark story on 10/9/08
Mark: everything it’s ok – my mistake. :)
anonymous user on 10/10/08
Can get the models working, but not the components. Trying it with Auth as such:
/**
* AuthComponent
*
* @var Auth
*/
var $Auth;
anonymous user on 10/16/08
gravyface: Try using @var AuthComponent instead. That is the proper classname.
mark story on 10/16/08
That did it. Thanks, Mark. Great lookin’ site btw.
anonymous user on 10/16/08
how to make ‘Code completion’ work in Views?
I really don’t where to put
sopheak on 3/19/09
Thanks, good solution.
sopheak: you might create another project with the file code_completion_views.php and add it to your include_path.
danilo04 on 4/13/09
You could also use PHPEclipse has good autocompletion feature and more
Refer here on the steps on how to setup it for CakePHP
http://myleskadusale.wordpress.com/2009/04/30/my-cakephp-developers-tools/
Myles on 5/21/09
I want to code completion in eclipse with whole cakephp framework , to get references to clasess etc, how to it done?
german on 7/5/09
It does not work. In post.php (model) this is its code:
“
<?php
class Post extends AppModel
{
var $name = ‘Post’;
/**
* Post Model
*
* @var Post
*/
var $Post;
}
?>
“
In posts_controller.php $this->(dose not prompt Post) and $this->Post->(does not prompt prperties and methodes of the mother class AppModel.)
Said Bakr on 7/10/09
I use Codelobster PHP Edition with special CakePHP plug-in for developing CakePHP projects.
Stas on 6/7/10
Stas – it’s too bad this post had to end in spam. code lobster won’t solve code completion issues in eclipse. Many folks who also try codelobster end up going to back to eclipse because the plug-ins are really minimalistic and seem to be a marketing cash grab. The ide is just ok in my opinion.
Terry on 3/3/11
Anyway to get $this->form instead of $form-> code completion in views in Aptana Php?
baker7 on 3/17/11
This doesn’t work for views when using $this->
Ezequiel on 1/24/12
does not work in view templates.
samir on 3/19/12
Code completion in you Views
Try this one:
/* @var $html HtmlHelper */ $html->…
?>
anonymous user on 10/4/08