That must be about the first time I see somebody reading something into an ellipse ![]()
That must be about the first time I see somebody reading something into an ellipse ![]()
[font=sans-serif][size=2]
[/size][/font]
[font=sans-serif][size=2]
[/size][/font]
[font=âsans-serifâ][size=â2â]Anyway. I approve of the Yiistorm plugin.
[/size][/font]
Iâve posted about the plugin at the front page.
Nice addon while the IDE donât implement full support to Yii framework.
Thanks a lot!
Great!
Nice! 
I was wondering, is there any way to let Yii understand that JustAModel::model()->findByPk(1) returns a JustAModel model and not a CActiveRecord?
What I do have:
/**
* @param string $className active record class name.
* @return Message the static model class
*/
static public function model ( $className = __CLASS__ )
{
return parent::model($className);
}
But that return is offcourse overwritten by the CActiveRecord->findByPk return of CactiveRecord
/**
* @return CActiveRecord the record found. Null if none is found.
*/
public function findByPk($pk,$condition='',$params=array())
{
[size="2"]do you want Yii or your IDE to know about this type?[/size]
If you want your IDE to know the type, thereâs the usual but tedious way to let it know:
// use the comment syntax demonstrated below.
/* @var JustAModel $model */
$model = JustAModel::model()->findByPk(1)
fantastic ![]()
dot dot dot dot dot
Do you have any plans for supporting path aliasâs and components set in protected/config/main.php?
Yep. In future))
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?
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? =)
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.
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?
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.