Yii Framework Forum: Real Estate Web Application - Yii Framework Forum

Jump to content

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

Real Estate Web Application http://www.mallorcacolonia.com/ Rate Topic: -----

#1 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,447
  • Joined: 04-October 10

Posted 10 December 2010 - 10:12 AM

Hi there,

Real estate now is online: http://www.mallorcacolonia.com/

Finally I got the owner of the site to finalize with its requirements (he got rid of lots of sections, but there you go, you can now check live)

Project description and Backend Gallery here: http://www.ramirezco...onia-san-pedro/

Front Page
Attached File  Captura de pantalla 2010-12-10 a las 14.49.35.png (603.19K)
Number of downloads: 129

Backend [some - follow above link for more screenshots]
Attached File  Captura de pantalla 2010-12-10 a las 13.15.00.png (223.69K)
Number of downloads: 143 Attached File  Captura de pantalla 2010-12-10 a las 13.10.37.png (116.64K)
Number of downloads: 133

This post has been edited by Antonio Ramirez: 28 February 2011 - 11:16 AM

¿How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
0

#2 User is offline   Raoul 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 631
  • Joined: 29-November 08
  • Location:Paris, France

Posted 10 December 2010 - 11:35 AM

very nice design !! great job !
Posted Image
0

#3 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 10 December 2010 - 03:06 PM

Looks really good, well done, Antonio!

BTW can you offer discounts for long time yii forum members ...? Posted Image
0

#4 User is offline   pcs2112 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 79
  • Joined: 31-July 10

Posted 10 December 2010 - 03:18 PM

The backend is really nice, do you also do the images and css/html?
0

#5 User is offline   jacmoe 

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

Posted 10 December 2010 - 03:55 PM

Awesome! :D
I really like the back-end especially. Nice work.
It's hard to create a decent administration interface.

Slightly Off-Topic:
I can't help to notice the contradiction between your signature and real estate..:P
¿How long would it take for you to understand that you own nothing in this world?
"Less noise - more signal"
0

#6 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,447
  • Joined: 04-October 10

Posted 11 December 2010 - 09:03 AM

View PostMike, on 10 December 2010 - 03:06 PM, said:

Looks really good, well done, Antonio!

BTW can you offer discounts for long time yii forum members ...? Posted Image


Man... If any of you dares to come here 'mi casa es su casa', the problem will be that we will Yii discuss the whole day... :)
¿How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
0

#7 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,447
  • Joined: 04-October 10

Posted 11 December 2010 - 09:06 AM

View Postjacmoe, on 10 December 2010 - 03:55 PM, said:

Slightly Off-Topic:
I can't help to notice the contradiction between your signature and real estate..:P
¿How long would it take for you to understand that you own nothing in this world?


I just build websites jacmoe, I dont expect everbody to understand my philosophy... my two kids need to eat somehow :)
¿How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
0

#8 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,447
  • Joined: 04-October 10

Posted 11 December 2010 - 09:19 AM

View Postpcs2112, on 10 December 2010 - 03:18 PM, said:

The backend is really nice, do you also do the images and css/html?


I tend to find templates for that and I then create widgets, extensions, components, modify the scripts, css and HTML and I convert the template into an application that is 'nearly' a plug and play backend. Then when I have a project I just need to put all those resources together (is like a library) and voilá a backend in less than 3 days.
¿How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
0

#9 User is offline   pcs2112 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 79
  • Joined: 31-July 10

Posted 11 December 2010 - 02:04 PM

View PostAntonio Ramirez, on 11 December 2010 - 09:19 AM, said:

I tend to find templates for that and I then create widgets, extensions, components, modify the scripts, css and HTML and I convert the template into an application that is 'nearly' a plug and play backend. Then when I have a project I just need to put all those resources together (is like a library) and voilá a backend in less than 3 days.


Mind sharing some of your cool stuff with the beginners? j/k

Btw you blog has some really nice stuff, i'm already using the autocomplete code :)
0

#10 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,447
  • Joined: 04-October 10

Posted 12 December 2010 - 04:48 AM

View Postpcs2112, on 11 December 2010 - 02:04 PM, said:

Mind sharing some of your cool stuff with the beginners? j/k

Btw you blog has some really nice stuff, i'm already using the autocomplete code


If you have seen my blog, you already know that I do not mind sharing (not a j/k :) ) but I still wondering what is the best way to nicely dress up what I have. It could be great that style of CMS or any be implemented as a plug-and-play from top to bottom (even Javascript) and developers just concentrating on certain markup tags on the views, that is, no Javascript code on views at all.

Pursuing this I have analyzing some possibilities out there, one of them was jquery tokenizer plugin but I don't like the fact that overwrites the ajax request from jquery and that only allows XML responses from server, in a pure AJAX scenario is ok but...

I am currently developing a new CMS for a project I always had in mind, and I am experimenting with something I call 'live-buttons'. These buttons hold commands data information in their HTML and the library I am writing intelligently knows what to do by simply parsing those commands.

