I'm creating a custom report and want to put an excel version of the file in the cache/csv directory.
Is there a variable or function that will give me the sugarcrm root directory, so that I can put the file in say $sugar_root/cache/csv?
Thanks!
I'm creating a custom report and want to put an excel version of the file in the cache/csv directory.
Is there a variable or function that will give me the sugarcrm root directory, so that I can put the file in say $sugar_root/cache/csv?
Thanks!
The sugar_root is always the current directory in any action in SugarCRM so simply accessing "cache/csv/filename.csv" will work. Just make sure that sugar_root/cache/csv exists.
M
--
Marnus van Niekerk
There are only 10 types of people in the world
those who can read binary and those who don't
Modules:
CE Teams - Upgrade safe teams module for Community Edition
FieldACL - Field Level Access Control for Community Edition
EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
FlexibleChartDashlet - Display any data in a Dashlet Chart
DocumentThumbnails - Thumbnails for Documents module
Many questions can be answered by reading the Developers Manual
PS: You can get the actual sugar_root folder with this but it really is not needed.
PHP Code:$sugar_root = dirname($_SERVER["SCRIPT_FILENAME"]);
--
Marnus van Niekerk
There are only 10 types of people in the world
those who can read binary and those who don't
Modules:
CE Teams - Upgrade safe teams module for Community Edition
FieldACL - Field Level Access Control for Community Edition
EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
FlexibleChartDashlet - Display any data in a Dashlet Chart
DocumentThumbnails - Thumbnails for Documents module
Many questions can be answered by reading the Developers Manual
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks