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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:57:42+00:00 2026-06-15T17:57:42+00:00

I have a problem with my code. I use ExtJs and Codeigniter to develop

  • 0

I have a problem with my code.
I use ExtJs and Codeigniter to develop my web App
Actually my problem is sending parameter from extjs to CI Controller.
I have a simple code like this

Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux', '../../extjs/src/ux');
Ext.require([
    'Ext.grid.*',
    'Ext.data.*',
    'Ext.ux.grid.FiltersFeature',
    'Ext.toolbar.Paging'
]);

Ext.define('materialspec', {
    extend: 'Ext.data.Model',
    fields: [
             {name: 'id_planmaterial', type: 'string'},
             {name: 'material_desc', type: 'string'},
             {name: 'material_priority', type: 'string'},
             {name: 'material_product_code', type: 'string'},
             {name: 'material_qty', type: 'string'},
             {name: 'material_unit', type: 'string'},
             {name: 'material_note', type: 'string'},
             {name: 'docNo', type: 'string'}
            ]
});

var store2 = Ext.create('Ext.data.Store', {
    id: 'store2',
    model: 'materialspec',
    proxy: {
        type: 'ajax',
        url : '../planspec/planmaterial',
        reader: {
            type: 'json',
            root: 'id_planmaterial'
        }
    },
    sorters: [{
        property    : 'id_planmaterial',
        direction   : 'ASC'
    }]
});

Ext.onReady(function(){
    Ext.QuickTips.init();
    var encode = false;
    var local = true;

    var filters2 = {
        ftype: 'filters',
        encode: encode,
        local: local,
        filters: [
            {
                type: 'boolean',
                dataIndex: 'id_planmaterial'
            }
        ]
    };

    var grid2 = Ext.create('Ext.grid.Panel', {
        border: false,
        store: store2,
        columns: [
            { header: "No.", xtype: 'rownumberer', width: 30, align: 'center' },
            { id: 'docNo', header: "Document No.", dataIndex: 'docNo', sortable: true, filter: {type: 'string'} },
            { id: 'descMaterial', header: "Description", dataIndex: 'material_desc', flex:1, filter: {type: 'string'} },
            { id: 'priority', header: "Priority", dataIndex: 'material_priority', flex:1, filter: {type: 'string'} },
            { id: 'productCode', header: "Product Code", dataIndex: 'material_product_code', flex:1, filter: {type: 'string'} },
            { id: 'qty', header: "Quantity", dataIndex: 'material_qty', flex:1, filter: {type: 'string'} },
            { id: 'unit', header: "Unit", dataIndex: 'material_unit', flex:1, filter: {type: 'string'} },
            { id: 'note', header: "Note", dataIndex: 'material_note', flex:1, filter: {type: 'string'} }
            ],
        loadMask: true,
        features: [filters2],
        title: 'PlanSpec Material',
        height: '100%',
        width: '100%',
        renderTo: 'gridMaterial'
    });

    store2.load({
    params:{
        test:2
    }
    });
});

And I have a controller like this

public function planmaterial(){
        $result = $this->input->post('test');
        echo $result;
    }

Actually I think it should be given an output = ‘2’.
but the output is not showed.
so, what should I do?
please tell me about my false.
thanks for your attention 🙂

  • 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-06-15T17:57:44+00:00Added an answer on June 15, 2026 at 5:57 pm

    This is doing a GET request and using the querystring:

    ../planspec/planmaterial?test=2

    Then, you should use:

    $this->input->get('test', TRUE);
    

    Good luck!

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

Sidebar

Related Questions

I have problems getting data from grails using extjs. My Grails controller code is:
I have a problem in php code inserting values into database (I use PHPMyAdmin).
I have a code problem which stems from the fact that I am using
I have a problem with my code. How can I handle an error from
i have following problem To decode the Biquinary code use the number 5043210. At
I have a problem. I use this code: $( '#wall_msg').clone( true ).insertAfter( '#wall_msg' );
I have problem with getting name of image. I have use following code to
I have problem with getting values from select option when use JQuery UI $('#id').combobox().
I have a problem with flinting code snippet that use boost::bimap. I have a
I have a problem with running a Java app (B) from my app (A).

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.