It looks like that i can't use that in ./library/XenForo/FrontController.php
Is this a bug or it is loaded after? Can i load it manually to use it in that class?
Maybe it would be a lot easier if you post what you want to achieve. Modifying the FrontController.php is not the best way to do things.
That's the reason why you create your own controller that extends the XenForo_Controller*_Abstract.
I have to edit the front controller, i'm tring to edit the thread urls from http://xenforo.com/community/threads/xenforo_application-get-db.5471/ to "http://xenforo.com/community/fR2Ga" and i'm almost done - i know it may seem useless for you but i want it
I don't know how to use the plugin system and editing the files seems the better way to go as of now that there are no docs and i've to edit only a cupple of files
That's why you should use your own controller and a model because only the model (AFAIK) has access to the database by using
PHP:
$this->_getDb()->fetchWhatever();
There are several models, the XenForo_Model seems to be the basic one with basic methods (like fetchCol()) but there are specific ones like the XenForo_Model_Post with the getPostsByIds()-method.
You will find all available models in /upload/library/XenForo/Model/ - each file is a specific model.