Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 11 matches
Smarty Forum Index
Author Message
  Topic: php5.5 deprecated preg_replace.
shoulders

Replies: 16
Views: 130643

PostForum: Installation and Setup   Posted: Tue Jan 15, 2019 11:31 am   Subject: php5.5 deprecated preg_replace.
Do a test, just swap out the smarty2 library for the smarty3 library and see what happens.

I did it and I had very little to fix. At first I thought the world would end it I upgraded the library, b ...
  Topic: section vs foreach
shoulders

Replies: 2
Views: 3708

PostForum: General   Posted: Tue Jan 08, 2019 1:56 pm   Subject: section vs foreach
I think i might change to {foreach} loops becasue currently I an reliant on ADOdb generating indexes and it is confusing in the results when you are trying to debug.

thanks for the feedback. I hope ...
  Topic: section vs foreach
shoulders

Replies: 2
Views: 3708

PostForum: General   Posted: Fri Jan 04, 2019 4:21 pm   Subject: section vs foreach
Hi

I have read through the forum and cannot find a definitive answer. I know that section required an index to cycle through the records but that is the main difference.

Is it possible to supply ...
  Topic: Install smarty via php composer
shoulders

Replies: 7
Views: 13593

PostForum: General   Posted: Tue May 08, 2018 9:00 am   Subject: Install smarty via php composer
oops!

I see what I did wrong. the autoload.php is for the whole composer autoload process not just smarty.

thanks for the heads up Very Happy
  Topic: Install smarty via php composer
shoulders

Replies: 7
Views: 13593

PostForum: General   Posted: Tue May 08, 2018 7:55 am   Subject: Install smarty via php composer
@AnrDaemon and @scuzzy, thanks for the help

@scuzzy

try commenting out

require( 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php' );

You might not need it if smarty was installed wi ...
  Topic: Install smarty via php composer
shoulders

Replies: 7
Views: 13593

PostForum: General   Posted: Mon May 07, 2018 3:30 pm   Subject: Install smarty via php composer
to answer my questions above


$smarty = new smarty;

$smarty->template_dir = THEME_TEMPLATE_DIR;
$smarty->cache_dir = SMARTY_CACHE_DIR;
$smarty->compile_dir ...
  Topic: Install smarty via php composer
shoulders

Replies: 7
Views: 13593

PostForum: General   Posted: Mon May 07, 2018 12:19 pm   Subject: Install smarty via php composer
should the following code still work?


$smarty = new smarty;

$smarty->template_dir = THEME_TEMPLATE_DIR;
$smarty->cache_dir = SMARTY_CACHE_DIR;
$smarty->compil ...
  Topic: Install smarty via php composer
shoulders

Replies: 7
Views: 13593

PostForum: General   Posted: Mon May 07, 2018 11:16 am   Subject: Install smarty via php composer
Hi

I have written my own CRM QWcrm at https://github.com/shoulders/qwcrm and it all works fine using smarty as its template engine.

I have loaded MoTranslator via composer and got it to work fol ...
  Topic: accessing associative arrays
shoulders

Replies: 4
Views: 78723

PostForum: Feature Requests   Posted: Mon Jul 08, 2013 3:07 pm   Subject: might be of use
i dont know if this is the same thing but the following worked for me.

{$foo->id}

This returns the value that is stored for 'id'

This works when the $foo variable is a 'Smarty_Va ...
  Topic: TinyMCE is adding newlines
shoulders

Replies: 0
Views: 4044

PostForum: General   Posted: Sat Sep 17, 2011 5:06 pm   Subject: TinyMCE is adding newlines
i am using tinymce as a text editor and when i submit an article where i have 2 paragraphs present between which i pressed the return button, \r\n is getting submitted where i pressed the button in th ...
  Topic: using a translate variable in my module code
shoulders

Replies: 0
Views: 3855

PostForum: General   Posted: Wed May 05, 2010 7:32 pm   Subject: using a translate variable in my module code
hello,

In the following code i would like to use a translate variable (as shown in case 2) in my module so i can use multiple languages.

case "TYPE": {
...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP