CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • upgrading from v2 to V3
Pages: [1]

Author Topic: upgrading from v2 to V3  (Read 642 times)

mantas

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 6
  • MySQL version: 5.1
  • PHP version: 5.3
upgrading from v2 to V3
April 07, 2012, 10:21:31 am
Hello

In project Im working, version 3.2, in code I found such ajax url:
civicrm/ajax/rest?className=CRF_Course_Page_AJAX&fnName=jqDistricts&stateid=1203&_id=state
which is passed to getJSON
CRF is custom nemespace and Course is custom component in it.

Current CRM_Utils_REST::ajax requires fnName to be from 3 parts and 1 has to be civicrm, so this call doesnt work. Maybe somebody could tell me what it is the right way to implement it in 4.1 and api V3

Thank you
Mantas

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: upgrading from v2 to V3
April 07, 2012, 11:59:21 am

This has been fixed in 4.1 so extensions can live outside the CRM_ namespace

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • upgrading from v2 to V3

This forum was archived on 2017-11-26.