Yiiclipse - Eclipse PDT extension for Yii Framework

There is no reason "Toggle Yii Support" is not visible. For ZendStudio 8.0.1 works fine.

Try to add yiiclipse nature manually.

Go to "PHP Explorer">View Menu(white triangle)>Filters… and unselect ".* resources". OK

Double click on .project file and put


		<buildCommand>

			<name>org.maziarz.yiiclipse.builder</name>

			<arguments>

			</arguments>

		</buildCommand>

as buildSpec child, and


<nature>org.maziarz.yiiclipse.nature</nature>

as natures child

Now yii support should be on.

I have installed Yiiclipse for my eclipse 3.7 but only some part of the code is linking …

for example I cant link to any part of the below code.

<?php $this->widget(‘zii.widgets.CListView’, array(

'dataProvider'=&gt;&#036;dataProvider,


'itemView'=&gt;'_view',

)); ?>

I have the same problem and it’s quite annoying.

As a workaround I created a brand new project for the framework source and then clicked on yiilite.php in this new project and excluded yiilite from the build path. I then included this project in my other Yii projects and I can open declaration for classes and it will always open the framework base class, not the yiilite version. It’s a bit of a hack but it seems to work.

In Zend Studio you have the option to add zend component if it is zend project, for exampel add Zend helper view, etc.

Would be cool if this plugin will have tha layout for controller, form model, ar model etc.

I like it, thanks!

Hi KEo,

I have just installed the the Yiiclipse extension for Eclipse PDT. However I was unable to create a new Yiiclipse project as the option is not available. Neither was I able to Toggle Yii Support. Would appreciate it if you could provide some assistance. Thanks (=

Is there a reason not to delete that file for the development environment?

Hi all,

I have released version 1.1 with new cool features:

  • Alias code completion

  • Enhanced type inference (Yii::app()-> now returns CWebApplication, $this object in views returns CController object)

  • Exluding yiilite.php (actually just removing yiilite.php when unpacking yii archive)

  • Using custom remote yii framework location(append -Dryfl=[PATH|URL] to eclipse.ini file)

NOTE: From now most recent stable version will be available under the following updatesite location: http://yiiclipse.maziarz.org/updatesite/STABLE/

Hope you found new features useful and as usually feedback is welcome.

downloading now!!!

Hi KEo

I also got the same problem. I install this twice, once in my office and this time. when I install in office, everything works fine, but now, I install successfuly, but can't see the toggle of Yii support.


My OS and eclips is all same with the office one. 





I tried to fix it out by the step you mention, but I can't find the file in eclipse, how can I do it? My eclipse is :

Eclipse for PHP Developers

Version: Helios Service Release 2

Build id: 20110301-1815

popo,

Run you PDT installation, go to top menu and choose Help > About Eclipse > Installation Details. You should see "Installed software" tab. There should be two position PDT and Yiiclipse. Can you see both??

Alternatively, you can try run your PDT from command line as follows:


./eclipse -debug -consoleLog

You should see the following entry at the end of internal eclipse debug log.


YDEBUG: Yiiclipse is up and running.

If you will be able to see it means yiiclipse is successfully installed. But the same this means not good if still dont see Configure > Toogle Yii Support popup menu.

First of all, great job on this extension. The code navigation and completion features are really useful.

Unfortunately, the code completion for widgets doesn’t seem to be working for me.

After typing


$this->widget('

it pops up a windows showing me the various options (application, ext, zii, etc.). However, after moving to the next part, it doesn’t find anything (“No default proposals”) - not for ‘application’, not for ‘ext’, and more importantly - not for zii.

In the meantime, I’ll enjoy all the great features that do work.

I have this running at home on Zend Studio on windows 7 but doesn’t work at work unfortunately on my mac. Has anyone else tried this on a mac?

KEo,

First, thank you for your work on this.

Second, I do not see the links for navigation and I really want to. :) I am a recent convert to Mac and wonder if I’m just doing something wrong with the Mac version of Eclipse on this new OS.

However, I am also somewhat new to Eclipse and Yii after starting to write code again for the first time in 10 years, so maybe I have some of the installation wrong, but it doesn’t seem like it because I can Toggle Yii Support just fine and see the icon change.

Thank you.

jimdamato,

Unfortunately I have no possibility to check on Mac. Have you tried runing eclipse with -debug -consoleLog options? You should see error message when no possible to resolve the path.

This doesn’t work for me… I have Eclipse 3.7 and I dont get the Configure>Toggle Yii Support option.

Here’s part of my .project file:


	<buildSpec>

		<buildCommand>

			<name>org.eclipse.wst.validation.validationbuilder</name>

			<arguments>

			</arguments>

		</buildCommand>

		<buildCommand>

			<name>org.eclipse.dltk.core.scriptbuilder</name>

			<arguments>

			</arguments>

		</buildCommand>

		 <buildCommand>

                        <name>org.maziarz.yiiclipse.builder</name>

                        <arguments>

                        </arguments>

		 </buildCommand>

	</buildSpec>

	<natures>

		<nature>org.eclipse.php.core.PHPNature</nature>

		<nature>org.maziarz.yiiclipse.nature</nature>

	</natures>

I still have this error:

Cannot complete the install because one or more required items could not be found.

Software being installed: Yiiclipse Core 1.1.0.201111132221 (org.maziarz.yiiclipse.feature.feature.group 1.1.0.201111132221)

Missing requirement: Yiiclipse Core 1.1.0.201111132221 (org.maziarz.yiiclipse.feature.feature.group 1.1.0.201111132221) requires ‘org.eclipse.php.feature.group 0.0.0’ but it could not be found

I tried almost everything in this thread.

is there a way to manually installation?

Hi KEo,

I am a newbie with Yii and I have a small problem with Yiiclipse.

My Yii’s directory structure is a little bit different from standard structure, I have put the protected directory outside the webroot and I changed the index.php.

Now, when I create a new Yii project in Eclipse, it (Eclipse or Yiiclispe I do not know) recreates the protected directory inside the webroot and I cannot to change the path.

How I can link the protected directory outside the webroot?

Is it a limitation of Yiiclipse or my mistake?

Thanks,

KK

YiiClipse is probably using a script to do its magic.

I am just guessing, haven’t actually used it myself.

What you describe happens suggest that it is so. ;)

Thanks KEo! Awesome tool and working good for Indigo SR1 with PDT 3.0.0