Yii Framework Forum: Bios Element's Code Dump - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Bios Element's Code Dump Rate Topic: -----

#1 User is offline   Bios Element 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 63
  • Joined: 13-February 09
  • Location:Ohio, USA

Posted 27 April 2009 - 01:38 PM

I've been working on several small projects which I'm going to release under the MIT License for anyone to use and learn from.

Remember to read the readme and the commit log as there will be times where the git will be broken. I'll do my best to prevent that but accidents happen.


  • yii-groundwork
    Yii Groundwork is a basis with Database controlled RBAC to make an easy platform to begin the real work.
    Update: UUID support for both User's and permissions.
    Next Project: Basic Interface to grand/remove permissions without resorting to phpmyadmin.

  • biodump - Image upload and hosting system.

0

#2 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 27 April 2009 - 07:56 PM

I recently made image-based website.  some notes:

* I actually saved the image from inside of the image model (so $model->save() will save the image)
* you may want to add a method to the image model that returns the URL to the image directory, with the baseUrl of the app appended to it.  Also a method to return the absolute url of the image.  These can be used in the views and in the model itself
0

#3 User is offline   Bios Element 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 63
  • Joined: 13-February 09
  • Location:Ohio, USA

Posted 27 April 2009 - 08:23 PM

Quote

I recently made image-based website.  some notes:



* I actually saved the image from inside of the image model (so $model->save() will save the image)


Any chance I could see how you did that? I'd love to improve the code as I'm pretty sure that while my method works, there is a better way.

Quote

* you may want to add a method to the image model that returns the URL to the image directory, with the baseUrl of the app appended to it.  Also a method to return the absolute url of the image.  These can be used in the views and in the model itself


Not a bad idea, As soon as I finish adding UUID's to the Yii Groundwork I'll update the BioDump git.
0

#4 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 27 April 2009 - 08:45 PM

Wait no, i actually didn't do that (the first thing), but I was thinking about it.  I haven't implanted that part of my site though.  Unless I am missing something i think it should be pretty straight-forward
0

#5 User is offline   Bios Element 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 63
  • Joined: 13-February 09
  • Location:Ohio, USA

Posted 27 April 2009 - 09:35 PM

Quote

Wait no, i actually didn't do that (the first thing), but I was thinking about it.  I haven't implanted that part of my site though.  Unless I am missing something i think it should be pretty straight-forward


Aight man, Well whenever you figure something out be sure to let me know as much as you can. I'd love to improve the git repo with enough polish for people to easily figure things out.
0

Share this topic:


Page 1 of 1
  • 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