Yii Framework Forum: Yii Playground: collaborative demo app. - Yii Framework Forum

Jump to content

  • (7 Pages)
  • +
  • « First
  • 5
  • 6
  • 7
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Playground: collaborative demo app. Working code snippets provided by users; join us! Rate Topic: ***** 10 Votes

#121 User is offline   FlavorFlav 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 03-May 11

Posted 15 March 2013 - 09:08 AM

i found this cool RightMenu... i wrapped the code into a generic sidebar slider extension for yii.

can i post this extension on the yii extensions site? i would refer to the yii playground team, because i used this code. i did not found any licence... so i don't know if this is ok or not
0

#122 User is offline   yiqing95 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 602
  • Joined: 27-December 10
  • Location:china

Posted 15 March 2013 - 07:43 PM

View PostFlavorFlav, on 15 March 2013 - 09:08 AM, said:

i found this cool RightMenu... i wrapped the code into a generic sidebar slider extension for yii.

can i post this extension on the yii extensions site? i would refer to the yii playground team, because i used this code. i did not found any licence... so i don't know if this is ok or not

surly you can post any extension which may be useful to others ! if your extension is just suitable to yiiplayground you can refer here how to contribute or if it 's generic just post it as a yii extension to the official repository ! :D
0

#123 User is offline   FlavorFlav 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 03-May 11

Posted 16 March 2013 - 07:38 AM

View Postyiqing95, on 15 March 2013 - 07:43 PM, said:

surly you can post any extension which may be useful to others ! if your extension is just suitable to yiiplayground you can refer here how to contribute or if it 's generic just post it as a yii extension to the official repository ! :D


ok... i added it here: http://www.yiiframew...n/rightsidebar/

i hope everything is ok with it
0

#124 User is offline   Giovanni D. 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 238
  • Joined: 23-December 08
  • Location:London (UK)

Posted 16 May 2013 - 05:08 AM

View PostFlavorFlav, on 16 March 2013 - 07:38 AM, said:

ok... i added it here: http://www.yiiframew...n/rightsidebar/

i hope everything is ok with it


Hello,
yes don't worry about that. I wrote it as part of the Yii Playground project and it has the same license of the project. (New BSD License)

bye,
Giovanni.
- Yii Playground: collaborative demo app with small examples to play with.. join us ;) [Fork on github]

- DeploYii: Yii powered task runner and deployment solution

- Social: LinkedIn · Twitter
0

#125 Guest_Interboy_*

  • Group: Guests

Posted 18 October 2013 - 01:07 PM

@Giovanni D: Do you still update a new post into Yii playground?
Cool "playground" but lacking of tutorials
0

#126 User is offline   Giovanni D. 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 238
  • Joined: 23-December 08
  • Location:London (UK)

Posted 26 January 2014 - 03:31 PM

View PostInterboy, on 18 October 2013 - 01:07 PM, said:

@Giovanni D: Do you still update a new post into Yii playground?
Cool "playground" but lacking of tutorials


Hello,
everybody can contribute to it ;)

Anyway, the answer is yes. I've just fixed a few bugs and started a new branch for Yii Playground based on Yii 2.

The Yii 2 version is still on early stage (there is only the basic app for now, no demos nor Yii Playground specific components) since I just started it. But any feedback is welcome since I'm new to both Yii 2 and composer.

Please see:
https://github.com/g...round/tree/yii2
http://yiiplayground.com/yii2/

Also, for version 2 I'm thinking of organising the content following the structure of the official guide.

bye,
Giovanni.
- Yii Playground: collaborative demo app with small examples to play with.. join us ;) [Fork on github]

- DeploYii: Yii powered task runner and deployment solution

- Social: LinkedIn · Twitter
0

#127 User is offline   Giovanni D. 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 238
  • Joined: 23-December 08
  • Location:London (UK)

Posted 16 February 2014 - 03:43 PM

View PostGiovanni D., on 26 January 2014 - 03:31 PM, said:

Also, for version 2 I'm thinking of organising the content following the structure of the official guide.


