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 6935699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:08:12+00:00 2026-05-27T12:08:12+00:00

I have one module: Job Within Job, I have two partials: _partialA _partialB Both

  • 0
  • I have one module: “Job”

  • Within Job, I have two partials:
    _partialA
    _partialB

Both partials use the same JobForm.Class.php

Here’s the question/what I’m trying to achieve:

in JobForm.Class.php:

function removeFields()
{
if ($partialName == 'partialA'){
unset ($this['field_a']);
}
if($partialName == 'partialB'){
unset ($this['field_b']);
}
}

Obviously, I’m having difficulty defining “$partialName’

Help? Suggestions? Is there another/better way of going about achieving the same desired result?

Thanks in advance.

  • 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-27T12:08:13+00:00Added an answer on May 27, 2026 at 12:08 pm

    I actually used the solution suggested by Andreu Heineken (love the beer, by the way) above, but thanks, Dan, for your solution as well. I just created a new Formclass and extended the baseModule I needed.

    Here’s a link for the details: Solution to question

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

Sidebar

Related Questions

I have 2 perl modules every module use the second one i.e Module1.pm use
I have first time installed th cron job for magento. THere is one module
i have to get static information from one 'module' to another. I'm trying to
Scenario 1: I have one wrapper Perl script which uses another Perl module and
I have two different modules that need access to a single file (One will
I have two existing dictionaries, and I wish to 'append' one of them to
I have one module (site) in my zend framework app. What I am trying
I am trying to make a multi module project. I have one module for
I'm a student, and for my next job, I have to program a module
In Zend project named pro1 I have one module named Admin.In this module I

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.