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

Jump to content

  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • 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

#41 User is offline   SapporoGuy 

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

Posted 26 March 2012 - 03:02 AM

Sweet, will be playing with this later tomorrow!!

What are some of your future plans for this?
0

#42 User is offline   schmunk 

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

Posted 26 March 2012 - 03:29 AM

I will setup a package repo (at least) for Phundament 3 packages and it should be the default way to get and update Phundament 3. But you'll also be able to create your custom Yii Apps based on the Phundament workflow :)

Just a quick note: You currently need git and mercurial installed on your machine - but I am working on this.


Looking forward to your feedback.
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

#43 User is offline   SapporoGuy 

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

Posted 26 March 2012 - 04:00 AM

Good that you told me about mercurial! I would have missed that!

Does the package repo have to go through packagist? Or can you access something like git? Or a private server?

I'll definitely provide feedback in a day or 2. I stuck with some day job work right now.
0

#44 User is offline   schmunk 

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

Posted 26 March 2012 - 04:12 AM

View PostSapporoGuy, on 26 March 2012 - 04:00 AM, said:

Does the package repo have to go through packagist? Or can you access something like git? Or a private server?


All of them are possible.

This file https://github.com/p...r/composer.json is currently "my private server", accesses git, hg & a zip.
I'll migrate this to satis http://getcomposer.o...osting-your-own
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

#45 User is offline   ametad 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 08-February 12
  • Location:Holland

Posted 27 March 2012 - 10:03 AM

Looks - again - very nice! :)
0

#46 User is offline   ametad 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 08-February 12
  • Location:Holland

Posted 27 March 2012 - 10:36 AM

Dear Schmunk,

There are some things I encounter that raises some questions after installing Phundament-APP. I post it here so it helps you debugging perhaps. Hopefully you can help me with that?

I have installed it on a XAMPP configuration (Win7), with Git and Mercurial (composer.phar script). The 'ext.yii-bootstrap.widgets.BootHero' didn't exists, but I just copied it from the yii-bootstrap extension zip-file. That did the trick, the Hero Widget works now.

But the menu items 'Home' and 'Contact' don't work (points to http://localhost/phundament-app/{route:'site/index'} )
I'm not shure why that is, I'm thinking perhaps it has something to do with how Linux works... So I am uploading it now to a Linux server. But perhaps it's something else. Do you know what is going on here? If it's on the other server I report back here if it works or not.

Another thing is that the 'ext.yiiext.widgets.fancybox.EFancyboxWidget'is not found...

I'm going to get some food, bye bye for now!
0

#47 User is offline   schmunk 

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

Posted 27 March 2012 - 03:51 PM

Hi ametad,

sorry for my late response, I hope it's worth it :)

View Postametad, on 22 March 2012 - 08:53 AM, said:

Schmunk,

You've made a lot of progress, I like what Phundament become! After my last reply I have tried some other things, but I really want to give your CMS a try.


I am very pleased to hear that!


View Postametad, on 22 March 2012 - 08:53 AM, said:

Got a couple of questions though..:

About the intergration of Bootstrap. The LessCompiler 'path' config in the protected/config/main.php file points to: protected/extensions/lessii/blueprint/bootstrap.less. But I can't find that perticalary path...

My question is, how do you plan to compile self-made LESS style that overides Bootstrap styles?


Here's the idea: I've added create a project on github for "less translations", called lessii :)

The main goal is just to reuse all the existing Yii stuff which is usually based on blueprint CSS with Twitter Bootstrap - but it could also be Zurb, etc ..., so if you don't need this, e.g. you're creating a new site simply, ignore it.
But I found this way much easier and faster than adjusting all the views from the modules included in Phundament.

The line in the config which is responsible for creating the CSS now is here
'protected/extensions/lessii/translations/blueprint-bootstrap.less' => 'protected/extensions/phundament/themes/p3bootstrap/css/blueprint-bootstrap.css'

*taken from https://github.com/p...r/p3/config.php

As I am currently developing, I directly create the CSS generated by the lessCompiler into my theme folder, where it is saved to p3bootstrap/css. But you can use any other LESS file if you want to. Just for the sake of completeness, this is the Blueprint-Bootstrap translation file: https://github.com/s...-bootstrap.less
Just create you custom Bootstrap file there, with or without a "translation".

Btw: The lessCompiler property 'autoCompile' is set to false, but I think I'll remove the less compiler in the config by default and move it to local-dist.php. Maybe you also have to download or better clone --recursive lessii, if it's not in place.


As I wanted to be able to distribute also themes with the package manager I've reconfigured Yii's themeManager 'baseDir' to extensions/phundament/themes. The downside here is that you're no longer able to use Yii::app()->theme->baseUrl, because it's not pubic anymore.
The workaround for this is here: https://github.com/s...ayouts/main.php line 23 and 24, simply publish your theme files as an asset.

Note that I created Phundament completely based on a theme, now not a single file from the webapp skeleton is modified. You just have to load a custom config which uses the themes from the extension folder and the modules also.

What's your impressions about this?


View Postametad, on 22 March 2012 - 08:53 AM, said:

Yii-bootstrap setup instructions state:

And I suppose you link that stylesheet in your view file (/themes/name/views/layouts/main.php). I've tried that but can't get it to override. coreCss and responsiveCss are set to TRUE for Yii-Bootstrap in main config. In the mentioned main layout file styles are linked as follows:
		<style type="text/css">
			body {
				padding-top: 60px;
				padding-bottom: 40px;
			}
		</style>

		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
		  <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->

		<link href="css/blueprint-bootstrap.css" rel="stylesheet">


Where do I link my own stylesheet? Last?


Usually yes, or see above ... :)


View Postametad, on 22 March 2012 - 08:53 AM, said:

Greetings from Holland :)

Keep up the good work!



Thanks a lot & best regards,
schmunk


PS: About the later posts ... As windows is not my primary development system it usually need some time and day where I have the muse to fix things there :)
Also there are a few broken things after this huge refactoring - I know, but I think they'll be fixed this week, also I hope that the structure is now final, any thoughts about moving all the stuff to ./extensions?
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

#48 User is offline   SapporoGuy 

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

Posted 27 March 2012 - 11:11 PM

Ugh, feel like I did a noob mistake :)
But I'm a Yii noob ;)

osX

I copied the phundament folder into my sites folder (running standard osx install).
Then added Yii (full framework folder) inside the phundament folder.

Ran the sh file and pointed to the Yii/framework/yiic file. I didn't put this in quotes.

Installer seemed to work but complained that I'm missing memcached.

I just got a regular Yii site.

I then added quotes for yiic and didn't get an error but I still see a regular site.

What did I do wrong?

Thanks!
0

#49 User is offline   ametad 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 08-February 12
  • Location:Holland

Posted 28 March 2012 - 08:01 AM

View Postschmunk, on 27 March 2012 - 03:51 PM, said:

Hi ametad,



Thank you for your reply :)
As you are developping I wait a while before posting stuff I found te be broken ;)

About restructering everything in /extensions: I like it! Most of all because it's nicely seperated, now it's more obvious what is of Phundament and what not. Downsite for me as I can see as a 'newbie' is that I am a little bit confused wich config file does what?

Succes!

PS. I promised to report back: on the Linux server the same things are broken
- 'ext.yiiext.widgets.fancybox.EFancyboxWidget' is not found
- menu items 'Home' and 'Contact' points to http://localhost/phundament-app/{route:'site/index'}
0

#50 User is offline   schmunk 

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

Posted 30 March 2012 - 04:24 AM

View PostSapporoGuy, on 27 March 2012 - 11:11 PM, said:

I then added quotes for yiic and didn't get an error but I still see a regular site.

What did I do wrong?

Thanks!

Looks like you've not updated config/main.php with the Phundament config.
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

#51 User is offline   schmunk 

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

Posted 30 March 2012 - 04:27 AM

View Postametad, on 28 March 2012 - 08:01 AM, said:

PS. I promised to report back: on the Linux server the same things are broken
- 'ext.yiiext.widgets.fancybox.EFancyboxWidget' is not found
- menu items 'Home' and 'Contact' points to http://localhost/phundament-app/{route:'site/index'}


Thanks for your feedback, I also had these problems on a test installation.
I am currently trying to cleanup the installation process, will keep an eye on that.
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

#52 User is offline   ametad 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 08-February 12
  • Location:Holland

Posted 30 March 2012 - 04:55 AM

View Postschmunk, on 30 March 2012 - 04:27 AM, said:

Thanks for your feedback, I also had these problems on a test installation.
I am currently trying to cleanup the installation process, will keep an eye on that.


::) Looking forward to that. Succes!
0

#53 User is offline   schmunk 

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

Posted 30 March 2012 - 05:42 AM

Hi guys,

could you just someone try the packagist installation on Windows?
I had some problems with it: https://groups.googl...dev/JZJ-x_rkBCI

Note: You need mercurial and git installed on your machine.
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

#54 User is offline   Chris-S 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 08-January 12
  • Location:Ohio

Posted 31 March 2012 - 11:33 AM

Does this package have a forum ?
ARC cms - www.goarc.org
Yii based cms with mybb forum software integrated!
0

#55 User is offline   schmunk 

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

Posted 01 April 2012 - 04:16 PM

Either here, or in our Google Group.
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

#56 User is offline   SapporoGuy 

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

Posted 01 April 2012 - 05:49 PM

I changed the name ofbthe site in config/main.php and site name changes in the browser. But still the tlrwgular Yii site and nothing new.

I ran the Sh file and came across no errors.

How would I update the config?
0

#57 User is offline   Chris-S 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 08-January 12
  • Location:Ohio

Posted 01 April 2012 - 09:55 PM

I meant a forum as extension
ARC cms - www.goarc.org
Yii based cms with mybb forum software integrated!
0

#58 User is offline   SapporoGuy 

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

Posted 02 April 2012 - 12:51 AM

Phundament is more of a framework rather than an app.
0

#59 User is offline   Chris-S 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 32
  • Joined: 08-January 12
  • Location:Ohio

Posted 02 April 2012 - 01:04 AM

Oh, I see...thx sap
ARC cms - www.goarc.org
Yii based cms with mybb forum software integrated!
0

#60 User is offline   schmunk 

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

Posted 02 April 2012 - 02:58 AM

Hi Chris-S,

SapporoGuy is right, Phundament 3 is more a preconfigured and structured Yii Application with composer as a package manager.
You should be able to run any Yii extension in it. But you could also use the modules and extensions bundled in Phundament in your application - it's just a config issue.


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

Share this topic:


  • (11 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • 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