Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

use of var folder

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-18-2016, 10:17 AM
 
vatmehta vatmehta is offline
 

Newbie
  
Join Date: Jun 2016
Posts: 9
 

Default use of var folder

What is importance of var folder?
__________________
vatssi
Reply With Quote
  #2  
Old 06-19-2016, 09:24 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: use of var folder

var folder is where the run directories, logs, and other data are stored.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 06-20-2016, 01:38 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: use of var folder

Hello.
This folder is using for storing X-Cart's file cache, aggregated CSS/JS, backups, temporary files, logs, and some other data.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #4  
Old 06-20-2016, 01:46 AM
 
vatmehta vatmehta is offline
 

Newbie
  
Join Date: Jun 2016
Posts: 9
 

Default Re: use of var folder

Thanks for ur replies...so if i make changes to custom module in var/run/classes/Xlite/Module folder, that will be seen directly in my storefront or i have to re-deploy it?
how to find core version of x cart?
one more question...i have created custom module with majorVersion 5.2.12, after re-deploying the admin page in module section it says "The module version is incompatible with your core version and cannot be enabled. The minimum core version required for this module is 5.2.12.0."So, How to resolved this issue?
Thanks in advance...
__________________
vatssi
Reply With Quote
  #5  
Old 06-20-2016, 02:15 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: use of var folder

Quote:
Originally Posted by vatmehta
Thanks for ur replies...so if i make changes to custom module in var/run/classes/Xlite/Module folder, that will be seen directly in my storefront or i have to re-deploy it?
In this case you will see your changes directly at the storefront. But keep in mind that they will be overwritten during next cache redeploy.
You should make your changes in <X-Cart>/classes, then redeploy the store to apply the changes.

Quote:
how to find core version of x cart?
You can find it in the /classes/XLite.php file.

Quote:
one more question...i have created custom module with majorVersion 5.2.12, after re-deploying the admin page in module section it says "The module version is incompatible with your core version and cannot be enabled. The minimum core version required for this module is 5.2.12.0."So, How to resolved this issue?
Thanks in advance...
Please send us the Main.php of your module.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #6  
Old 06-20-2016, 02:20 AM
 
vatmehta vatmehta is offline
 

Newbie
  
Join Date: Jun 2016
Posts: 9
 

Default Re: use of var folder

here is my Main.php
<?php
namespace XLite\Module\Vatsal\Filteration;

abstract class Main extends \XLite\Module\AModule
{

public static function getAuthorName()
{
return 'Vatsal';
}
public static function getModuleName()
{
return 'Filteration';
}
public static function getMajorVersion()
{
return '5.2.15';
}

public static function getMinorVersion()
{
return 0;
}


public static function getDescription()
{
return 'Filtering';
}
}
__________________
vatssi
Reply With Quote
  #7  
Old 06-20-2016, 02:51 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: use of var folder

It should be

public static function getMajorVersion()
{
return '5.2';
}

public static function getMinorVersion()
{
return 15;
}
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #8  
Old 06-20-2016, 04:04 AM
 
vatmehta vatmehta is offline
 

Newbie
  
Join Date: Jun 2016
Posts: 9
 

Default Re: use of var folder

Thanks man...i found my mistake.
I have created Model, View, Controller in my module that changes i am not able to see in my storefront.
What to do?
__________________
vatssi
Reply With Quote
  #9  
Old 06-20-2016, 05:10 AM
 
vatmehta vatmehta is offline
 

Newbie
  
Join Date: Jun 2016
Posts: 9
 

Default Re: use of var folder

And also what is meaning of this -> "vim: set ts=4 sw=4 sts=4 et:"
__________________
vatssi
Reply With Quote
  #10  
Old 06-20-2016, 05:34 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: use of var folder

Quote:
Originally Posted by vatmehta
Thanks man...i found my mistake.
I have created Model, View, Controller in my module that changes i am not able to see in my storefront.
What to do?
You should redeploy the store after making changes in classes, so that the new functionality is deployed into var/run
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:22 AM.

   

 
X-Cart forums © 2001-2020