|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
pellet.alexandre Smarty n00b
Joined: 28 May 2010 Posts: 2
|
Posted: Fri May 28, 2010 1:49 pm Post subject: Path problems |
|
|
Hi
I'm new to Smarty!
A client of mine want me i do some update on its site made with Smarty.
So, i upload its site via ftp and install it at home, on my macbook.
I install the database too.
I update the config file for the path and the database.
the site run this url : 192.168.0.3/~alexandrepellet/clients/einter/httpdocs/index.php
But, when i run it, i have no style... With Firefox, i can see that the path of the javascript and css are wrong.
They are /js/file.js instide of ~alexandrepellet/clients/einter/httpdocs/templates/{$Skin}/js/file.js
More of that, all the links in the page are 192.168.0.3/thelink.php but they must be 192.168.0.3/~alexandrepellet/clients/einter/httpdocs/thelink.php
here is my config :
Code: | else if ($_SERVER['SERVER_ADDR'] == '192.168.0.3') {
$Conf['ServerAddress'] = '192.168.0.3/~alexandrepellet/clients/einter/httpdocs/:';
$Conf['ServerName'] = '192.168.0.3/~alexandrepellet/clients/einter/httpdocs/';
set_include_path('/Users/alexandrepellet/Sites/clients/einter/httpdocs/');
ini_set('error_reporting', E_ALL);
ini_set('display_errors' , 1);
} |
So, what i have missed in the config?
Thanks in advance
Best regards
Alexandre |
|
Back to top |
|
kraigballa Smarty Rookie
Joined: 04 Jun 2010 Posts: 8
|
Posted: Fri Jun 04, 2010 3:32 pm Post subject: |
|
|
for some reason in my version I have to give direct links when inside the store or else the link will not be recognized outside the domain of the Smarty template. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|