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

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] Foundation An easy to use, powerful, and flexible framework for building prototyp Rate Topic: ****- 4 Votes

#1 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 10 April 2012 - 10:24 PM

Forum Post discussion for the Yii Foundation extension
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
2

#2 User is offline   yiqing95 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 593
  • Joined: 27-December 10
  • Location:china

Posted 11 April 2012 - 04:13 AM

well done! :lol:

a good start for introducing another framework to yii ( this may become the competitor to bootstrap !)
0

#3 User is offline   bobpang425 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 17-August 10

Posted 11 April 2012 - 09:02 AM

great!!!! :lol:
B) especially : http://foundation.oa...x.php?r=site/ui
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 11 April 2012 - 09:46 AM

I approve of this extension! :lol:
"Less noise - more signal"
0

#5 User is offline   Phil Loaiza 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 29-March 12

Posted 23 April 2012 - 12:07 PM

I had to add:

'import'=>array(
'ext.foundation.components.*',

in order for it to work for me.
0

#6 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 23 April 2012 - 02:48 PM

View PostPhil Loaiza, on 23 April 2012 - 12:07 PM, said:

I had to add:

'import'=>array(
'ext.foundation.components.*',

in order for it to work for me.



Are you sure you have

'preload'=>array(
    .....
    'foundation', // preload the foundation component
),


In your config?
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#7 User is offline   phpnode 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 141
  • Joined: 18-April 11

Posted 23 April 2012 - 03:16 PM

Great work!

Am I right in saying this is *almost* drop in compatible with Chris83's bootstrap extension?
0

#8 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 23 April 2012 - 04:46 PM

View Postphpnode, on 23 April 2012 - 03:16 PM, said:

Great work!

Am I right in saying this is *almost* drop in compatible with Chris83's bootstrap extension?



Well this extension is heavily inspired by his. but foundation and bootstrap themselves have notable differences.
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#9 User is offline   Peter JK 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 84
  • Joined: 22-November 10
  • Location:Jakarta, Indonesia

Posted 26 April 2012 - 11:17 PM

well then,

in new release of foundation ext, how to use NavBar and SubNav?
0

#10 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 27 April 2012 - 01:11 AM

View PostPeter JK, on 26 April 2012 - 11:17 PM, said:

well then,

in new release of foundation ext, how to use NavBar and SubNav?


There are examples in the online docs

Here is one:

<?php
$this -> widget("foundation.widgets.FounNavBar", array('items' => array(
    array('label' => 'Nav Item 1'),
    array('label' => 'Nav Item 2', 'flyout' => array('small', '<h5>Small Example (200px)</h5>
    <p>
        This is example text. This is example text. This is example text. This is example text. This is example text. This is example text. This is example text. This is example text.
    </p>')),
    array('label' => 'Nav Item 3', 'flyout' => 'content...'),
    array('label' => 'Nav Item 4', 'flyout' => array(
        'large right',
        'content...', true
    )),
)));
?>

- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#11 User is offline   Peter JK 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 84
  • Joined: 22-November 10
  • Location:Jakarta, Indonesia

Posted 27 April 2012 - 03:14 AM

View PostAsgaroth, on 27 April 2012 - 01:11 AM, said:

There are examples in the online docs

Here is one:

<?php
$this -> widget("foundation.widgets.FounNavBar", array('items' => array(
    array('label' => 'Nav Item 1'),
    array('label' => 'Nav Item 2', 'flyout' => array('small', '<h5>Small Example (200px)</h5>
    <p>
        This is example text. This is example text. This is example text. This is example text. This is example text. This is example text. This is example text. This is example text.
    </p>')),
    array('label' => 'Nav Item 3', 'flyout' => 'content...'),
    array('label' => 'Nav Item 4', 'flyout' => array(
        'large right',
        'content...', true
    )),
)));
?>




Yaps..my Friends.. i dont realize that http://foundation.oakwebdev.com/ is the Foundation Yii-Extension Demo site. Very similiar with it's original website. I really surprise, that it's already there... shame on me..but thanks anyway...
0

#12 User is offline   sebako 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 54
  • Joined: 15-February 12

Posted 30 April 2012 - 07:17 AM

Hey there,

I am using your extension and I am really happy with it so far! Thanks for the good job!
One question though ... I havn't seen a passwordFieldRow yet, any plans on that?

Cheers

-Seb
0

#13 User is offline   zitter 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 14-July 09

Posted 16 May 2012 - 12:10 AM

It misses SubmitButton too... the project seems blocked since 1 month :(
0

#14 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 16 May 2012 - 10:36 AM

View Postzitter, on 16 May 2012 - 12:10 AM, said:

It misses SubmitButton too... the project seems blocked since 1 month :(


eeh.,.. im still a live :D, just kindda busy T_T

Ill try to get you guys an update this weekend. hail Yii!
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
1

#15 User is offline   zitter 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 14-July 09

Posted 17 May 2012 - 07:58 AM

View PostAsgaroth, on 16 May 2012 - 10:36 AM, said:

eeh.,.. im still a live :D,

BTW, this is the best news :)
Is it possible to help you with your project? For example, how to create password input and submit one?
0

#16 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 17 May 2012 - 09:48 AM

View Postzitter, on 17 May 2012 - 07:58 AM, said:

BTW, this is the best news :)
Is it possible to help you with your project? For example, how to create password input and submit one?


For sure!

the project its hosted on github, just fork it! https://github.com/Asgaroth/foundation
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#17 User is offline   Junior - df9 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 416
  • Joined: 24-May 09
  • Location:Brazil

Posted 20 May 2012 - 06:49 AM

Hi, guys,

Asgaroth, thank you very much for the extension.

Has anybody implemented the password field yet?

:)

Thanks
______________________________________
Junior
df9.com.br
Linux Registered User #364954
GNU/Linux: together we're ready!
0

#18 User is offline   Junior - df9 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 416
  • Joined: 24-May 09
  • Location:Brazil

Posted 20 May 2012 - 07:11 AM

Ooops, answer my own question, password field is implemented on git. :) - thanks

I would like to suggest the following to improve the extension, I've made these changes to fit my needs and thought it could be useful to others:

- option to register app.css file or even a custom app.css file (see code below)

- make registerJs() method public (why? - because sometimes I just want to force registering js files and sometimes in specific places)

- register Js files with POS::END option

- change the text in comments Registers the Foundation CSS instead of Registers the Bootstrap CSS



Foundation.php
	/**
	 * @var boolean whether to register the Foundation app CSS (app.css) or another file
	 * Defaults to true, but only registers if coreCss is also true
	 */	
	public $appCss = true;




And the code
	/**
	 * Registers the Foundation CSS.
	 */
	public function registerCss() {
		Yii::app() -> clientScript -> registerCssFile($this -> getAssetsUrl() . '/stylesheets/foundation.css');
		if($this->appCss):
			if(is_bool($this->appCss))
				Yii::app() -> clientScript -> registerCssFile($this -> getAssetsUrl() . '/stylesheets/app.css');
			else
				Yii::app() -> clientScript -> registerCssFile($this->appCss);
		endif;
	}


	/**
	 * Registers the core JavaScript plugins.
	 * @since 0.9.8
	 */
	public function registerJs() {
		Yii::app() -> clientScript -> registerCoreScript('jquery');
		Yii::app() -> clientScript -> registerScriptFile($this -> getAssetsUrl() . '/javascripts/modernizr.foundation.js',  CClientScript::POS_END);
		Yii::app() -> clientScript -> registerScriptFile($this -> getAssetsUrl() . '/javascripts/foundation.js',  CClientScript::POS_END);
		Yii::app() -> clientScript -> registerScriptFile($this -> getAssetsUrl() . '/javascripts/app.js',  CClientScript::POS_END);
	}




I'm pretty sure somebody has a good approach to do this or even better idea. This is only my two cents trying o improve this excellent extension!

:)

Best regards!
______________________________________
Junior
df9.com.br
Linux Registered User #364954
GNU/Linux: together we're ready!
0

#19 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 20 May 2012 - 04:23 PM

@Junior - df9

I just uploaded a new version added most of the recommendations except for the app.css which is not something that belongs to the application and not the extension, it is there only because it belongs to foundation it self, I might remove it latter (I should have now but I forgot to xD).

You are not supposed to edit any extension files, instead create an app.css in your CSS folder and include it manually.

Thanks for your feedback!
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#20 User is offline   Junior - df9 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 416
  • Joined: 24-May 09
  • Location:Brazil

Posted 21 May 2012 - 05:17 AM

@Asgroth

You're right about app.css.

Thank you very much for applying the changes, I've already downloaded the new version. :)

Best regards!
______________________________________
Junior
df9.com.br
Linux Registered User #364954
GNU/Linux: together we're ready!
0

Share this topic:


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