Does anyone know if it is possible to get code completion working for Views in eclipse? I've got it working for Models in a controller, but can't seem to get any code completion when in a View, and do something like <div><?php echo $html->.... I'm just wondering if there is some configuration option I'm missing or something like that.
> Does anyone know if it is possible to get code completion working for > Views in eclipse? I've got it working for Models in a controller, but > can't seem to get any code completion when in a View, and do something > like <div><?php echo $html->.... I'm just wondering if there is some > configuration option I'm missing or something like that.
> - Add *.thtml to Preferences->General->Content Types->PHP Content > Type > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> >Editors->File Associations
> regards,
> Michael
> Stu schrieb:
> > Hi Bakers,
> > Does anyone know if it is possible to get code completion working for > > Views in eclipse? I've got it working for Models in a controller, but > > can't seem to get any code completion when in a View, and do something > > like <div><?php echo $html->.... I'm just wondering if there is some > > configuration option I'm missing or something like that.
> Ah ok, I'd done the first step but not the second step. I'm at work at > the moment, but I'll do the second step when I get home.
> Thanks
> On Oct 7, 5:28 pm, schneimi <michael.schne...@arcor.de> wrote: > > Hi,
> > You have to do two steps:
> > - Add *.thtml to Preferences->General->Content Types->PHP Content > > Type > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > >Editors->File Associations
> > regards,
> > Michael
> > Stu schrieb:
> > > Hi Bakers,
> > > Does anyone know if it is possible to get code completion working for > > > Views in eclipse? I've got it working for Models in a controller, but > > > can't seem to get any code completion when in a View, and do something > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > configuration option I'm missing or something like that.
> Yes, you are right, the second step is not necessary.
> Stu schrieb:
> > Ah ok, I'd done the first step but not the second step. I'm at work at > > the moment, but I'll do the second step when I get home.
> > Thanks
> > On Oct 7, 5:28 pm, schneimi <michael.schne...@arcor.de> wrote: > > > Hi,
> > > You have to do two steps:
> > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > Type > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > >Editors->File Associations
> > > regards,
> > > Michael
> > > Stu schrieb:
> > > > Hi Bakers,
> > > > Does anyone know if it is possible to get code completion working for > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > can't seem to get any code completion when in a View, and do something > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > configuration option I'm missing or something like that.
> Well, I unfortunately can't get code completion on methods in $form->, > or $html-> in a view (*.ctp file).
> It's no big deal, but it would be very nice.
> On Oct 8, 1:58 pm, schneimi <michael.schne...@arcor.de> wrote: > > Yes, you are right, the second step is not necessary.
> > Stu schrieb:
> > > Ah ok, I'd done the first step but not the second step. I'm at work at > > > the moment, but I'll do the second step when I get home.
> > > Thanks
> > > On Oct 7, 5:28 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > Hi,
> > > > You have to do two steps:
> > > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > > Type > > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > > >Editors->File Associations
> > > > regards,
> > > > Michael
> > > > Stu schrieb:
> > > > > Hi Bakers,
> > > > > Does anyone know if it is possible to get code completion working for > > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > > can't seem to get any code completion when in a View, and do something > > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > > configuration option I'm missing or something like that.
But the names are standardised. Could you perhaps put some kind of alias for the helper objects in the app during development using those names then remove them for production?
On Oct 8, 9:53 pm, schneimi <michael.schne...@arcor.de> wrote:
> Yes that would be nice, but i think it's not possible, because these > variables are handled by cake.
> Stu schrieb:
> > Well, I unfortunately can't get code completion on methods in $form->, > > or $html-> in a view (*.ctp file).
> > It's no big deal, but it would be very nice.
> > On Oct 8, 1:58 pm, schneimi <michael.schne...@arcor.de> wrote: > > > Yes, you are right, the second step is not necessary.
> > > Stu schrieb:
> > > > Ah ok, I'd done the first step but not the second step. I'm at work at > > > > the moment, but I'll do the second step when I get home.
> > > > Thanks
> > > > On Oct 7, 5:28 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > Hi,
> > > > > You have to do two steps:
> > > > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > > > Type > > > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > > > >Editors->File Associations
> > > > > regards,
> > > > > Michael
> > > > > Stu schrieb:
> > > > > > Hi Bakers,
> > > > > > Does anyone know if it is possible to get code completion working for > > > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > > > can't seem to get any code completion when in a View, and do something > > > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > > > configuration option I'm missing or something like that.
> But the names are standardised. Could you perhaps put some kind of > alias for the helper objects in the app during development using those > names then remove them for production?
> On Oct 8, 9:53 pm, schneimi <michael.schne...@arcor.de> wrote: > > Yes that would be nice, but i think it's not possible, because these > > variables are handled by cake.
> > Stu schrieb:
> > > Well, I unfortunately can't get code completion on methods in $form->, > > > or $html-> in a view (*.ctp file).
> > > It's no big deal, but it would be very nice.
> > > On Oct 8, 1:58 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > Yes, you are right, the second step is not necessary.
> > > > Stu schrieb:
> > > > > Ah ok, I'd done the first step but not the second step. I'm at work at > > > > > the moment, but I'll do the second step when I get home.
> > > > > Thanks
> > > > > On Oct 7, 5:28 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > > Hi,
> > > > > > You have to do two steps:
> > > > > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > > > > Type > > > > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > > > > >Editors->File Associations
> > > > > > regards,
> > > > > > Michael
> > > > > > Stu schrieb:
> > > > > > > Hi Bakers,
> > > > > > > Does anyone know if it is possible to get code completion working for > > > > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > > > > can't seem to get any code completion when in a View, and do something > > > > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > > > > configuration option I'm missing or something like that.
> Not that beautiful, but it will never be executed and Eclipse does the > completion anyway. Maybe that helps.
> Michael
> Not very beautiful but will never run and > voidstate schrieb: > > But the names are standardised. Could you perhaps put some kind of > > alias for the helper objects in the app during development using those > > names then remove them for production?
> > On Oct 8, 9:53 pm, schneimi <michael.schne...@arcor.de> wrote: > > > Yes that would be nice, but i think it's not possible, because these > > > variables are handled by cake.
> > > Stu schrieb:
> > > > Well, I unfortunately can't get code completion on methods in $form->, > > > > or $html-> in a view (*.ctp file).
> > > > It's no big deal, but it would be very nice.
> > > > On Oct 8, 1:58 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > Yes, you are right, the second step is not necessary.
> > > > > Stu schrieb:
> > > > > > Ah ok, I'd done the first step but not the second step. I'm at work at > > > > > > the moment, but I'll do the second step when I get home.
> > > > > > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > > > > > Type > > > > > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > > > > > >Editors->File Associations
> > > > > > > regards,
> > > > > > > Michael
> > > > > > > Stu schrieb:
> > > > > > > > Hi Bakers,
> > > > > > > > Does anyone know if it is possible to get code completion working for > > > > > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > > > > > can't seem to get any code completion when in a View, and do something > > > > > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > > > > > configuration option I'm missing or something like that.
> > Not that beautiful, but it will never be executed and Eclipse does the > > completion anyway. Maybe that helps.
> > Michael
> > Not very beautiful but will never run and > > voidstate schrieb: > > > But the names are standardised. Could you perhaps put some kind of > > > alias for the helper objects in the app during development using those > > > names then remove them for production?
> > > On Oct 8, 9:53 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > Yes that would be nice, but i think it's not possible, because these > > > > variables are handled by cake.
> > > > Stu schrieb:
> > > > > Well, I unfortunately can't get code completion on methods in $form->, > > > > > or $html-> in a view (*.ctp file).
> > > > > It's no big deal, but it would be very nice.
> > > > > On Oct 8, 1:58 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > > Yes, you are right, the second step is not necessary.
> > > > > > Stu schrieb:
> > > > > > > Ah ok, I'd done the first step but not the second step. I'm at work at > > > > > > > the moment, but I'll do the second step when I get home.
> > > > > > > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > > > > > > Type > > > > > > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > > > > > > >Editors->File Associations
> > > > > > > > regards,
> > > > > > > > Michael
> > > > > > > > Stu schrieb:
> > > > > > > > > Hi Bakers,
> > > > > > > > > Does anyone know if it is possible to get code completion working for > > > > > > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > > > > > > can't seem to get any code completion when in a View, and do something > > > > > > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > > > > > > configuration option I'm missing or something like that.
> > > Not that beautiful, but it will never be executed and Eclipse does the > > > completion anyway. Maybe that helps.
> > > Michael
> > > Not very beautiful but will never run and > > > voidstate schrieb: > > > > But the names are standardised. Could you perhaps put some kind of > > > > alias for the helper objects in the app during development using those > > > > names then remove them for production?
> > > > On Oct 8, 9:53 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > Yes that would be nice, but i think it's not possible, because these > > > > > variables are handled by cake.
> > > > > Stu schrieb:
> > > > > > Well, I unfortunately can't get code completion on methods in $form->, > > > > > > or $html-> in a view (*.ctp file).
> > > > > > It's no big deal, but it would be very nice.
> > > > > > On Oct 8, 1:58 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > > > Yes, you are right, the second step is not necessary.
> > > > > > > Stu schrieb:
> > > > > > > > Ah ok, I'd done the first step but not the second step. I'm at work at > > > > > > > > the moment, but I'll do the second step when I get home.
> > > > > > > > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > > > > > > > Type > > > > > > > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > > > > > > > >Editors->File Associations
> > > > > > > > > regards,
> > > > > > > > > Michael
> > > > > > > > > Stu schrieb:
> > > > > > > > > > Hi Bakers,
> > > > > > > > > > Does anyone know if it is possible to get code completion working for > > > > > > > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > > > > > > > can't seem to get any code completion when in a View, and do something > > > > > > > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > > > > > > > configuration option I'm missing or something like that.
> > > > > > > > > > Any help would be appreciated,
> > > > Not that beautiful, but it will never be executed and Eclipse does the > > > > completion anyway. Maybe that helps.
> > > > Michael
> > > > Not very beautiful but will never run and > > > > voidstate schrieb: > > > > > But the names are standardised. Could you perhaps put some kind of > > > > > alias for the helper objects in the app during development using those > > > > > names then remove them for production?
> > > > > On Oct 8, 9:53 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > > Yes that would be nice, but i think it's not possible, because these > > > > > > variables are handled by cake.
> > > > > > Stu schrieb:
> > > > > > > Well, I unfortunately can't get code completion on methods in $form->, > > > > > > > or $html-> in a view (*.ctp file).
> > > > > > > It's no big deal, but it would be very nice.
> > > > > > > On Oct 8, 1:58 pm, schneimi <michael.schne...@arcor.de> wrote: > > > > > > > > Yes, you are right, the second step is not necessary.
> > > > > > > > Stu schrieb:
> > > > > > > > > Ah ok, I'd done the first step but not the second step. I'm at work at > > > > > > > > > the moment, but I'll do the second step when I get home.
> > > > > > > > > > - Add *.thtml to Preferences->General->Content Types->PHP Content > > > > > > > > > > Type > > > > > > > > > > - Add *.thtml and assign the PHP-Editor in Preferences->General-
> > > > > > > > > > >Editors->File Associations
> > > > > > > > > > regards,
> > > > > > > > > > Michael
> > > > > > > > > > Stu schrieb:
> > > > > > > > > > > Hi Bakers,
> > > > > > > > > > > Does anyone know if it is possible to get code completion working for > > > > > > > > > > > Views in eclipse? I've got it working for Models in a controller, but > > > > > > > > > > > can't seem to get any code completion when in a View, and do something > > > > > > > > > > > like <div><?php echo $html->.... I'm just wondering if there is some > > > > > > > > > > > configuration option I'm missing or something like that.
> > > > > > > > > > > Any help would be appreciated,
Better surely to just create a file in the root of you dev site (called "eclipse_helper.php" or something) so it never get called and you don't have to put code into working pages.
Something like:
-----
<? // stop page loading exit;
// reference helpers so Eclipse provides code completion $ajax = new AjaxHelper(); $cache = new CacheHelper(); $form = new FormHelper(); $html = new HtmlHelper(); $javascript = new JavascriptHelper(); $number = new NumberHelper(); $session = new SessionHelper(); $text = new TextHelper(); $time = new TimeHelper(); ?>
-----
voidstate
On Oct 11, 6:39 pm, Mech7 <chris.de....@gmail.com> wrote:
I use Easy Eclipse for PHP. I created eclipse_helper.php, copied all of the above and pasted it in the file. Then placed the file in webroot folder, did a Project->Clean->Build (made sure .thtml files are opened by PHP editor).
However, I still couldn't see code completion when I typed $html-> (and then ctrl + space).
Then I tell you my own experience with PDT/Cake Code Completion. My config : Eclipse Europa 3.3 + PDT 1.0 + Cake 1.2 with advanced install/config("Cake core", "app dir" and "webroot dir" in three different paths) )
- the "voidstate" example is very cool for helpers methods completion in view (file with $helper = new Helper())
- the "schneimi"'s method for models completion in controllers works fine, but it's necessary to copy it in each controllers you create and replace "model" by your model name... I've tried to put this in AppController, but it doesn't work. Any ideas to add completion for all controllers in one place?
- this 2 methods doesn't work if I use Subclipse and check out a cake app directory as an Eclipse project. In this case, there are no code completion, even Php builtin functions! Any ideas why code completion doesn't work with a SVN shared project?
- and last, is it possible to take code completion for "components'", "behaviors", "elements" and so on?
> I use Easy Eclipse for PHP. I created eclipse_helper.php, copied all > of the above and pasted it in the file. Then placed the file in > webroot folder, did a Project->Clean->Build (made sure .thtml files > are opened by PHP editor).
> However, I still couldn't see code completion when I typed $html-> > (and then ctrl + space).
> - the "schneimi"'s method for models completion in controllers works > fine, but it's necessary to copy it in each controllers you create and > replace "model" by your model name... I've tried to put this in > AppController, but it doesn't work. Any ideas to add completion for > all controllers in one place?
Model completion works in all controllers for me with the phpdoc in the AppController. Maybe your controllers extend Controller and not AppController.
> - this 2 methods doesn't work if I use Subclipse and check out a cake > app directory as an Eclipse project. In this case, there are no code > completion, even Php builtin functions! Any ideas why code completion > doesn't work with a SVN shared project?
I also remember problems with SVN checkout as a project, it seems like it isn't handled as a PHP project that way. I use to create a PHP project first and then use the import for that project to get the data from SVN.
> - and last, is it possible to take code completion for "components'", > "behaviors", "elements" and so on?
It should be possible to extend the completion to the other stuff, e.g. this works for the Session-Component: /** * @var SessionComponent */ var $Session;
- Michael
On 13 Nov., 17:56, avairet <avai...@groupeafg.com> wrote:
> Then I tell you my own experience with PDT/Cake Code Completion. > My config : Eclipse Europa 3.3 + PDT 1.0 + Cake 1.2 with advanced > install/config("Cake core", "app dir" and "webroot dir" in three > different paths) )
> - the "voidstate" example is very cool for helpers methods completion > in view (file with $helper = new Helper())
> - the "schneimi"'s method for models completion in controllers works > fine, but it's necessary to copy it in each controllers you create and > replace "model" by your model name... I've tried to put this in > AppController, but it doesn't work. Any ideas to add completion for > all controllers in one place?
> - this 2 methods doesn't work if I use Subclipse and check out a cake > app directory as an Eclipse project. In this case, there are no code > completion, even Php builtin functions! Any ideas why code completion > doesn't work with a SVN shared project?
> - and last, is it possible to take code completion for "components'", > "behaviors", "elements" and so on?
> Thank's for your kind attention and best regards!
> Avairet
> On 15 oct, 05:35, Mandy <man...@gmail.com> wrote:
> > I use Easy Eclipse for PHP. I created eclipse_helper.php, copied all > > of the above and pasted it in the file. Then placed the file in > > webroot folder, did a Project->Clean->Build (made sure .thtml files > > are opened by PHP editor).
> > However, I still couldn't see code completion when I typed $html-> > > (and then ctrl + space).
Thank's a lot for your answer. I've just need some precisions:
>>> Model completion works in all controllers for me with the phpdoc in
the AppController. Maybe your controllers extend Controller and not AppController.
No, my controllers extends AppController. e.g. :
[code] class ArticlesController extends AppController { public $name = 'Articles';
}
[/code]
If I write this in my AppController class, the code completion doesn't work in the controller "ArticlesController": [code] class AppController extends Controller { /** * @var Model */ var Model
}
[/code]
Must I write the name of all my models with PHPDoc in AppController?
>>>>I use to create a PHP
project first and then use the import for that project to get the data from SVN.
OK, I will test that.
>>>>t should be possible to extend the completion to the other stuff,
e.g. this works for the Session-Component.
Must I write the PHPDoc comment in all my controllers which are using SessionComponent? Or I must write it in AppController too?
I hope my message is understandable...
Have a nice day !
Aurélien (avairet)
On 13 nov, 18:47, schneimi <michael.schne...@arcor.de> wrote:
> > - the "schneimi"'s method for modelscompletionin controllers works > > fine, but it's necessary to copy it in each controllers you create and > > replace "model" by your model name... I've tried to put this in > > AppController, but it doesn't work. Any ideas to addcompletionfor > > all controllers in one place?
> Modelcompletionworks in all controllers for me with the phpdoc in > the AppController. Maybe your controllers extend Controller and not > AppController.
> > - this 2 methods doesn't work if I use Subclipse and check out a cake > > app directory as an Eclipse project. In this case, there are no code > >completion, even Php builtin functions! Any ideas why codecompletion > > doesn't work with a SVN shared project?
> I also remember problems with SVN checkout as a project, it seems like > it isn't handled as a PHP project that way. I use to create a PHP > project first and then use the import for that project to get the data > from SVN.
> > - and last, is it possible to take codecompletionfor "components'", > > "behaviors", "elements" and so on?
> It should be possible to extend thecompletionto the other stuff, > e.g. this works for the Session-Component: > /** > * @var SessionComponent > */ > var $Session;
> - > Michael
> On 13 Nov., 17:56, avairet <avai...@groupeafg.com> wrote:
> > Hi everybody!
> > Firstly, excuse me for my simple English...
> > Then I tell you my own experience with PDT/Cake CodeCompletion. > > My config : Eclipse Europa 3.3 + PDT 1.0 + Cake 1.2 with advanced > > install/config("Cake core", "app dir" and "webroot dir" in three > > different paths) )
> > - the "voidstate" example is very cool for helpers methodscompletion > > in view (file with $helper = new Helper())
> > - the "schneimi"'s method for modelscompletionin controllers works > > fine, but it's necessary to copy it in each controllers you create and > > replace "model" by your model name... I've tried to put this in > > AppController, but it doesn't work. Any ideas to addcompletionfor > > all controllers in one place?
> > - this 2 methods doesn't work if I use Subclipse and check out a cake > > app directory as an Eclipse project. In this case, there are no code > >completion, even Php builtin functions! Any ideas why codecompletion > > doesn't work with a SVN shared project?
> > - and last, is it possible to take codecompletionfor "components'", > > "behaviors", "elements" and so on?
> > Thank's for your kind attention and best regards!
> > Avairet
> > On 15 oct, 05:35, Mandy <man...@gmail.com> wrote:
> > > I use Easy Eclipse for PHP. I created eclipse_helper.php, copied all > > > of the above and pasted it in the file. Then placed the file in > > > webroot folder, did a Project->Clean->Build (made sure .thtml files > > > are opened by PHP editor).
> > > However, I still couldn't see codecompletionwhen I typed $html-> > > > (and then ctrl + space).
Sorry, I've made an error in code. This is the code I write in my AppController (var $model):
[code] class AppController extends Controller { /** * @var Model */ var $model
}
[/code]
Otherwise, I've tested your solution for SVN, but it doesn't work. Even I use "Import SVN" in an existing PHP project, no code completion is available, even PHP built'in functions like "mysql_close" or "str_replace" are unavailable!
Moreover, the Eclipse Outline View doesn't work too with a SVN checkout project! It's impossible to take some Eclipse/PDT utilities with that kind of project! Currently I think create 2 projects in Eclipse: one for SVN checkout and one for my real web project. And then I will merge all files before making my SVN commits...
I've resolved the problem with code completion in SVN project! In my SVN repository, there was a file called ".project" (an error of my collegues), so when I checked out, Subclipse did never ask me what kind of project I want to create! I've deleted it and now all work fine!
Thank's to Hannes and Nagy for their answers which have enlighten me about the ways to explore!
The steps: 1. create and connect to a SVN Repository via the SVN Repository Exploring perspective 2. right-click on the repository, choose "Checkout" 3. check the first radio button "check out as a project configured using the New Project Wizard" and click "Finish" button. 4. in the wizard select window, choose "PHP>PHP project" and then click "Next" button 5. select where you want to store the project and name it (for me, the location is not the default workspace, so I uncheck the radio button and select the directory in my file system) 6. click next to include Cakephp core 7. return to your PHP perspective where a new project is now available on the left panel 8. edit or create a file : all Eclipse PDT plugin utilities are available! 9. use "Voidstate" method (describe above) to get helpers autocompletion in views and Michael "Schneimi" trick to get models/ components methods autocompletion in your controllers. GREAT !!!
> Must I write the name of all my models with PHPDoc in AppController?
Yes you must! Each model,component,... must be put in like that code example, each var must have the phpDoc in its comment above, but only one time in the AppController.
Good to see the SVN problem is solved, I wasn't sure about that.
> Otherwise, I've tested your solution for SVN, but it doesn't work. > Even I use "Import SVN" in an existing PHP project, no code completion > is available, even PHP built'in functions like "mysql_close" or > "str_replace" are unavailable!
> Moreover, the Eclipse Outline View doesn't work too with a SVN > checkout project! It's impossible to take some Eclipse/PDT utilities > with that kind of project > Currently I think create 2 projects in Eclipse: one for SVN checkout > and one for my real web project. And then I will merge all files > before making my SVN commits...
But is it a good idea to "load" all models in AppController whereas
this models are not used in all Controllers that extends
AppController?
Or your trick doesn't "load" the models but just indicates it for code
completion to PDT Eclipse?
In the same way, HtmlHelper is declared in CakeCore's Controller Class
so it's not necessary to write "$helpers = array('html');" in our own
controllers, views and helpers? In this case, why couldn't we write
all available Models, Helpers, Components in a unique place (e.g.
AppController)?
Because in practice, there are a lot of same declarations, like
'$helpers = array('html','form')", in our applications!
I'm sorry but this kind of details are not trivial for me...