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

  • SEARCH
  • Home
  • 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 7217937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:25:01+00:00 2026-05-28T21:25:01+00:00

I just keep getting this error: Method js is not defined neither in controller,

  • 0

I just keep getting this error:
Method js is not defined neither in controller, nor in its Model.

Thi is my page

class page_alumnos_inscribir extends Page {
function init(){
    parent::init();
    $page=$this;
    $model=$this->add('Model_Alumno')->loadData($_GET['id']);

    $h=$this->add('H3')->set($model->get('name').' ( '.$model->get('grado').$model->get('nivel'). ' )');

    $f=$page->add('Form');
    $r=$f->addField('dropdown','Inscribir al Curso')->setModel('Curso');
    $r->js('change')->univ()->alert('orale');

    $s=$f->addField('line','montoPeriodo');   
}

}

  • 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-28T21:25:02+00:00Added an answer on May 28, 2026 at 9:25 pm

    You wrote a wrong chain. Set model returns the added model, you need the created field instead. Try to do it in this way:

    $r=$f->addField('dropdown','Inscribir al Curso');
    $r->setModel('Curso');
    $r->js('change')->univ()->alert('orale');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting an error when overriding my getview method. This is what I
I keep getting this error ever so often when I launch the debugger to
I keep getting this error when I try and run this script. It has
I'm trying to use the jQuery grid. I keep getting this error at the
I just started getting into BizTalk at work and would love to keep using
I'm just wondering what others do in this respect: Do you try to keep
Hey, I am Just Learning CoffeeScript and I Keep getting Errors. Here is my
I keep getting the above error when trying to transform XML that's generated in
Just to keep my sanity, I'm telling Spring to barf on circular references: _context
Well, just to keep it simple: I have a webform. On it a button

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.