[EXTENSION] phundament Phundament 3: Yii CMS based upon independent modules and extensions
#41
Posted 26 March 2012 - 03:02 AM
What are some of your future plans for this?
#42
Posted 26 March 2012 - 03:29 AM
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.
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#43
Posted 26 March 2012 - 04:00 AM
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.
#44
Posted 26 March 2012 - 04:12 AM
SapporoGuy, on 26 March 2012 - 04:00 AM, said:
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
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#46
Posted 27 March 2012 - 10:36 AM
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!
#47
Posted 27 March 2012 - 03:51 PM
sorry for my late response, I hope it's worth it
ametad, on 22 March 2012 - 08:53 AM, said:
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!
ametad, on 22 March 2012 - 08:53 AM, said:
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?
ametad, on 22 March 2012 - 08:53 AM, said:
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 ...
ametad, on 22 March 2012 - 08:53 AM, said:
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?
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#48
Posted 27 March 2012 - 11:11 PM
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!
#49
Posted 28 March 2012 - 08:01 AM
schmunk, on 27 March 2012 - 03:51 PM, said:
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'}
#50
Posted 30 March 2012 - 04:24 AM
SapporoGuy, on 27 March 2012 - 11:11 PM, said:
What did I do wrong?
Thanks!
Looks like you've not updated config/main.php with the Phundament config.
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#51
Posted 30 March 2012 - 04:27 AM
ametad, on 28 March 2012 - 08:01 AM, said:
- '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.
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#53
Posted 30 March 2012 - 05:42 AM
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.
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#54
Posted 31 March 2012 - 11:33 AM
Yii based cms with mybb forum software integrated!
#55
Posted 01 April 2012 - 04:16 PM
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#56
Posted 01 April 2012 - 05:49 PM
I ran the Sh file and came across no errors.
How would I update the config?
#57
Posted 01 April 2012 - 09:55 PM
Yii based cms with mybb forum software integrated!
#59
Posted 02 April 2012 - 01:04 AM
Yii based cms with mybb forum software integrated!
#60
Posted 02 April 2012 - 02:58 AM
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
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari

Help















