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 18 matches
Smarty Forum Index
Author Message
  Topic: Changing a foreach into a section
robseek

Replies: 1
Views: 4026

PostForum: General   Posted: Tue Jun 17, 2008 3:40 am   Subject: Changing a foreach into a section
The from attribute is the array that is being looped through, the item attribute is the current element and the name attribute is for accessing foreach properties.

In a section the name attribute i ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Jun 16, 2008 10:23 pm   Subject: Beginning PHP and MySQL E-commerce Plugin Error
As I understand it, the plugin function header in the second edition book is the following:
function smarty_function_load_presentation_object(...)

This means the file that holds this function shou ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Jun 16, 2008 6:12 pm   Subject: Beginning PHP and MySQL E-commerce Plugin Error
Smarty by default will look in the plugins directory for the plugin file. The default plugins directory is located at libs/smarty/plugins. If it's not there then smarty will look in the alternate dire ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Jun 16, 2008 3:06 pm   Subject: Beginning PHP and MySQL E-commerce Plugin Error
What is the error message you are getting now?

I won't be able to reply to your reply until later on this evening.
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Jun 16, 2008 2:37 pm   Subject: Beginning PHP and MySQL E-commerce Plugin Error
How are the globals SMARTY_DIR and PRESENTATION_DIR definded. In the first book the global definitions were in config.inc.php.
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Jun 16, 2008 1:10 pm   Subject: Beginning PHP and MySQL E-commerce Plugin Error
If the problem is not the way you named the plugin file and plugin function then the following are possible causes.

1) Make sure you are using PHP 5. The author told me that these types of errors o ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Jun 16, 2008 11:58 am   Subject: Beginning PHP and MySQL E-commerce Plugin Error
Could you specify the name of the plugin file and the complete header for the plugin function.

The plugin file name should be like the following:
function.load_department.php

The plugin header ...
  Topic: Beginning PHP 5 and MySQL E-Commerce Search Feature Problem
robseek

Replies: 1
Views: 4344

PostForum: General   Posted: Sat Mar 29, 2008 4:23 pm   Subject: The Search Is Now Working
The search feature is now working. I copied the function.load_products_list.php file plugin taken from the code download at apress.com.

The source of the error was within the file that I typed, bu ...
  Topic: Beginning PHP 5 and MySQL E-Commerce Search Feature Problem
robseek

Replies: 1
Views: 4344

PostForum: General   Posted: Sat Mar 29, 2008 2:48 pm   Subject: Beginning PHP 5 and MySQL E-Commerce Search Feature Problem
I'm currently going through the book PHP 5 and MySQL E-Commerce and have ecountered a problem with the search feature.

When I try to do a single or all-words search it yields no results. After pre ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Tue Mar 18, 2008 12:32 am   Subject: Finally Resolved The Problem
The problem was that the book PHP 5 and MySQL E-Commerce states that the plugin file function.load_departments_list.php should go into smarty_plugins. This is not the default directory that smarty loo ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Mar 17, 2008 10:13 pm   Subject: The dirname(dirname(_FILE_)) function
I would like to clarify that the config.inc.php file is in the include directory just above the root tshirtshop. The dirname(_FILE_) method returns the parent directory of current file, which is inclu ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Mar 17, 2008 9:57 pm   Subject: Is Absolute Path
Yes, SITE_ROOT./"smarty_plugins" is absolute path. The SITE_ROOT is defined within config.inc.php and is equivalent to: http://www.softwhiz.co.uk/tshirtshop

In the config.inc.php file thi ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Mar 17, 2008 9:38 pm   Subject: plugin file may have been in wrong directory
I have placed the function.load_departments_list.php file in the smarty plugins directory and now I'm getting a different error message. The error is PHP based and not smarty like the previous one. Pr ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Mar 17, 2008 8:40 pm   Subject: plugins_dir pointing to 2 different folders
I have smarty->plugins_dir pointing to the plugins directory and smarty_plugins. This is setup within the include directory in the file setup_smarty.php.

The following is some of the code in th ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
robseek

Replies: 33
Views: 51798

PostForum: General   Posted: Mon Mar 17, 2008 7:25 pm   Subject: Passed smarty parameter by reference
I have modified the code and passed the smarty parameter by reference and still have the same error.

You can view the full error at: http://www.softwhiz.co.uk/tshirtshop

Thanks.
 
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