Author |
Message |
Topic: I've finally recived my new book and he has a whole chapter |
ptsjohnny
Replies: 1
Views: 4846
|
Forum: General Posted: Sun Aug 15, 2004 8:42 pm Subject: I've finally recived my new book and he has a whole chapter |
Hey, can we get a URL?
I'm very interested. |
Topic: Fatal error: Cannot redeclare class smarty |
ptsjohnny
Replies: 5
Views: 10326
|
Forum: General Posted: Tue Aug 10, 2004 3:51 am Subject: Fatal error: Cannot redeclare class smarty |
Well someplace in your code your instanciating a new version of the Smarty class.
Do a text search of your code and see if you have the words "new Smarty" more than once in there. |
Topic: Can I cache assigned variables? |
ptsjohnny
Replies: 3
Views: 5841
|
Forum: General Posted: Tue Aug 10, 2004 3:01 am Subject: Can I cache assigned variables? |
Hmmmmm....
What your saying is impossible... but yet it happens.
The first template I call is template:main which assigns variables directly to smarty. Is it a problem that I never call a 'ind ... |
Topic: Array Question |
ptsjohnny
Replies: 3
Views: 5059
|
Forum: General Posted: Mon Aug 09, 2004 6:44 pm Subject: Array Question |
I'm not sure really.
I'm not sure what $rec is supposed to be in your code?
Because my first array has numerical indexes I'm not sure how I'm supposed to loop through them.
HEre is the error ... |
Topic: Array Question |
ptsjohnny
Replies: 3
Views: 5059
|
Forum: General Posted: Mon Aug 09, 2004 6:22 pm Subject: Array Question |
I'm formatting arrays returned from the database like this:
Array (
[0] => Array ( [content_id] => loadncut_directions [parent] => loadncut-tv.com [ty ... |
Topic: Can I cache assigned variables? |
ptsjohnny
Replies: 3
Views: 5841
|
Forum: General Posted: Thu Aug 05, 2004 4:48 pm Subject: Can I cache assigned variables? |
What I'm trying to do is make a resource call like "db:foo". Now when db:foo is called, the register_resource functions actually assigns the variables to Smarty instead of assigning them first.
Th ... |
Topic: RSS Feed Available |
ptsjohnny
Replies: 12
Views: 134596
|
Forum: General Posted: Thu Aug 05, 2004 2:16 pm Subject: RSS Feed Available |
I get an error trying to load this feed:
XML Parsing Error: not well-formed
Location: http://www.phpinsider.com/smarty-forum/rdf.php
Line Number 41, Column 69: <title>how ... |
Topic: Function to get all of Smarty's assigned variables? |
ptsjohnny
Replies: 2
Views: 5060
|
Forum: General Posted: Wed Aug 04, 2004 1:39 pm Subject: Function to get all of Smarty's assigned variables? |
Thanks
The support here is top notch. Hopefully as I refine my understanding I'll be able to give back. Boots can't answer every post. |
Topic: Function to get all of Smarty's assigned variables? |
ptsjohnny
Replies: 2
Views: 5060
|
Forum: General Posted: Wed Aug 04, 2004 12:04 am Subject: Function to get all of Smarty's assigned variables? |
I saw a function in this forum before that returned all the variables the object had assigned to it. Can somebody help me out and tell me what it is?
I've been RFTMing and searching for some time ... |
Topic: Can I use classes with register_resource()? |
ptsjohnny
Replies: 2
Views: 6561
|
Forum: General Posted: Mon Aug 02, 2004 3:07 pm Subject: Thanks |
Thanks
That worked
For any others interested, make sure you put
$this->_smarty->register_resource("db", array( $this,
"db_get_template",
... |
Topic: Can I use classes with register_resource()? |
ptsjohnny
Replies: 2
Views: 6561
|
Forum: General Posted: Mon Aug 02, 2004 8:22 am Subject: Can I use classes with register_resource()? |
I want to do the same thing this guy is asking about:
http://marc.theaimsgroup.com/?l=smarty-general&m=106736268303686&w=2
Is this possible?
One of my main griefs right now is that I have t ... |
Topic: A little confused with multidimentional arrays and Smarty |
ptsjohnny
Replies: 1
Views: 4888
|
Forum: General Posted: Wed Jun 09, 2004 8:59 pm Subject: A little confused with multidimentional arrays and Smarty |
Here Are my Arrays:
Array ( [ZIPTO] => 66892 [ITEMS] => )
Array (
[0] => Array ( [product_id] => MSAR02-1 [quantity] => ... |
Topic: Putty Smarty Output into a Variable |
ptsjohnny
Replies: 1
Views: 4029
|
Forum: General Posted: Tue May 25, 2004 7:28 pm Subject: Putty Smarty Output into a Variable |
For a project I'm working on I'd like to grab the output of a smarty display and assign the data to a variable.
$smartyoutput = $smarty->display('file.tpl'); doesn't work. |
|