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 28 matches
Smarty Forum Index
Author Message
  Topic: here's a 10-digit phone number formatting plugin
Jagarm

Replies: 8
Views: 57667

PostForum: Plugins   Posted: Mon Jan 11, 2016 3:18 am   Subject: Great plugin
Thank you for sharing this great modifier, I just happen to be looking for one and found it.

Keep up
  Topic: Smarty variable in quotes
Jagarm

Replies: 3
Views: 6477

PostForum: General   Posted: Wed Jun 10, 2009 5:41 pm   Subject: Smarty variable in quotes
Thanks for the reply, and that works as well, but I've used the following:

{"delete_admin"|helper:'url':'site_url'}/{$admin_id}

but your way is better, but I"m already using my wa ...
  Topic: Smarty variable in quotes
Jagarm

Replies: 3
Views: 6477

PostForum: General   Posted: Tue Jun 02, 2009 1:04 pm   Subject: Smarty variable in quotes
I guess there's no way Sad
  Topic: Smarty variable in quotes
Jagarm

Replies: 3
Views: 6477

PostForum: General   Posted: Thu May 28, 2009 4:20 pm   Subject: Smarty variable in quotes
Greetings everyone,

I have created a smarty modifier, in order to access a codeigniter helper from smarty variables. and is as follow.

I have a variable which is assigned in CI is called: {$admi ...
  Topic: Codeigniter in smarty templates
Jagarm

Replies: 2
Views: 8200

PostForum: General   Posted: Thu Apr 30, 2009 2:35 am   Subject: [solved] Codeigniter in smarty templates
Wow thanks alot mohrt, doing {$CI->uri->segment(3)} does work, since there is a resource CI registered.
  Topic: Codeigniter in smarty templates
Jagarm

Replies: 2
Views: 8200

PostForum: General   Posted: Wed Apr 29, 2009 11:52 pm   Subject: Codeigniter in smarty templates
Hello everyone,

Is there a way to access codeigniter variables from inside smarty.

For example, there is a function to get the uri segment as follow.
$this->uri->segment(2), is th ...
  Topic: Got troubles with {if}
Jagarm

Replies: 9
Views: 11270

PostForum: General   Posted: Fri Apr 17, 2009 6:56 pm   Subject: Got troubles with {if}
You have extra ` right after dir/ maybe that is causing you trouble.
  Topic: Got troubles with {if}
Jagarm

Replies: 9
Views: 11270

PostForum: General   Posted: Fri Apr 17, 2009 6:37 pm   Subject: Got troubles with {if}

if ($_GET['url'] == (BASE . "dir/". getUrl('file')));


The problem is with your brackets, you have not closed them all properly.
  Topic: xajax and smarty issues
Jagarm

Replies: 12
Views: 17754

PostForum: General   Posted: Fri Apr 17, 2009 6:29 pm   Subject: xajax and smarty issues
I finally found what the problem was. It wasn't anything in smarty or xajax toolkit, but my classes,

I have a class which is for the main site, and then another class which extends from main class ...
  Topic: xajax and smarty issues
Jagarm

Replies: 12
Views: 17754

PostForum: General   Posted: Fri Apr 17, 2009 5:14 pm   Subject: xajax and smarty issues
Thanks for your help, this doesn't has to do with smarty, there is a bug or something in the xajax toolkit, I'm tracing it.
  Topic: xajax and smarty issues
Jagarm

Replies: 12
Views: 17754

PostForum: General   Posted: Fri Apr 17, 2009 4:24 pm   Subject: xajax and smarty issues
I did check the file, but I couldn't see anything that is declared twice.

[url=http://berwari.net/xajaxPlugin.inc.php.txt]The xajaxplugin file where the error is pointing.

Sorry for some reason ...
  Topic: xajax and smarty issues
Jagarm

Replies: 12
Views: 17754

PostForum: General   Posted: Fri Apr 17, 2009 3:58 pm   Subject: xajax and smarty issues
Fatal error: Cannot redeclare class xajaxRequestPlugin in C:\Inetpub\wwwroot\consultations\scripts\xajax\xajax_core\xajaxPlugin.inc.php on line
106

That is the one that is driving me craz ...
  Topic: xajax and smarty issues
Jagarm

Replies: 12
Views: 17754

PostForum: General   Posted: Fri Apr 17, 2009 3:19 pm   Subject: xajax and smarty issues
No, it didn't mind having that, I did remove it though, but still.
  Topic: xajax and smarty issues
Jagarm

Replies: 12
Views: 17754

PostForum: General   Posted: Fri Apr 17, 2009 3:05 pm   Subject: xajax and smarty issues
Thanks for the reply mohrt, but I think I have it the correct way, and the only one that is failing is the xajax object, why doesn't smarty fail with that message.

The following is how I have my ex ...
  Topic: xajax and smarty issues
Jagarm

Replies: 12
Views: 17754

PostForum: General   Posted: Fri Apr 17, 2009 2:04 pm   Subject: xajax and smarty issues
The only time happens if when I call the parent constructor in order to use the smarty variable which was instantiated in the parent class.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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