|
Posted by Gary Smith on 10/05/86 11:22
Hi Cameron,
So have a templates folder inside the web root on the local machine and
outside on the remote machine? Would I then have to use another ftp program
to keep the files in different places for the local and remote machines?
Gary
in article 1660FFAC-1D3C-4265-995E-3ED6751E178C@filled.us, Cameron Perry at
lists@filled.us wrote on 7/27/05 8:40 PM:
> Why not develop with the templates within the site root just to make
> it easiest with DW?
> Instead of writing
>> $smarty = new Smarty();
>> $smarty->template_dir='/path...';
>> etc
> in each file, why not put it in an include so that on your
> development machine you can have one path - pointing to templates
> within the web root, and on the server change the template path so it
> points to the templates outside the web root?
>
> ~Cameron
>
>
> On Jul 27, 2005, at 9:18 PM, Andras Kende wrote:
>
>>
>>
>> -----Original Message-----
>> From: Gary Smith [mailto:gts@tsu.biz]
>> Sent: Wednesday, July 27, 2005 7:34 PM
>> To: smarty-general@lists.php.net
>> Subject: [SMARTY] Dreamweaver Users - How do you manage sites?
>>
>> Aloha All,
>>
>> My smarty configuration has my templates outside of web root. What
>> is the
>> best way to configure your sites so you can use Dreamweaver to
>> create/edit
>> templates?
>>
>> Thanks,
>> Gary
>>
>>
>>
>> Hello Gary,
>>
>> I use Dreamweaver MX 2004 in FTP mode (no local copies of files..)
>> but templates are in the webfolder and named .htm not .tpl for the
>> easiest opening with Dreamweaver..
>>
>> I guess Dreamveaver needs to access your templates with FTP so it
>> needs a ftp user account which has access outside of your webfolder...
>>
>> FTP:
>> /home/gary/
>> /home/gary/templates/ smarty template files
>> /home/gary/public_html/ smarty php files
>>
>> APACHE document root:
>> /home/gary/public_html/
>>
>> Andras Kende
>> http://www.kende.com
>>
>> --
>> Smarty General Mailing List (http://smarty.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
Navigation:
[Reply to this message]
|