Yup. And i even tried to update, as you said. But i got this error:
echo66@echo66-VirtualBox:/var/www/Phundament3$ php composer.phar update
Welcome to Phundament Installation 3 via composer
Updating your application to the lastest available packages...
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package crisus83/yii-seo could not be found in any version, there may be a typo in the package name.
Problem 2
- Installation request for phundament/app 1.0.0 -> satisfiable by phundament/app 1.0.0.
- Can only install one of: phundament/app 0.11.1, phundament/app 1.0.0.
- Installation request for phundament/app 0.11.1 -> satisfiable by phundament/app 0.11.1.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
I managed to solve the update problem, by removing, from composer.json, the entries listed in that error. Still, the problem with Metadata class continues…
private function createReadAccessCriteria()
{
$criteria = new CDbCriteria;
// do not apply filter for superuser
if (!Yii::app()->user->isSuperuser) {
if ($this->owner->metaDataRelation != "_self_") {
$criteria->with = $this->owner->metaDataRelation;
$tablePrefix = $this->owner->metaDataRelation;
} else {
$tablePrefix = $this->owner->getTableAlias();
That field seems to be from Yii Rights extension. But, for some reason, the framework doesn’t include it???
I was thinking about using this CMS in one of my projects but, because of the permissions management, i can’t use it, given the timeframe at hand. And, even worse, i need to refresh some ideas about Yii and take a look about the management of modules, as you have done. STILL, i really really really like what you have done, schmunk. Let’s hope that i can find some time to study this, even with my MsC schedule, at university.
Meanwhile, i will use Concrete5, because i’m in a hurry.
@ametad: I remember that you once had problem with yii-user and new profile fields, right? There was an error about the path aliases of yii user, as they are partially hardcoded in the module.
If you still have this issue, you can fix it by adding the following lines to config/main.php aliases
If there is no pageId set, the pageName will be used to try and find a P3Model bij the attribute ‘name’. But this attribute does not exist!
What I am looking for is clean URL, without the digit which is the pageId, the ‘id’ in the P3Page model. There is a seoUrl and I want to use that as reference to find the right P3Page… I am still looking how to do that with as much as existing code. Can you perhaps lead me in the right direction? What would be your approach?
PS. I dont use the yii-user module anymore because my user management needed a lot of highly customized functionality. So I decided to modify the original module and for now there is no need to go back to the source code…
you’re right, there’s outdated code in the model, sorry about that.
From p3pages 0.11.7 on there’s an optional attribute for P3Page models called “nameId”, which is meant to be used as a named identifier, but you can not translate it.
We could add an option to find a page by seoUrl, but I personally don’t like this approach because it’s too error-prone imo.
Eg. you’ve set up links in your HTML content an then someone changes the seoUrl, all links are broken. But with the id every link stays intact.
Another problem would be: if you use a text like seoUrl it has to be unique and you could not use the same string for two different languages.
Btw: I’ve discussed this issue with a really good SEO agency. They also wanted to remove it, but in the end they said it doesn’t really matter.
I have been busy with URL rule classes in Yii and perhaps there lies (some part of) an answer. But first I wanted to ask you, where is a good place to share these ideas? I mean, a place that is more suitable for programming code and stuff. And I am wondering if you are already using such an environment?
I am not yet familiar with a realy good one! IMHO: In Github you can only discuss code you wrote yourself and propose to someone else in a pull request (can be suitable but not for brainstorming new ideas). Realy the only things you can discuss are commits and not just existing code…