You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using your library join with symfony for my degree proyect (a bibliographic references manager). All works perfect but when I use a variable to call the function "parseFile" the page show me this:
( ! ) Notice: Use of undefined constant FILE_TEXT - assumed 'FILE_TEXT' in /home/sfprojects/UsalRef/lib/vendor/LibRIS/src/LibRIS.php on line 61
Call Stack
I don't know why, When I use a string to pass the filename it's works perfect. My code is this:
public function executeFromRIS(sfWebRequest $request){
$RIS = new GestionRIS();
$RIS->importar('uploads/import.ris', $this->getUser()->getAttribute('UID'));
//$this->redirect('referencia/index');
}
public function importar($archivo, $uid){
$ris = new LibRIS();
$ris->parseFile($archivo);
Hello,
I'm using your library join with symfony for my degree proyect (a bibliographic references manager). All works perfect but when I use a variable to call the function "parseFile" the page show me this:
( ! ) Notice: Use of undefined constant FILE_TEXT - assumed 'FILE_TEXT' in /home/sfprojects/UsalRef/lib/vendor/LibRIS/src/LibRIS.php on line 61
Call Stack
Time Memory Function Location
1 0.0000 52224 {main}( ) ../frontend_dev.php:0
2 0.0312 1304648 sfContext->dispatch( ) ../frontend_dev.php:13
3 0.0312 1304648 sfFrontWebController->dispatch( ) ../sfContext.class.php:170
4 0.0314 1310892 sfController->forward( ) ../sfFrontWebController.class.php:48
5 0.0362 1424424 sfFilterChain->execute( ) ../sfController.class.php:235
6 0.0367 1426740 sfRenderingFilter->execute( ) ../sfFilterChain.class.php:53
7 0.0367 1426740 sfFilterChain->execute( ) ../sfRenderingFilter.class.php:33
8 0.0372 1427648 sfBasicSecurityFilter->execute( ) ../sfFilterChain.class.php:53
9 0.0374 1427648 sfFilterChain->execute( ) ../sfBasicSecurityFilter.class.php:72
10 0.0379 1428880 sfExecutionFilter->execute( ) ../sfFilterChain.class.php:53
11 0.0380 1429144 sfExecutionFilter->handleAction( ) ../sfExecutionFilter.class.php:42
12 0.0381 1429144 sfExecutionFilter->executeAction( ) ../sfExecutionFilter.class.php:78
13 0.0381 1429144 sfActions->execute( ) ../sfExecutionFilter.class.php:92
14 0.0385 1431648 referenciaActions->executeFromRIS( ) ../sfActions.class.php:60
15 0.0533 1983176 GestionRIS->importar( ) ../actions.class.php:290
16 0.0533 1983232 LibRIS->parseFile( ) ../GestionRIS.php:385
I don't know why, When I use a string to pass the filename it's works perfect. My code is this:
public function executeFromRIS(sfWebRequest $request){
$RIS = new GestionRIS();
$RIS->importar('uploads/import.ris', $this->getUser()->getAttribute('UID'));
public function importar($archivo, $uid){
$ris = new LibRIS();
$ris->parseFile($archivo);
Thanks for the library at all and sorry about my english
The text was updated successfully, but these errors were encountered: