Yii Framework Forum: [EXTENSION] phundament - Yii Framework Forum

Jump to content

  • (11 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] phundament Phundament 3: Yii CMS based upon independent modules and extensions Rate Topic: ***** 3 Votes

#81 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 04 April 2012 - 03:50 PM

Thank you!

I don't know what I did but it works!

Ok, actually I did a few things.

I downloaded the app but it only had a few files but at least I got the composer.phar one. The full file version only had composer.json.
I actually ran the command for the composer.phar but went back and copied in the files that I thought were missing.

Ran the command again, ran the SH file command, ran the composer.phar update command. Restarted my server since I had cache issues (think ... because I was blowing errors on a directory that no longer existed and search didn't show up with the old directory name).

I did get 1 error on the SH command:

Quote

STAGE 3
Setup folder permissions? (y/n)
y
mkdir: ../runtime: File exists
mkdir: ./data/p3media: File exists
mkdir: ./data/p3media-import: File exists
mkdir: ./data/p3media-fs: File exists
chmod: ./extensions/_themes/bootstrap/css: No such file or directory
~/Sites/phundament


Which I'm not sure if is an issue yet or not ...

Thanks Schmunk!!! :D :D :D


Now I have to start playing with this and see what it can do :lol:


I have 2 questions at the moment :rolleyes:

What is the license?


Anybody familiar with flexicacms? IF yes, what are the differences?
0

#82 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 04 April 2012 - 04:16 PM

Nice ;D ;D ;D

View PostSapporoGuy, on 04 April 2012 - 03:50 PM, said:

Thank you!

I don't know what I did but it works!

Ok, actually I did a few things.

I downloaded the app but it only had a few files but at least I got the composer.phar one. The full file version only had composer.json.
I actually ran the command for the composer.phar but went back and copied in the files that I thought were missing.

That's by design B) phundament/app is the composer approach of getting Phundament.
The advantage is that I do not have to mirror every repo to github which I use, instead composer can fetch the stuff from different sources and can also maintain a consistent mixture of all packages (e.g. yii-less works only with bootstrap 2.0.1)

When you download it as an archive or make a git clone then you'll download all packages at once.

View PostSapporoGuy, on 04 April 2012 - 03:50 PM, said:

Ran the command again, ran the SH file command, ran the composer.phar update command. Restarted my server since I had cache issues (think ... because I was blowing errors on a directory that no longer existed and search didn't show up with the old directory name).

I did get 1 error on the SH command:

That's no issue, your directories were already there.

View PostSapporoGuy, on 04 April 2012 - 03:50 PM, said:

Which I'm not sure if is an issue yet or not ...

Thanks Schmunk!!! :D :D :D


Now I have to start playing with this and see what it can do :lol:


I have 2 questions at the moment :rolleyes:

What is the license?

BSD :)

View PostSapporoGuy, on 04 April 2012 - 03:50 PM, said:

Anybody familiar with flexicacms? IF yes, what are the differences?

Just speaking about Phundament - it's designed to be 100% modular and 100% Yii. Eg. you should easily be able to replace the user module or use a custom theme.

I've just supplied three basic modules which I did not find.
P3Pages, let's you administrate your page structure. P3Media, FileManager with ckeditor integration and P3Widgets.
With P3Widgets, you can add any existing CWidget to your application, just add it to the config. And it will appear in the dropdown of widget form.
These modules need P3Extensions, a library like YiiExt.


Thank you too & Best regards,
schmunk
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#83 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 04 April 2012 - 05:54 PM

A major reason why i wanted to get this working is that I'm aiming for a plugin architecture like WP/drupal.

My base understanding if phundament means that I'm most of the way there. Next seems to be getting modules to communicate with each other through an event aystem in the core.

Am i correct then that the composer will allow me to set up a repository of widgets and modules on my own server?

Thanks for all the hard work!!!
0

#84 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 06 April 2012 - 02:27 PM

View PostSapporoGuy, on 04 April 2012 - 05:54 PM, said:

A major reason why i wanted to get this working is that I'm aiming for a plugin architecture like WP/drupal.

Me too :)

View PostSapporoGuy, on 04 April 2012 - 05:54 PM, said:

My base understanding if phundament means that I'm most of the way there. Next seems to be getting modules to communicate with each other through an event aystem in the core.

Could you give me an use-case example?

View PostSapporoGuy, on 04 April 2012 - 05:54 PM, said:

Am i correct then that the composer will allow me to set up a repository of widgets and modules on my own server?

Sure, just customize this file https://github.com/p...r/composer.json
The phundament/app repo just contains this file, a composer.phar and a config file.

View PostSapporoGuy, on 04 April 2012 - 05:54 PM, said:

Thanks for all the hard work!!!

:D
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#85 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 06 April 2012 - 03:46 PM

Mindplay in his second post is sort of what I'm thinking:
http://www.yiiframew...ms/page__st__40

However i emailed him and he said that he never got the result he wanted.

I still need to experiment with phundament but to expand what i wrote above. So far I see a lot of ability to allow the user to access the repository and pull in modules and widgets which might be good enough!

But going back to the idea of WP like plugin would be able to tap into Yii's event system and allow you to override or extend what has alteady been installed or just install a new function. So, for example you start with a simple forum, then drop in a plugin the allows you ban users.

I basically want a sustem that allows you start woth abtelatively simple funtionality but then when the need arises to allow you expand with out changeing the modiule for another with the functionality you need and maybe with functionality you don't need.
0

#86 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 06 April 2012 - 08:13 PM

Happy Easter! https://github.com/p...app/zipball/0.1

Installation via composer with automatic webapp creation, migrations and file permission setup.
All the stuff with literally one (1) command :rolleyes: Tested on Mac OS X and Windows.
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#87 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 07 April 2012 - 03:57 AM

Thanks :)

Lol, now I'm tempted to try and reinstall this ...
0

#88 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 09 April 2012 - 05:57 AM

Hi Schmunk,

Here's a post that I though might be interesting and a good addition IF i understand you code properly :)


Quote

FlexicaCMS implements global event via pre/post service hook. 

A service in FlexicaCMS always return a ServiceResult object that you can easily expect the data structure of the returned data.

Pre hooks can prevent service to be executed. For example, in flexicaCMS you have a shared category tree. Your new module added into flexicaCMS can use part of the tree and base on your module business login you want to prevent user from deleting a category. Pre hook is also the common place used to perform authentication.

Post hooks can modify ServiceResult data before it is rendered.

You can chain and order the hooks.

Note that in FlexicaCMS, all business logic processing must be implemented in service class. This programming model prevents developers from writing the business logic processing directly into the controller (you can still enforce that if you need), making the service more reusable and accessible from ajax/external systems. This service approach is also facilitate testing.


Or does phundament already donsomething similar?
0

#89 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 09 April 2012 - 06:33 PM

Hi SapporoGuy,

thanks for the link, as far as I understand it yet and I also totally agree with mindplay, this should be possible.
If you have the global event system set up as a component or module you could simply define it as a dependency in a module using it. So you would ensure your code is completely working and modular.

Is there an existing Yii Extension providing this functionality? I would be happy to integrate it into Phundament.


Best regards,
schmunk
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#90 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 09 April 2012 - 10:09 PM

Hi!

Pm'd mindplay and he said that he never really got to work like he planned. There is a thread befe on what he did.

There isn't anything publicly available as I know. :(
0

#91 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 25 April 2012 - 02:16 PM

Noticed an error:
The bootstrap hero widget is missing. Do I needed to do load it or something?
0

#92 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 25 April 2012 - 03:21 PM

It was missing in a version I once added to Phundament, but it should be fixed in the latest composer version, which is the most recent at the moment.
You can simply replace the yii-bootstrap components with a newer version.
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#93 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 26 April 2012 - 12:11 PM

Hi!

Started a fresh install:

did: php composer.phar update
then said yes to create app

site comes up but when I go to login I get:
CException

Alias "ext.mishamx.yii-user.UserModule" is invalid. Make sure it points to an existing PHP file.

/Users/USR2/Sites/phundament2/protected/extensions/yii/framework/YiiBase.php(318)

306         if($isClass && (class_exists($className,false) || interface_exists($className,false)))
307             return self::$_imports[$alias]=$className;
308 
309         if(($path=self::getPathOfAlias($alias))!==false)
310         {
311             if($isClass)
312             {
313                 if($forceInclude)
314                 {
315                     if(is_file($path.'.php'))
316                         require($path.'.php');
317                     else
318                         throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing PHP file.',array('{alias}'=>$alias)));
319                     self::$_imports[$alias]=$className;
320                 }
321                 else
322                     self::$classMap[$className]=$path.'.php';
323                 return $className;
324             }
325             else  // a directory
326             {
327                 if(self::$_includePaths===null)
328                 {
329                     self::$_includePaths=array_unique(explode(PATH_SEPARATOR,get_include_path()));
330                     if(($pos=array_search('.',self::$_includePaths,true))!==false)
Stack Trace
#0	
+  /Users/USR2/Sites/phundament2/protected/extensions/yii/framework/YiiBase.php(198): YiiBase::import("ext.mishamx.yii-user.UserModule", true)
#1	
+  /Users/USR2/Sites/phundament2/protected/extensions/yii/framework/base/CModule.php(283): YiiBase::createComponent("ext.mishamx.yii-user.UserModule", "user", null, array("activeAfterRegister" => false))
#2	
+  /Users/USR2/Sites/phundament2/protected/extensions/yii/framework/web/CWebApplication.php(331): CModule->getModule("user")
#3	
+  /Users/USR2/Sites/phundament2/protected/extensions/yii/framework/web/CWebApplication.php(270): CWebApplication->createController("user/login")
#4	
+  /Users/USR2/Sites/phundament2/protected/extensions/yii/framework/web/CWebApplication.php(135): CWebApplication->runController("user/login")
#5	
+  /Users/USR2/Sites/phundament2/protected/extensions/yii/framework/base/CApplication.php(162): CWebApplication->processRequest()
#6	
–  /Users/USR2/Sites/phundament2/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2012-04-27 02:07:46 Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 with Suhosin-Patch Yii Framework/1.1.10

0

#94 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 26 April 2012 - 03:24 PM

Will check this ASAP
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#95 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 26 April 2012 - 10:29 PM

I like how you have a simple file that gets everything for you!

Suggestions:
When running the terminal command, I thought it had crashed since it just seemed to sit there for a while. Could you include a message saying something like "checking for dependencies, please wait". Basically a verbose output.

Also, can this be done from the browser?
0

#96 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 01 May 2012 - 01:06 AM

Do you need any other information to help debug this?
0

#97 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 02 May 2012 - 06:47 AM

Hi SapporoGuy,

Sorry i've been away for a few days.
You may run Composer like this:

php composer.phar -v install

Which should give you more info about what's going on.
Please check also their website http://getcomposer.org

Best regards,
Schmunk

Ps: got some issues on Windows again, but they will be fixed soon.
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#98 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 02 May 2012 - 09:38 AM

ran the command:

phundament2 USR2$ ls
README.md	composer.json	composer.phar	images		index.php	protected	themes
assets		composer.lock	css		index-test.php	install		runtime		yii
USR2:phundament2 USR2$ php composer.phar -v install
Get composer info for phundament/p3extensions (master)
Importing branch master (dev-master)
Get composer info for phundament/p3extensions (porting)
Skipped branch porting, no composer file was found
Get composer info for phundament/p3extensions (webapp-command)
Importing branch webapp-command (dev-webapp-command)
Get composer info for phundament/p3admin (master)   
Importing branch master (dev-master)
Get composer info for phundament/p3media (master)
Importing branch master (dev-master)
Get composer info for phundament/p3widgets (master)
Importing branch master (dev-master)
Get composer info for phundament/p3widgets (translation)
Skipped branch translation, no composer file was found
Get composer info for phundament/p3pages (master)     
Importing branch master (dev-master)
Get composer info for phundament/themes/p3bootstrap (master)
Importing branch master (dev-master)
Get composer info for phundament/gii-template-collection (dev)
Skipped branch dev, no composer file was found
Get composer info for phundament/gii-template-collection (master)
Importing branch master (dev-master)
Get composer info for phundament/gii-template-collection (merge-with-thyseus)
Skipped branch merge-with-thyseus, no composer file was found
Get composer info for phundament/lessii (master)             
Importing branch master (dev-master)
Welcome to Phundament Installation 3 via composer

Installing from lock file
Nothing to install/update
Generating autoload files
USR2:phundament2 USR2$ 


Strange thing is that I do have a working installation but when I install from the composer version login breaks :(
0

#99 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 569
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 02 May 2012 - 11:29 AM

If you get the same error as above, how is the path "ext.mishamx.yii-user" looking like? I found some problem with Windows recently (again :(), but they throw another error.

Try running
php composer.phar -v update
. What's the output there?
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#100 User is offline   SapporoGuy 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 177
  • Joined: 25-December 10
  • Location:Sappor Beer Refinery

Posted 03 May 2012 - 11:48 AM

Same output and same error :(

Here's the path:
/Users/USR2/Sites/phundament2/protected/extensions/mishamx/yii-user/user/UserModule.php


"ext.mishamx.yii"

Do I have to run a db migrate or something?
0

Share this topic:


  • (11 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • 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