Once finished and 'polished' it may be good time to write some extensions that implement this system and also automatically inserts the correct class names to all HTML tags implied on Forms to the views. Once that is created, writing plug-and-play CMS systems will be a piece of cake. Programmers would just need to learn the command system of the parser, which is very simple, and then some HTML to know how to create the proper views.

Due to the nature of Yii, I can envision an environment where a programmer has created a CMS where you say on your view:

ExtendedCHtml::gallery('id',$model->pictures,array('uploader'=>ExtendedCHtml::SWFUPLOAD,'uploadUrl'=>'/upload/files/here'));


and bang! Your beautifuly gallery maker is ready for your CMS and specially written for that specific CMS, no need to worry about buttons as 'live-buttons' will take care of that. Simply nice isn't it? We will see...
¿How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
1

#11 User is offline   galymzhan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 46
  • Joined: 27-October 10
  • Location:Алматы

Posted 13 December 2010 - 10:25 PM

Antonio, have you used one of these extensions: advancedar and save relations ar ?
If not, how was you working with AR's related records, i.e. saving/creating/deleting models which have Many-Many, Has-Many relations?
2b || !2b that's the question
0

#12 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,447
  • Joined: 04-October 10

Posted 14 December 2010 - 06:49 AM

View Postgalymzhan, on 13 December 2010 - 10:25 PM, said:

Antonio, have you used one of these extensions: advancedar and save relations ar ?


Nope, I didnt use any of them.

View Postgalymzhan, on 13 December 2010 - 10:25 PM, said:

If not, how was you working with AR's related records, i.e. saving/creating/deleting models which have Many-Many, Has-Many relations?


It always depends on how you design your forms. Let me explain by example:

1) having one Gallery model that has many Picture models

2) On create I just put the details of the Gallery

3) On update I allow the addition of the pictures as I can obviously include the ID of the Gallery. I could that if I upload many pictures at once and before saving them I saved the Gallery to the DB but, as I normally use the SWFUpload extension then...

4) On delete I make sure that I write the onBeforeDelete and check the pictures relationships and I delete the models, this will fire the picture onBeforeDelete and there I check the if it exists on the disk and I delete the picture and then continue with deletion of the model.

------

On a many_many relationships I work with transactions (must have InnoDB engine in DB and tables). Same goes for the other many_many object.


For example:

User has many rights and many rights has many users

1) On the form I include a list box that is filled with data from rights model

2) On create I start a transaction, get the attributes of the model, save it, I receive the parameters of the list
and insert the relations accordingly to the middle table. At the end, I commit the transaction.

3) On update I start a transaction, remove records related to updated object in the middle table, insert the new relations, and commit transaction.

Yeah, sounds a bit complex but it is not, thanks for pointing me to those extensions. I have a look at them.

Best
¿How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
1

#13 User is offline   galymzhan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 46
  • Joined: 27-October 10
  • Location:Алматы

Posted 14 December 2010 - 11:14 AM

Thanks for explanations. I'm facing this problem and invented my own wheel, similar to yours. Probably I will continue using my solution. I hope Yii will have better alternatives to this problem in the near future. You can look how Ruby on Rails deals with it - http://guides.rubyon...ion_basics.html
2b || !2b that's the question
0

#14 User is offline   jacmoe 

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

Posted 14 December 2010 - 11:24 AM

Excuse me: what problem?
I am using has_many using composite primary keys with AR just fine.. :)
"Less noise - more signal"
0

#15 User is offline   pcs2112 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 79
  • Joined: 31-July 10

Posted 15 December 2010 - 12:49 PM

View Postjacmoe, on 14 December 2010 - 11:24 AM, said:

Excuse me: what problem?
I am using has_many using composite primary keys with AR just fine.. :)


Show us how please :)
0

#16 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,447
  • Joined: 04-October 10

Posted 15 December 2010 - 12:54 PM

View Postpcs2112, on 15 December 2010 - 12:49 PM, said:

Mind sharing?


Please, give me some feedback to this. Do you think could be useful as a button extension? 1) is the first step of what I said on latest post.

livebuttons:
http://www.ramirezco...buttons-plugin/
¿How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
0

#17 User is offline   jacmoe 

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

Posted 15 December 2010 - 12:55 PM

<hi-jack>

View Postpcs2112, on 15 December 2010 - 12:49 PM, said:

Show us how please :)

In the model:
    	public function primaryKey()
    	{
        	return array('commenter_id', 'post_id');
    	}

And that's pretty much it. :)
</hi-jack>
"Less noise - more signal"
0

#18 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 15 December 2010 - 01:13 PM

View Postpcs2112, on 15 December 2010 - 12:49 PM, said:

Show us how please :)


<hi-jack2>
Also check the green info box in this section of the guide:
http://www.yiiframew...ng-relationship
</hi-jack2>
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