Re: [PHP] Creating new site



Depending on the size of the site, you might want to consider a PHP
framework to start with. There's usually no point in reinventing the
wheel. Someone mentioned CakePHP which utilizes MVC. I'm looking into
porting my stuff to the Zend Framework which makes MVC optional, but has
a lot of functionality make available.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Raido wrote:
Hi,

There are many sites explaining how to build new site etc but I'd like
to hear what You suggest. (about how to plan whole thing and how to
write separate parts which can be put together later)

I have build many small sites for myself(site to organise class
assembly which is like yearly convention..it has user administration
etc) but they all are anything else than OOP. But now, I need to help
with creating one bigger site which should be OOP. That site should
include user management(each user has it's own profile), each user can
post job and other adds in different categories. (there will be many
categories for example 'work,cars,training,apartments'.)
And users profile should show ads posted by himself.
Logic itself is simple:
1) unregistered user:
a) I go to site, I see categories (work offers, apartment offers,
training offers, etc)
b) I click on category I'm interested in
c) I see ad that I'm interested in
d) I click on it
c) I see detailed information about it(which company posted it etc)
d) at bottom page I see form where I can contact with ad author
2) registered user
a) I go to site
b) I log in, my profile page opens
c) there I can see ads posted by me..also I can see how many times
ad is viewed etc
d) i click on link 'Post new ad'
e) there i choose category and probably Ajax helps to load
specific fields(for example if I choose 'Cars' as category, then
fields like 'year,transmission,color, etc' will appear.

That is short summary what that site should do. It seems quite big for
me so I'd be happy to hear any guidelines from people who have built
big sites.

Creating forms, posting data, user login etc, these things are not
problem... problem is: how to build the whole thing aimed to OOP and
use with Smarty to keep things organized.

I'm not sure but I have idea about what things I should do first:

1) think and write down any function that needs to be done(for example
different validations, functions for showing/posting form etc)
2) plan and create database?
3) create database class which handles database connection
But what next? Or am I starting all wrong?

Big thanks in advance,


Raido



.



Relevant Pages

  • Re: [PHP] Creating new site
    ... a MVC structure? ... bigger site which should be OOP. ... And users profile should show ads posted by himself. ... create database class which handles database connection ...
    (php.general)
  • Re: [PHP] Creating new site
    ... Someone mentioned CakePHP which utilizes MVC. ... porting my stuff to the Zend Framework which makes MVC optional, ... I have coded in PHP for quite a while and understand OOP and OOP in PHP, however I don't really have any experience building sites or apps from scratch using OOP/MVC. ... For those that need total freedom to do things the way they want but need some pre-built functionality to make it quicker, Zend seems to be the choice. ...
    (php.general)
  • Re: limit of lines?
    ... > Agreed, but don't let database design influence OO design, the two are not ... My framework has several rules ... > Customer ID ...
    (borland.public.delphi.non-technical)
  • Re: Dabo in 30 seconds?
    ... >> You might want to look at Dabo, which is a database application ... >> framework for Python. ... The wizard isn't the only way to create Dabo apps, ... The framework then takes care of populating the controls with the ...
    (comp.lang.python)
  • hbm2delphi - database reverse engineering for the G framework
    ... hbm2delphi uses the "Hibernate tools" code generator to generate business domain class source code for the G framework. ... It also includes reverse database engineering support: hbm2delphi will generate the neccessary property datatypes and implementation code for one-to-many and many-to-one relationships if they are declared in the database metadata. ...
    (borland.public.delphi.thirdpartytools.general)