new user questions and smarty bug
Posted: Fri Jul 17, 2009 10:36 am
Hi,
first of all i wanted to congratulate all the devs on their work on this very nice project.
i've installed xataface 1.1.5r2 on my server to give it a go for a very small project i have to do for a friend. By the way the download link on your home page points to 1.1.2.
I've been reading the forum and documentation/wiki and i'm confident i can customize xataface to match my end user db frontend requirements, although some features are not present out of the box.
First i'd like to get the problem i currently have out of the way so i can continue with my install..
So after configuring a xataface app for my database and poking around with fields.ini, i tried to insert a record in the main (only) table and right after it's inserted i get the following error :
the path "/var/www/lmb/admin/lmb/templates_c/dataface" exists and there's a bunch of %%...php files there but not the one listed in the error report.
Now for the questions :
- found the answer to my first one there : http://fongwebdev.blogspot.com/2009/05/how-to-hide-field-in-edit-tab.html, in case you wonder if it should be added to your default features in a future release.
For example it would be quite necessary in my opinion to display the "id" (prim key) field of the record on the edit page.
- my second question concerns the import feature which will be used to add records to that database, i've checked out the import filters and i'll probably be able to handle parsing and validating there as expected but i'd need to let the user upload multiple files and was planning on letting them use the following tool http://www.uploadify.com/demo/, and keep a default upload form but with multiple upload fields.
How hard do you think it would be to customize your current upload scheme to make it use what i described above ?
My idea would simply be to store the files on the server and process them one by one using the regular import filter for the current table. All the files would have the same data format, which is not csv but that shouldn't matter.
On failure the filename would be reported using whatever error report you are using.
i have other questions, concerning the text encoding which is broken here for example, but the upload is my main concern at the moment and failure to solve that would make xataface in my case not so helpful.
hope you can help me complete that setup and point me the direction in your core code for that upload problem.
first of all i wanted to congratulate all the devs on their work on this very nice project.
i've installed xataface 1.1.5r2 on my server to give it a go for a very small project i have to do for a friend. By the way the download link on your home page points to 1.1.2.
I've been reading the forum and documentation/wiki and i'm confident i can customize xataface to match my end user db frontend requirements, although some features are not present out of the box.
First i'd like to get the problem i currently have out of the way so i can continue with my install..
So after configuring a xataface app for my database and poking around with fields.ini, i tried to insert a record in the main (only) table and right after it's inserted i get the following error :
- Code: Select all
Warning: Smarty::include(/var/www/lmb/admin/lmb/templates_c/dataface/%%65^65A^65AAB303%%Dataface_Edit_Record.html.php) [smarty.include]: failed to open stream: No such file or directory in /var/www/lmb/admin/lib/Smarty/Smarty.class.php on line 1258
Warning: Smarty::include() [function.include]: Failed opening '/var/www/lmb/admin/lmb/templates_c/dataface/%%65^65A^65AAB303%%Dataface_Edit_Record.html.php' for inclusion (include_path='.:/var/www/lmb/admin:/var/www/lmb/admin/lib:/usr/share/php:/usr/share/pear') in /var/www/lmb/admin/lib/Smarty/Smarty.class.php on line 1258
the path "/var/www/lmb/admin/lmb/templates_c/dataface" exists and there's a bunch of %%...php files there but not the one listed in the error report.
Now for the questions :
- found the answer to my first one there : http://fongwebdev.blogspot.com/2009/05/how-to-hide-field-in-edit-tab.html, in case you wonder if it should be added to your default features in a future release.
For example it would be quite necessary in my opinion to display the "id" (prim key) field of the record on the edit page.
- my second question concerns the import feature which will be used to add records to that database, i've checked out the import filters and i'll probably be able to handle parsing and validating there as expected but i'd need to let the user upload multiple files and was planning on letting them use the following tool http://www.uploadify.com/demo/, and keep a default upload form but with multiple upload fields.
How hard do you think it would be to customize your current upload scheme to make it use what i described above ?
My idea would simply be to store the files on the server and process them one by one using the regular import filter for the current table. All the files would have the same data format, which is not csv but that shouldn't matter.
On failure the filename would be reported using whatever error report you are using.
i have other questions, concerning the text encoding which is broken here for example, but the upload is my main concern at the moment and failure to solve that would make xataface in my case not so helpful.
hope you can help me complete that setup and point me the direction in your core code for that upload problem.