Skip to content

Commit 422a34f

Browse files
authored
Update README.md
1 parent c44f154 commit 422a34f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,14 @@ Add the **JsUtils** component loading in the initialize method of the base contr
291291

292292
the jquery object in controller will be accessible on
293293
`$this->JsUtils->jquery`
294+
295+
## Code completion in IDE
296+
297+
With most IDEs (such as Eclipse or phpStorm), to get code completion on the $ jquery instance, you must add the following property in the controller documentation:
298+
```php
299+
/**
300+
* @property Ajax\JsUtils $jquery
301+
**/
302+
class MyController{
303+
}
304+
```

0 commit comments

Comments
 (0)