Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 40 matches
Smarty Forum Index
Author Message
  Topic: passing a string
cjxxi

Replies: 2
Views: 3607

PostForum: General   Posted: Sat Feb 26, 2011 6:16 pm   Subject: passing a string
In Smarty 2 you can do {link url="some_link/`$string`"} - note the backticks ` (you may have encountered in MySQL). In Smarty 3 you can also do {link url="some_link/{$string}"}, wh ...
  Topic: passing a string
cjxxi

Replies: 2
Views: 3607

PostForum: General   Posted: Sat Feb 26, 2011 12:06 pm   Subject: passing a string
passing a string..

I know this must be simple, but I just ran into this:


in the template i have a link:

{link url="some_link/$string"}


why is string not being evaluates as it ...
  Topic: not working..
cjxxi

Replies: 3
Views: 9734

PostForum: Smarty 3   Posted: Sun Feb 13, 2011 3:52 pm   Subject: not working..
The popup_init plugin was removed from the Smarty3 releases, but it's still used in the demo. Remove the corresponding line from header.tpl.

got you.. This should get removed by next release right? ...
  Topic: best migration info
cjxxi

Replies: 3
Views: 4604

PostForum: General   Posted: Sun Feb 13, 2011 3:48 pm   Subject: best migration info
Read the SMARTY2_BC_NOTES and README files that come with the Smarty 3 distro..
That is what the very first line of the post means. Actually I had looked the read me, and looked the SMARTY2_BC after ...
  Topic: not working..
cjxxi

Replies: 3
Views: 9734

PostForum: Smarty 3   Posted: Sun Feb 13, 2011 5:38 am   Subject: not working..
This is a fresh copy downloaded out of the box, tried to run that demo that comes with the zip.

php 5.3



/*%%SmartyNocache:72054d5719ddd11085-52706582%%*//*/%%SmartyNocache:72054d5719ddd11085 ...
  Topic: best migration info
cjxxi

Replies: 3
Views: 4604

PostForum: General   Posted: Sun Feb 13, 2011 5:25 am   Subject: best migration info
//readme file summary read.

Is there any useful information available or can someone tell - - about how to migrate smarty from 2.x to 3?.

I've been watching all the betas and RCs and been waiti ...
  Topic: I want to pay someone make me a web-site !!
cjxxi

Replies: 1
Views: 7865

PostForum: Help Wanted (commercial)   Posted: Thu Oct 21, 2010 3:55 pm   Subject: I want to pay someone make me a web-site !!
I can produce a site like that, please PM me a projected budged and a plan of action and We'll go from there .

Ok i'll email you also..
  Topic: initiate register function and modifier
cjxxi

Replies: 9
Views: 14451

PostForum: Smarty 3   Posted: Wed Sep 01, 2010 12:59 am   Subject: initiate register function and modifier
I think defining $wrapper on top of the class solves the first problem

class Smarty extends Smarty_Internal_Data {
// smarty version
const SMARTY_VERSION = 'Smarty3-RC3';

...
  Topic: initiate register function and modifier
cjxxi

Replies: 9
Views: 14451

PostForum: Smarty 3   Posted: Wed Sep 01, 2010 12:44 am   Subject: initiate register function and modifier
are you using php 5 __construct() when extending smarty?

Yes , yes i am :

function __construct()
{
parent::__construct();
$this->compile_dir = APP_ROOT_B ...
  Topic: initiate register function and modifier
cjxxi

Replies: 9
Views: 14451

PostForum: Smarty 3   Posted: Wed Sep 01, 2010 12:41 am   Subject: initiate register function and modifier
On __call function

public function __call($name, $args)
{
/ /.......................................
// Smarty Backward Compatible wrapper
if (!is ...
  Topic: initiate register function and modifier
cjxxi

Replies: 9
Views: 14451

PostForum: Smarty 3   Posted: Wed Sep 01, 2010 12:11 am   Subject: initiate register function and modifier
This should work:

$smarty->register->modifier($modifier_name, $modifier_impl);

Do you get an error when you run that? The register object gets created on the initial call.
Yes. That is wh ...
  Topic: initiate register function and modifier
cjxxi

Replies: 9
Views: 14451

PostForum: Smarty 3   Posted: Tue Aug 31, 2010 6:14 pm   Subject: initiate register function and modifier
I have read the READ ME file and the SMARTY2_BC_NOTES as well, however they do not solve the problem, they do point out things that I've already taken in consideration.


The register object itself ...
  Topic: initiate register function and modifier
cjxxi

Replies: 9
Views: 14451

PostForum: Smarty 3   Posted: Tue Aug 31, 2010 8:23 am   Subject: initiate register function and modifier
spent quite a few hours trying to move things around, but I once again decided to hold up until a stable version is released. Too many unexpected things generated error.

I think the register objec ...
  Topic: initiate register function and modifier
cjxxi

Replies: 9
Views: 14451

PostForum: Smarty 3   Posted: Tue Aug 31, 2010 4:12 am   Subject: initiate register function and modifier
Do I have to, first manually register (plugins) modifiers and functions now? ,

I copied my old modifiers/functions and custom plugins and they aren't working.

Also what is the proper way to ...
  Topic: is this available in smary 3
cjxxi

Replies: 7
Views: 8603

PostForum: Smarty 3   Posted: Sat May 22, 2010 1:48 pm   Subject: is this available in smary 3
You could default your application to write the compiled files to the /tmp directory if you want a temporary way to view the compiled files. Of course this could just lead to new problems if you don't ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT
Jump to:  


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