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 15 matches
Smarty Forum Index
Author Message
  Topic: Why constant does not work with strip?
raghu810

Replies: 2
Views: 4693

PostForum: General   Posted: Mon Mar 21, 2016 9:43 pm   Subject: Why constant does not work with strip?
I would like to enable or disable `{strip}` on a template file, but either case with constant or variable, its not working.

on my php file:
<?php
define("enablestrip",false); ...
  Topic: $_POST array from form to display value when form has errors
raghu810

Replies: 9
Views: 12874

PostForum: General   Posted: Mon Sep 14, 2015 11:54 pm   Subject: $_POST array from form to display value when form has errors
Awesome, worked a treat. Thanks again so much.
  Topic: $_POST array from form to display value when form has errors
raghu810

Replies: 9
Views: 12874

PostForum: General   Posted: Mon Sep 14, 2015 11:25 pm   Subject: $_POST array from form to display value when form has errors
Sorry to be back, how can I use foreach loop for all three with in the table row.

Following did not help

<table>
{if isset($thrownerror) && $thrownerror ne "&quo ...
  Topic: $_POST array from form to display value when form has errors
raghu810

Replies: 9
Views: 12874

PostForum: General   Posted: Mon Sep 14, 2015 10:34 pm   Subject: $_POST array from form to display value when form has errors
Thanks debugging helped me to find that I had wrapped up an if statement and echoing that value within if statement, hence it was not displaying.

Thanks so much.
  Topic: $_POST array from form to display value when form has errors
raghu810

Replies: 9
Views: 12874

PostForum: General   Posted: Mon Sep 14, 2015 9:02 pm   Subject: $_POST array from form to display value when form has errors
Sorry, it is array, as I have it like this only

<input type="text" name="id

I had already tried before posting out here with the following code

<input type="text&quo ...
  Topic: $_POST array from form to display value when form has errors
raghu810

Replies: 9
Views: 12874

PostForum: General   Posted: Mon Sep 14, 2015 7:25 pm   Subject: $_POST array from form to display value when form has errors
I do know about the assign function, but how can i use like it simple field as I posted earlier as
$smarty->assign($_POST);
  Topic: $_POST array from form to display value when form has errors
raghu810

Replies: 9
Views: 12874

PostForum: General   Posted: Mon Sep 14, 2015 3:45 pm   Subject: $_POST array from form to display value when form has errors
I finally resided here after trying with so many things and googling and my problem still exists. I have a big form like this. Please ignore for not mentioning all the values here. Its just an example ...
  Topic: Notice: Uninitialized string with html_select_date
raghu810

Replies: 2
Views: 4051

PostForum: General   Posted: Fri Aug 21, 2015 4:53 am   Subject: Notice: Uninitialized string with html_select_date
Perfect, thanks
  Topic: Notice: Uninitialized string with html_select_date
raghu810

Replies: 2
Views: 4051

PostForum: General   Posted: Tue Aug 18, 2015 8:03 am   Subject: Notice: Uninitialized string with html_select_date
I am having the following code and it throws an error as following in my template.

Notice: Uninitialized string offset: 2 in /home/user/public_html/smarty/libs/plugins/function.html_select_date.php ...
  Topic: Insert Function not returning the value on tpl file
raghu810

Replies: 10
Views: 12423

PostForum: General   Posted: Tue Jun 09, 2015 7:30 pm   Subject: Insert Function not returning the value on tpl file
The same very function works in 3rd level directory but not on 5th directory when I include 5th directory template file in 3rd directory template file and call the insert function.
  Topic: Insert Function not returning the value on tpl file
raghu810

Replies: 10
Views: 12423

PostForum: General   Posted: Mon Jun 08, 2015 6:25 pm   Subject: Insert Function not returning the value on tpl file
Am back to the issue again, now I found out the real reason why it's not been working on my templates.

My directory structure is like this.

My PHP file
root/admin/test.php

My Insert function ...
  Topic: Insert Function not returning the value on tpl file
raghu810

Replies: 10
Views: 12423

PostForum: General   Posted: Sun Apr 26, 2015 4:21 am   Subject: Insert Function not returning the value on tpl file
Okay, thanks, I will look into it deeply now.
  Topic: Insert Function not returning the value on tpl file
raghu810

Replies: 10
Views: 12423

PostForum: General   Posted: Fri Apr 24, 2015 6:53 pm   Subject: Insert Function not returning the value on tpl file
When I used {debug}, I got the following values:


Smarty_Variable Object (3)
->value = null
->nocache = true
->scope = "file:dashboard.tpl"


When I used the v ...
  Topic: Insert Function not returning the value on tpl file
raghu810

Replies: 10
Views: 12423

PostForum: General   Posted: Fri Apr 24, 2015 2:17 am   Subject: Insert Function not returning the value on tpl file
Add a var_dump($results); to your function to check what your query returns.

It throws me this error for var_dump

Fatal error: Can't use function return value in write context in /home/....

b ...
  Topic: Insert Function not returning the value on tpl file
raghu810

Replies: 10
Views: 12423

PostForum: General   Posted: Fri Apr 24, 2015 12:10 am   Subject: Insert Function not returning the value on tpl file
I am using the latest version 3.1.21. I have a insert function, when I call it on my template, it does not show. What could be the reason?

my function
function insert_get_status($fetch)&# ...
 
Page 1 of 1
All times are GMT
Jump to:  


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