Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7506643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:19:28+00:00 2026-05-29T22:19:28+00:00

I have to add secondary table inside on DPTable interface. How is it possible?

  • 0

I have to add secondary table inside on DPTable interface. How is it possible?

for example on the following code :

class Application_Model_DbTable_PlanList extends Zend_Db_Table_Abstract
{

protected $_name = 'hosted_plans';

public function list_plan()
{
    $row = $this->fetchAll();
    if (!$row) 
    {
        throw new Exception("Could not find row $id");
    }
    return $row->toArray();
}
public function list_plan_features()
{

        $table = new HostedPlanContentMapping();

        $select = $table->select();
        $select->from($table);
        $row = $table->fetchAll($select);


    if(!$row)
    {
        throw new Exception("Could not find result");
    }
    return $row->toArray();


}
}

IN above code list_plan function using hosted_plans table. I have to add another function on this same class to fetch details from HostedPlanContentMapping. which I tried to do with list_plan_features(). and calling on controller like below:

$featurelist = new Application_Model_DbTable_PlanList();
$this->view->listfeature = $featurelist->list_plan_features();

But not getting result.

Can anybody help me on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:19:28+00:00Added an answer on May 29, 2026 at 10:19 pm

    As an alternative, you can always call the DB adapter directly from the Table object, if you wish. Something like the following:

        $select = $this->getAdapter()->select();
        $select->from($tableName);
        $row = $this->getAdapter()->fetchAll($select);
    

    Hope that helps,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: $(.main).click(function() { $(this).toggleClass(classA).toggleClass(classB); $(.secondary).toggleClass(classC).toggleClass(classD); )); $(.secondary).click(function() { $(.secondary).toggleClass(classC).toggleClass(classD); ));
I have Excel add-in which I add so many class modules that it is
I have to add a coupon table to my db. There are 3 types
I have to add some enum options to a database table. The problem being,
I have to add a textbox inside a form that is composed of a
I have a crystal report that I have to add a Bar Code to.
I have a .NET class library that spins up a secondary process which is
I have to add either an embed tag for Firefox or an object tag
I have to add one month to todays date and have to get date
I have to add a password protected zone to a site I am working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.