Hello,
a quick update: I finally managed to port the base components and extensions to Yii 2 / composer (see here). So now the playground is ready to be used :)

http://yiiplayground.com/yii2/

There are no examples yet but they'll hopefully arrive soon!


bye,
Giovanni.
- Yii Playground: collaborative demo app with small examples to play with.. join us ;) [Fork on github]

- DeploYii: Yii powered task runner and deployment solution

- Social: LinkedIn · Twitter
0

#128 User is offline   pc131 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 133
  • Joined: 28-July 10
  • Location:Warsaw, Poland

Posted 26 February 2014 - 06:53 PM

Hi Giovanni

Found your CTreeView code on YiiPlayground. Could you help how to fetch data from 2 models into this tree? In your example you use static data:

public function actionTreeView() {
	$dataTree=array(
		array(
			'text'=>'Grampa', //must using 'text' key to show the text
			'children'=>array(//using 'children' key to indicate there are children
				array(
					'text'=>'Father',
					'children'=>array(
						array('text'=>'me'),
...
...
...
...


I would need to fetch to this tree data from model1 and model2 where model2.parent_id=model.id - model 1 is expandable node, model 2 represents leafs. Model 1 can have 1 or more leafs. No more nesting.

public function actionTreeView() {
	$dataTree=array(
		array(
			'text'=>'Grampa', 
			'children'=>array(//using 'children' key to indicate there are children
				array(
					'text'=>'Father',
					'text'=>'Father''s brother',
			'text'=>'Gramna', 
			'children'=>array(//using 'children' key to indicate there are children
				array(
					'text'=>'Mother',
					'text'=>'Mother''s sister',					
...
...
...
...


Grandma and Grandpa from model1. Father and his Brother from model 2. Father.parent_id=Grandpa.id and Father's_brother.parent_id=Grandpa.id...

Could you help
0

#129 User is offline   Giovanni D. 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 238
  • Joined: 23-December 08
  • Location:London (UK)

Posted 02 March 2014 - 02:35 PM

View Postpc131, on 26 February 2014 - 06:53 PM, said:

Hi Giovanni

Found your CTreeView code on YiiPlayground. Could you help how to fetch data from 2 models into this tree? In your example you use static data:


Hello,
if you haven't solved this yet, please discuss about it by opening a new topic.

bye,
Giovanni.
- Yii Playground: collaborative demo app with small examples to play with.. join us ;) [Fork on github]

- DeploYii: Yii powered task runner and deployment solution

- Social: LinkedIn · Twitter
0

#130 User is offline   pc131 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 133
  • Joined: 28-July 10
  • Location:Warsaw, Poland

Posted 02 March 2014 - 02:43 PM

View PostGiovanni D., on 02 March 2014 - 02:35 PM, said:

Hello,
if you haven't solved this yet, please discuss about it by opening a new topic.

bye,
Giovanni.


Solved

http://www.yiiframew...-model2-solved/

Thank You
0

#131 User is offline   Giovanni D. 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 238
  • Joined: 23-December 08
  • Location:London (UK)

Posted 06 July 2014 - 04:31 PM

Hello,
some updates on Yii Playground for Yii 2.x:

I've updated the app with an ajax request example and some other basic examples.

Please review the ajax request one and let me know what do you think (and feel free to submit a pull request if you want to improve it):
http://yiiplayground...hp?r=ajax/index

Also please note that the left menu and the app structure are temporary. I'd like to use bootstrap list-group for the menu (as in the guide) but don't want to install an extension for that so I'm waiting to see if an official widget will be available.

The app structure will maybe reorganised in modules (as in the playground for Yii 1.x)

bye,
Giovanni.
- Yii Playground: collaborative demo app with small examples to play with.. join us ;) [Fork on github]

- DeploYii: Yii powered task runner and deployment solution

- Social: LinkedIn · Twitter
0

Share this topic:


  • (7 Pages)
  • +
  • « First
  • 5
  • 6
  • 7
  • 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