Yii Framework Forum: Yiistorm - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Yiistorm PhpStorm extension for Yii Framework Rate Topic: ***** 4 Votes

#21 User is offline   mazx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 19-July 11

Posted 07 November 2013 - 03:40 PM

View PostOcean Wind, on 10 October 2013 - 10:48 AM, said:

I'm just trying out PHP Storm for the first time, and added YiiStorm. PHP Storm says it's getting the following error:


class with name "com.yiistorm.actions.YiiStormConfigAction" not found [Plugin: YiiStorm]: class with name "com.yiistorm.actions.YiiStormConfigAction" not found [Plugin: YiiStorm]


Any idea what's causing this? I don't want to be missing out on any goodies dot dot dot :-)

Wich version of plugin?
0

#22 User is offline   Alan.W 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 15-February 12

Posted 25 November 2013 - 04:50 AM

I use the phpstorm 7.0 and I download YiiStorm 0.9.7b , but yiistorm don't help me create new view, I use ctrl+left button click $this->render('test',array()); 'test' view ,but can't jump to view page
0

#23 User is offline   mazx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 19-July 11

Posted 27 November 2013 - 06:18 AM

View PostAlan.W, on 25 November 2013 - 04:50 AM, said:

I use the phpstorm 7.0 and I download YiiStorm 0.9.7b , but yiistorm don't help me create new view, I use ctrl+left button click $this->render('test',array()); 'test' view ,but can't jump to view page

controller folder exists? =)
0

#24 User is offline   Gusarov 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 16-March 12

Posted 17 December 2013 - 04:13 AM

Ctrl+Click on render('') shows "Can not find declaration to go to". I don't use themes. All view files placed in "protected/views" folder.
Any suggestions?
0

#25 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 363
  • Joined: 23-January 11

Posted 17 December 2013 - 04:27 AM

View PostGusarov, on 17 December 2013 - 04:13 AM, said:

Ctrl+Click on render('') shows "Can not find declaration to go to". I don't use themes. All view files placed in "protected/views" folder.
Any suggestions?


render() is defined in the framework code, not in 'your' project, under protected. Make sure to have the PhpStorm project include your framework directory.
You could have the app tree in parallel to the framework tree (in the same directory) and both (the directory both are located at) is the root of your project in PhpStorm. Obviously, there could be more ways to achieve this.
Therapeutic PHP sessions My LinkedIn Profile
0

#26 User is offline   Gusarov 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 16-March 12

Posted 17 December 2013 - 04:37 AM

View PostBoaz, on 17 December 2013 - 04:27 AM, said:

render() is defined in the framework code, not in 'your' project, under protected. Make sure to have the PhpStorm project include your framework directory.
You could have the app tree in parallel to the framework tree (in the same directory) and both (the directory both are located at) is the root of your project in PhpStorm. Obviously, there could be more ways to achieve this.


Yii is included in my project as External Library from PHP include path. And I have autocomlete everywhere in my project.
So you say that I need to move yii library folder to my protected folder?
0

#27 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 363
  • Joined: 23-January 11

Posted 17 December 2013 - 04:41 AM

Well I'm not sure. Do you have code completion of other framework methods? (verify that this is indeed the case).
Maybe you need to define Yii framework folder as a 'Resource Root' (in the preferences -> project settings -> directories (IIRC)). Not sure what 'external library' means/is.
Therapeutic PHP sessions My LinkedIn Profile
0

#28 User is offline   Gusarov 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 16-March 12

Posted 17 December 2013 - 04:46 AM

View PostBoaz, on 17 December 2013 - 04:41 AM, said:

Well I'm not sure. Do you have code completion of other framework methods? (verify that this is indeed the case).
Maybe you need to define Yii framework folder as a 'Resource Root' (in the preferences -> project settings -> directories (IIRC)). Not sure what 'external library' means/is.

I don't need to go to method declaration, I need to go to view file from "render" method. This topic is about YiiStorm plugin that implements such functionality. And it doesn't work in my IDE. =)
0

#29 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 363
  • Joined: 23-January 11

Posted 17 December 2013 - 04:48 AM

View PostGusarov, on 17 December 2013 - 04:46 AM, said:

I don't need to go to method declaration, I need to go to view file from "render" method. This topic is about YiiStorm plugin that implements such functionality. And it doesn't work in my IDE. =)


Oh I see. It wasn't clear above... .
I never used this feature of auto-loading of a view file in editor tab, so I cannot help with it. Sorry... Posted Image


Therapeutic PHP sessions My LinkedIn Profile
0

#30 User is offline   mahdi1986 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 14-February 13

Posted 09 January 2014 - 02:49 PM

Thanks mazx,
It's a very good and fantastic plugin,
In folder protected/messages if I haven't folder with name "en", the autocomplate dont show a message from file,
for example if I have a only "fr" folder in messages autocomplate dosen't show any suggest, can you fixed it???
thanks
0

#31 User is offline   Fire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 07-August 10

Posted 16 January 2014 - 11:48 PM

View PostAlan.W, on 25 November 2013 - 04:50 AM, said:

I use the phpstorm 7.0 and I download YiiStorm 0.9.7b , but yiistorm don't help me create new view, I use ctrl+left button click $this->render('test',array()); 'test' view ,but can't jump to view page

I also can not jump to the view page... any luck?
http://b3dmultitech.com - Delivering Education and Business through 3D Gaming Media
0

#32 User is offline   Jesper Grann Laursen 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 18-January 13

Posted 12 February 2014 - 05:17 AM

View PostFire, on 16 January 2014 - 11:48 PM, said:

I also can not jump to the view page... any luck?


I works fine here in 7.1 and 7.1.2 with YiiStorm 0.9.7b

Are you sure that the project has the framework in include path?

But, is there a solution to update the PHPdoc in the view with new defined variables in the controller render call?
0

#33 User is offline   trond 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 110
  • Joined: 26-September 12
  • Location:Oslo, Norway

Posted 13 February 2014 - 11:56 AM

I have 7.1.2 with YiiStorm 0.9.12b which seems to work fine.
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users