The Slim Framework support forum has moved to http://discourse.slimframework.com.
This Tender forum is no longer maintained or monitored.
Dependency Injection autosuggest for Komodo Edit
This issue is related to http://forum.komodoide.com/t/autocomplete-for-slim-framework-dependency-injection/1627
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Andrew Smith on 03 Jun, 2015 04:08 PM
This should solve it https://gist.github.com/silentworks/bacfc76b63b9f76b5c2c
2 Posted by smstoharpreet on 05 Jun, 2015 10:28 AM
the code works fine. But its works for this
but not forUPDTED CODE
Support Staff 3 Posted by Andrew Smith on 05 Jun, 2015 10:36 AM
Thats not valid PHP code. You cannot call a new getInstance unless getInstance is an actual class name.
4 Posted by smstoharpreet on 05 Jun, 2015 10:39 AM
if change the class to something like
I get an errorFatal error: Call to a member function set() on a non-object in /var/www/html/lyfboatapi/lyfboat/api/vendor/slim/slim/Slim/Slim.php on line 239
Support Staff 5 Posted by Andrew Smith on 05 Jun, 2015 10:43 AM
You class is called App not getInstance.
Also that error is related to something else as there is no set method in Slim.php. You would need to call $app->container->set();
6 Posted by smstoharpreet on 05 Jun, 2015 10:45 AM
see the code above and updated code.
code is italic coz markdown removed one *
Support Staff 7 Posted by Andrew Smith on 05 Jun, 2015 10:47 AM
If you are calling a static method, you cannot have the new keyword before it. The code should look like:
And that should work.
8 Posted by smstoharpreet on 05 Jun, 2015 10:50 AM
it was a mistake, removing NEW does not help either.
9 Posted by smstoharpreet on 05 Jun, 2015 10:52 AM
there are two problems
first autocomplete does not work
and even if i try running the code i get error
Fatal error: Call to a member function set() on a non-object in /var/www/html/lyfboatapi/lyfboat/api/vendor/slim/slim/Slim/Slim.php on line 239
Support Staff 10 Posted by Andrew Smith on 05 Jun, 2015 10:53 AM
One problem at a time.
Yeah because your return docblock in the getInstance method says object rather than \Library\App. An object can be anything, its not specific enough for your IDE to work it out.
I addressed the previous issue here http://help.slimframework.com/discussions/problems/10066-dependency...
11 Posted by lobebowi on 05 May, 2017 06:40 AM
I will buy a Kodak Camera for my family.
http://www.reviewshut.com/unlock-your-hip-flexors-review/
12 Posted by cokubafo on 06 May, 2017 06:41 AM
We will auto adjust the screen.
http://menobsession.com/
13 Posted by umts on 05 Jun, 2017 10:56 AM
I really love this concept. I will share it with my friends. Pure Natural Healing by Master Lim
14 Posted by nqvs on 06 Jun, 2017 07:45 AM
This is good for Komodo users. Heartburn No More - Reviewshut
15 Posted by bour on 07 Jun, 2017 07:21 AM
I will try to learn more about this Komodo. I have mentioned about this site
16 Posted by (anonymous) on 27 Dec, 2017 06:37 AM
This suggestion tool is important for developers. Woman Men Adore Review