JParameter getParams() and renderToArray() not working! - Joomla! Forum - community, help and support


hey everyone

i've asked question 5-6 times or more, no 1 have come answer. in article view want parameters in associative array. should easy, not.

none of jparameter getparams() , rendertoarray() methods working. returning false. if print_r jparameter object, this:

code: select all

jparameter object
(
    [_raw] => show_noauth=0
show_title=1
link_titles=0
show_intro=1
show_section=0
link_section=0
show_category=0
link_category=0
show_author=1
show_create_date=1
show_modify_date=1
show_item_navigation=0
show_readmore=1
show_vote=0
show_icons=1
show_pdf_icon=1
show_print_icon=1
show_email_icon=1
show_hits=1
feed_summary=0


    [_xml] =>
    [_elements] => array
        (
        )

    [_elementpath] => array
        (
            [0] => /users/rune/sites/flashfeedjoomla/libraries/joomla/html/parameter/element
        )

    [_defaultnamespace] => _default
    [_registry] => array
        (
            [_default] => array
                (
                    [data] => stdclass object
                        (
                            [show_noauth] => 0
                            [show_title] => 1
                            [link_titles] => 0
                            [show_intro] => 1
                            [show_section] => 0
                            [link_section] => 0
                            [show_category] => 0
                            [link_category] => 0
                            [show_author] => 1
                            [show_create_date] => 1
                            [show_modify_date] => 1
                            [show_item_navigation] => 0
                            [show_readmore] => 1
                            [show_vote] => 0
                            [show_icons] => 1
                            [show_pdf_icon] => 1
                            [show_print_icon] => 1
                            [show_email_icon] => 1
                            [show_hits] => 1
                            [feed_summary] => 0
                            [page_title] => welcome joomla!
                            [page_description] => joomla! - dynamic portal engine , content management system
                            [popup] => 0
                        )

                )

        )

    [_errors] => array
        (
        )

)


when read source code answer: getnumparams , getparams trying read _xml property, , there's nothing in it. have populate parameters somehow, or can do?

the way can parameters this, , that's ugly:

code: select all

print_r($params->_registry['_default']['data']);


this gives me stdclass object can properties from.

why doesn't jparamter class work should?

still not getting why methods don't work... used toarray() method, , works fine. toarray inherited method jregistry class.





Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO