Author |
Message |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Wed Nov 23, 2011 6:53 pm Subject: Smarty Sample Application |
I suppose this is for academic interest - the fix worked fine. But I get that error when there *is* a record already in the db. |
Topic: TinyMVC (from the author of Smarty) |
TheEditor
Replies: 4
Views: 40007
|
Forum: Frameworks Posted: Wed Nov 23, 2011 6:06 pm Subject: TinyMVC (from the author of Smarty) |
A TinyMVC version of the guestbook app would be nice. |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Wed Nov 23, 2011 3:09 am Subject: Smarty Sample Application |
Thanks much for the help. Time for me to move on to TinyMVC, and then to integrating the pair. |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Wed Nov 23, 2011 1:43 am Subject: Smarty Sample Application |
Now it looks like I've got a working sample app. Much thanks.
But that last bit, if I'm reading it right, just means that an error was passed over and not reported. Why was the error thrown in the ... |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 9:29 pm Subject: Smarty Sample Application |
Ahh, that gets it. Now when I try to add an entry to the guestbook via
http://localhost/sampleapp/docs/index.php?action=add
the app throws an error
Notice: Undefined index: Name in C:\wamp\ww ... |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 9:14 pm Subject: Smarty Sample Application |
Ok, I've got just one more problem with the sample app. The SQL script isn't working quite right. Specifically the CREATE TABLE statement:
#1064 - You have an error in your SQL syntax; check the ma ... |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 8:46 pm Subject: Smarty Sample Application |
Ok, that seems to help things a lot. You can understand my frustration. |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 8:32 pm Subject: Smarty Sample Application |
guestbook.tpl is where I think it should be:
C:\wamp\www\sampleapp\guestbook\templates
That is the path specified in the zip file - \sampleapp\guestbook\templates\. |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 8:26 pm Subject: Smarty Sample Application |
In the guestbook application, where would I best place the testinstall call? |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 5:55 pm Subject: Smarty Sample Application |
The SQL file might be amended to include an INSERT statement.
After inserting a test record the message I'm getting now is
Fatal error: Uncaught exception 'SmartyException' with message 'Unable ... |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 5:35 pm Subject: Smarty Sample Application |
Also, guestbook.lib.php pops an error on line 137 telling me that $rows does not exist. I think this is because the table is empty. I inserted a record via phpMyAdmin and do not get that error any lon ... |
Topic: Smarty Sample Application |
TheEditor
Replies: 65
Views: 502597
|
Forum: General Posted: Tue Nov 22, 2011 2:41 am Subject: can't get the sample app to work |
The app description on
http://www.smarty.net/sampleapp1
says that "/web/www.example.com/docs/guestbook/index.php will be the entry point of our application."
But the zip file does ... |
|