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: simplexml function in php5
smartymoon

Replies: 16
Views: 22664

PostForum: General   Posted: Fri Jun 17, 2005 3:51 pm   Subject: simplexml function in php5
Here is my solution for simplexml in php 5.
i tried with for but not worked, instead use foreach.

test.php
<?php
$smarty =& new Smarty;

include 'example.xml';

$xml = simplexml_load_stri ...
  Topic: simplexml function in php5
smartymoon

Replies: 16
Views: 22664

PostForum: General   Posted: Fri Jun 17, 2005 8:33 am   Subject: simplexml function in php5
for your convenience, i'll post print_r dump of $xml

SimpleXMLElement Object
(
[movie] => SimpleXMLElement Object
(
[title] => PHP: Beh ...
  Topic: simplexml function in php5
smartymoon

Replies: 16
Views: 22664

PostForum: General   Posted: Fri Jun 17, 2005 8:22 am   Subject: simplexml function in php5
// kills

using movies instead of movie has same result, no output

thanks

s. moon
  Topic: simplexml function in php5
smartymoon

Replies: 16
Views: 22664

PostForum: General   Posted: Fri Jun 17, 2005 8:16 am   Subject: simplexml function in php5
it seems messju is right.
section is not workable with simplexml.
returned value from simplexml is mixing of array and object.
it's too much confusing.
i'll try foreach but foreach has few feature ...
  Topic: simplexml function in php5
smartymoon

Replies: 16
Views: 22664

PostForum: General   Posted: Fri Jun 17, 2005 6:52 am   Subject: simplexml function in php5
I am testing simplexml function in php5.
i tested with the following files but no output at all.
please show me how to setup tpl file.

this example is from php manual.

thanks

s. moon

sim ...
  Topic: save cache page in html and display it directly
smartymoon

Replies: 1
Views: 11230

PostForum: Feature Requests   Posted: Tue Jun 14, 2005 3:53 pm   Subject: save cache page in html and display it directly
what i want?

I would like to save cached page into static page
so that, next time, i will display this saved static page
without going thru sql, smarty,
until i need to update the page and save ...
  Topic: template tries to include itself
smartymoon

Replies: 1
Views: 4904

PostForum: General   Posted: Wed May 25, 2005 2:55 pm   Subject: template tries to include itself
I try to do the following.

code is
$smarty->fetch("blog.tpl");
blog.tpl is
{include file="blog.tpl"}
Problem is
blog.tpl should be blog_body.tpl
but ...
  Topic: Smarty and Prado
smartymoon

Replies: 0
Views: 16636

PostForum: Frameworks   Posted: Fri Dec 10, 2004 3:19 pm   Subject: Smarty and Prado
Have you seen Prado framework? see http://www.xisc.com/

What is Prado?
It is event driven system and composed of lots of components
I think if you understand the inside of Prado, building program ...
  Topic: Smarty with an Object Orientated Website
smartymoon

Replies: 67
Views: 293160

PostForum: Frameworks   Posted: Wed Dec 01, 2004 12:37 am   Subject: prado: php5 class framework
Anyone has a chance to study prado? See here. http://www.zend.com/php5/contest/contest.php or http://www.zend.com/php5/contest/contest.php?id=36&single=1
Prado is a framework written in php5 class fo ...
  Topic: don't delete 'index.html'
smartymoon

Replies: 2
Views: 12366

PostForum: Feature Requests   Posted: Sun Aug 22, 2004 3:00 am   Subject: don't delete 'index.html'
I need following variables.

files_kept_in_cache and files_kept_in_template_compiled

to prevent index.html from deleting when we clear the cache or templates_compiled folder.

As you know, we k ...
  Topic: trigger_error function
smartymoon

Replies: 0
Views: 7700

PostForum: Feature Requests   Posted: Sat Aug 14, 2004 7:18 pm   Subject: trigger_error function
When I run smarty class, I got this error message.

Warning: Smarty error: file:hello.php is not readable in C:\php4\smarty\Smarty\S
marty.class.php on line 1083

This error message is from "trig ...
  Topic: exclude option in clear_all_cache, clear_compiled_tpl
smartymoon

Replies: 1
Views: 8476

PostForum: Feature Requests   Posted: Sun May 04, 2003 3:24 pm   Subject: exclude option in clear_all_cache, clear_compiled_tpl
clear_all_cache, clear_compiled_tpl

these commands clear every file in the folder
but i would like to keep index.html file
so nobody can get the list of the folder
can we have exclude option lik ...
  Topic: mysql sample
smartymoon

Replies: 2
Views: 10154

PostForum: Bugs   Posted: Wed Apr 30, 2003 3:26 pm   Subject: broken link
it's broken link
it should be fixed

moon
  Topic: best way to build a multi-language site with smarty
smartymoon

Replies: 210
Views: 1206912

PostForum: Tips and Tricks   Posted: Tue Apr 29, 2003 6:37 pm   Subject: each config file for each language
you may create config files for each lang
like
lang.eng,config
lang.spn.config


and assign $LANG and use in template to fetch file

{config_load file="lang.$LANG.conf"}

moon
  Topic: IE browser converts SMARTY_DEBUG to lowercase automatically
smartymoon

Replies: 1
Views: 9053

PostForum: Bugs   Posted: Tue Apr 29, 2003 6:05 pm   Subject: IE browser converts SMARTY_DEBUG to lowercase automatically
in my windows 2000, SMARTY_DEBUG doesn't work

I think we need to change strstr func in fecth func in Smarty class to stristr func.

moon
 
Page 1 of 1
All times are GMT
Jump to:  


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