Yii Framework Forum: Phundament - Implementation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Phundament - Implementation

#1 User is offline   Ƒяąȼţąℓ ϻɨɲď 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 107
  • Joined: 04-May 12

Posted 02 June 2012 - 09:03 PM

Hi everyone, I started a project with Yii, and I would like to implement "Phundament" to manage my content.

The website structure is already done and look something like that:

fooproject
|
|--protected
|_____|-extensions
|__________|-composer
|__________|-crisu83
|__________|-mishamx
|__________|-phundament
|__________|-yiiext
|__________|-yiisoft
|
|_____|-views
|__________|-index.php

Now I try to learn how to implement the "Phundament" package to my project, but I have to say I'm pretty confused, and the lack of docs on this project doesn't make it easier.

What I want

index.php > add widget container > add block content and edit by "Phundament"

what I did:
config/main.php
'p3widgets' => array(
                            'class' => 'ext.phundament.p3widgets.P3WidgetsModule',
                            'params' => array(
                                    'widgets' => array(
                                            'zii.widgets.CMenu' => 'Menu',
                                            'ext.yiiext.widgets.cycle.ECycleWidget' => 'Cycle'    
                                    )
                            )
                 ),


views/site/index.php
            <?php
                $this->widget(
                        'p3widgets.components.P3WidgetContainer',
                        array(
                            'id'=>'Cycle',
                            'checkAccess'=>false // disable checkAccess feature for debugging, default 'P3widgets.Widget.*'
                            )
                    );
            ?> 


Result:
I can see the container, and everything but when I try to add a widget to it I got:

Not Found

The requested URL /foo/index.php/p3widgets/p3Widget/create/P3Widget[moduleId]//P3Widget[controllerId]/site/P3Widget[actionName]/index/P3Widget[containerId]/Cycle/returnUrl//foo/index.php/site/index was not found on this server.


Correct me if I'm wrong but I think it tries and fail to access the "p3widgets": controller and "create": view.
URL: http://localhost/foo/index.php/p3widgets/p3Widget/create[...]

But in the /foo/protected/extensions/phundament/p3widgets
I can see all the needed files(views, controllers, etc...), I don't understand how to make everything link to each other. <_<

Can someone give me a little hint, on how to approach the problem, or point me to some docs ::)
Thank you for your time.
0

#2 User is offline   Ƒяąȼţąℓ ϻɨɲď 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 107
  • Joined: 04-May 12

Posted 03 June 2012 - 12:43 PM

*Bump*
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,317
  • Joined: 10-October 10
  • Location:Denmark

Posted 03 June 2012 - 12:52 PM

/* Moved to Extensions */
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • 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