Jump to content

josephjohn

New Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by josephjohn

  1. Thanks for the reply, currently I am using Zend MVC framework and I know how to use this, actually I don't need the code for the MVC , I need the idea of creating the structure of the model classes, for example how to use the inheritance usefully in this type of table structure etc.

     

     

     

    Do you have an MVC framework that you are using??

     

    you can easily create your own models depending on what you need.

    below is a little sample of what you would want to do....

     

    <?php
    class Model{
    
    public function user_info()
    {
                //this is dummy information but it simulates info that you pull from the db
    	return array(
    		'id' => '1',
    		'name' => 'John Doe',
    	);
    }
    
    
    }
    ?>
    

  2. Hi,

    I need some assistance in the OOP concept. My next project is related to some thing like jobs and employers website . Here I have tables like

     

    jobseeker - jobseekername, jobseekeremail, jobseekeraddress, jobseekerphone ... etc and in employer table is like

     

    employer - employername, employeremail, employeraddress, employermobile ... etc

     

    Please provide us with the support that how to create model classes with these two tables.

    Here I need to develop this project in a fully object orient manner.

     

    Thanks,

    Joseph

×
×
  • Create New...