Theoretically I could recommend installation on fresh INDIGO release using delivered updatesite. I’ve just tested this way on Ubuntu 10.04 and seems to work fine. You can start with “Eclipse IDE for JavaScript Web Developers” package. Yiiclipse should automatically install all the dependencies (including PDT).
Nonetheless, for all those who have still problems with installing Yiiclipse in regular way can use dropins feature of eclipse. The drawback is that plugins installed such way cannot be updated with update mechanism and the same I do not recommend you such way, but if there is no other option it should work.
NOT RECOMMENDED: You need download the most recent bundle and put into dropins folder you can found in you eclipse home directory. Note: PDT needs to be already installed!!
Feature request: Whether I decide to use a already uncompressed Yii distribution or download it using the wizard, it should let me choose to initialize the project with any of the Yii examples provided.
Bug report: Yii extraction doesn’t work on Ubuntu 11.04, Using Eclipse Indigo. It downloads the file and then gets stuck. The wizard doesn’t closes/ends but the IDE is still full responsive. Clicking “Cancel” will close the wizard. Looking into the directory where the file its supposed to be decompressed, turns out that there’s no yii* directory. Also got full rw permissions in it.
–
EDIT: My bad. I misspelled the destination directory. However the plugin should have a way to inform the user for any errors related to this.
Man, this is pure awesome. Thank you so much for this one
Now what I’ve always missed and do not know how to fix in the view files is the reference to the controller object. Eg when using “$this” in the views, it would be absolutely awesome if I could get autocomplete to work, even if not the real controller (eg PostsController which rendered posts/view.php) but at least CController, it would be useful for $this->createUrl(), $this->renderPartial() etc calls. I have tried doing the following phpDoc thing as suggested somewhere around but it doesn’t work for me on few different eclipse installations…
Error parsing site stream. [White spaces are required between publicId and systemId.]
White spaces are required between publicId and systemId.
Error parsing site stream. [White spaces are required between publicId and systemId.]
White spaces are required between publicId and systemId.
Tried to copy the jar plugin, but either not worked .
Running under windows, eclipse 3.7 fresh install, the navigation works fine. When I run the wizard for a new Yii project, the “initialize project with” options are all disabled. Shouldn’t they be enabled?
I’m getting the following error as well, using AptanaStudio 2 on ubuntu 11.04 with PHP Development Tools (PDT) Version: 2.1.3
Cannot complete the install because one or more required items could not be found.
Software being installed: Yiiclipse Core 1.0.0.201108011652 (org.maziarz.yiiclipse.feature.feature.group 1.0.0.201108011652)
Missing requirement: YiiclipseCore 1.0.0.201108011652 (org.maziarz.yiiclipse 1.0.0.201108011652) requires 'package org.eclipse.php.internal.core.model 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Yiiclipse Core 1.0.0.201108011652 (org.maziarz.yiiclipse.feature.feature.group 1.0.0.201108011652)
To: org.maziarz.yiiclipse [1.0.0.201108011652]
I am getting the following error when I try to install Yiiclipse Core:
Cannot complete the request. See the details.
Cannot find a solution satisfying the following requirements Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.equinox.preferences/[3.2.201.R34x_v20080709,3.2.201.R34x_v20080709]].
I also tried to manually put the .jar file in the dropins folder, but there is no option for a Yiiclipse project. Is there any other way to fix this problem?
Cannot complete the install because one or more required items could not be found.
Software being installed: Yiiclipse Core 1.0.0.201108011652 (org.maziarz.yiiclipse.feature.feature.group 1.0.0.201108011652)
Missing requirement: YiiclipseCore 1.0.0.201108011652 (org.maziarz.yiiclipse 1.0.0.201108011652) requires 'package org.eclipse.php.internal.core.model 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Yiiclipse Core 1.0.0.201108011652 (org.maziarz.yiiclipse.feature.feature.group 1.0.0.201108011652)
To: org.maziarz.yiiclipse [1.0.0.201108011652]
This is on a fresh Ubuntu 11.04 with Eclipse v3.5.2 and PDT v2.1.3.
//ClientController.php is in protected/controlers
public function actionContract($contract_id)
{
$contract = ClientContracts::model()->findByPk($contract_id);
$this->render('detail/contract', compact('contract'));
// note the view is from other controller
//$this->render('//detail/contract', compact('contract'));
//This is not working too
}