Author |
Message |
Topic: Industrial Strength MVC |
sweatje
Replies: 26
Views: 209900
|
Forum: Article Discussions Posted: Tue May 11, 2004 4:49 pm Subject: Industrial Strength MVC |
Sorry for the cross post to another forum, but [url=http://www.sitepoint.com/forums/showthread.php?t=165922]this thread in an interesting examination of MVC with an underlying question of is MVC becom ... |
Topic: Industrial Strength MVC |
sweatje
Replies: 26
Views: 209900
|
Forum: Article Discussions Posted: Mon May 10, 2004 11:47 am Subject: Industrial Strength MVC |
Perhaps the issue is in how I think about the loading of the template vars. I typically have "View" classes that:
a) are created via a factory method of a "ShowViewAction" class
b) have a Smarty ob ... |
Topic: Industrial Strength MVC |
sweatje
Replies: 26
Views: 209900
|
Forum: Article Discussions Posted: Fri May 07, 2004 1:33 pm Subject: Industrial Strength MVC |
Well, this is how I might think about the whole interaction from a MVC view point.
>>>start of transaction 1
To start, the browser sends and HTTP request.
This is picked up by the Cont ... |
Topic: Industrial Strength MVC |
sweatje
Replies: 26
Views: 209900
|
Forum: Article Discussions Posted: Fri May 07, 2004 11:57 am Subject: Re: Validate |
The question is as follows: I have a custom ActionForm object en I use the "validate" method. But when I submit some values, and "validate" returns FALSE, the intended view is displayed but my submitt ... |
Topic: Industrial Strength MVC |
sweatje
Replies: 26
Views: 209900
|
Forum: Article Discussions Posted: Sun Dec 21, 2003 3:08 am Subject: Re: Industrial Strength MVC |
The issue I have is with the database abstraction. I believe abstraction is important, but I feel that if I choose to used the PEAR::DB or ADOdb in my PHP code, then I can't create the pgsql function ... |
Topic: Accelerator ! |
sweatje
Replies: 3
Views: 7619
|
Forum: General Posted: Tue Sep 02, 2003 5:26 pm Subject: Accelerator ! |
Here is the list from the php.net links page:
http://www.php.net/links.php#accelerators |
Topic: Industrial Strength MVC |
sweatje
Replies: 26
Views: 209900
|
Forum: Article Discussions Posted: Wed Aug 06, 2003 9:40 pm Subject: Industrial Strength MVC |
I saw that too. I was curious that none of the examples showed any SQL interaction. You could see how a PHP developer could use it for familar syntax for doing formatting operations, but I will need ... |
Topic: Delimiters |
sweatje
Replies: 12
Views: 58038
|
Forum: General Posted: Thu Jul 24, 2003 6:28 pm Subject: Delimiters |
I think you could write a prefilter to accomplish that. |
Topic: HTML Page stays blank |
sweatje
Replies: 6
Views: 22926
|
Forum: Installation and Setup Posted: Fri Jun 27, 2003 1:41 pm Subject: HTML Page stays blank |
This is the kind of problem I experience (non-Smarty related) when I have custom error handling enabled, and a PHP fatal error creeps into my code.
Perhaps try error_reporting(E_ALL); as the first ... |
Topic: Opposite of Truncate |
sweatje
Replies: 6
Views: 11552
|
Forum: General Posted: Fri Jun 27, 2003 3:00 am Subject: Opposite of Truncate |
in a template
{$var|str_pad:30}
should work, but unless you are in <pre> or <code> HTML will just eat the spaces anyway... |
Topic: smarty + mysql |
sweatje
Replies: 3
Views: 8814
|
Forum: General Posted: Sun Jun 15, 2003 12:44 pm Subject: smarty + mysql |
I would probably do:
$faqs = array();
while($row = mysql_fetch_array($res,MYSQL_ASSOC)){
$faqs |
Topic: Industrial Strength MVC |
sweatje
Replies: 26
Views: 209900
|
Forum: Article Discussions Posted: Fri Jun 13, 2003 3:45 am Subject: Industrial Strength MVC |
Well, that should get some wheels turning...
More like mind bending! Left me speachless for days
Did you have some thoughts about what your abstract language would look like? Some ... |
Topic: ADVANCED: Recursion with Smarty |
sweatje
Replies: 155
Views: 822845
|
Forum: Tips and Tricks Posted: Fri Jun 13, 2003 3:05 am Subject: ADVANCED: Recursion with Smarty |
I just recently implemented a script that renders a hierarchy. I was able to construct a single array to send to Smarty to accomplish the rendering.
The structure looked like this:
<?php
$a = ... |
Topic: Where do u set your URL's? |
sweatje
Replies: 3
Views: 9770
|
Forum: General Posted: Thu Jun 12, 2003 7:39 pm Subject: Where do u set your URL's? |
<?php
$smarty->register_function('appl_url', 'smarty_appl_url');
/**
* function to write an application url
*
* makes the assumption that anything not explicitly overridden s ... |
Topic: Where do u set your URL's? |
sweatje
Replies: 3
Views: 9770
|
Forum: General Posted: Thu Jun 12, 2003 11:27 am Subject: Where do u set your URL's? |
I usually send a tag for the base URL, and append as nescesarry. For situation where I know I will be having many vars that need to be updated and output every time, I will write a custom function.
... |
|