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 30 matches
Smarty Forum Index
Author Message
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Sat Nov 06, 2004 11:59 am   Subject: Smarty with an Object Orientated Website
I have a new demo, mostly in Dutch (sorry).

New Demo website: http://demo.mocean.nl/

Database dump: http://demo.mocean.nl/moceandemo.txt


I hope to have the CMS up soon (in fact it is), but ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Tue Apr 20, 2004 7:27 am   Subject: Smarty with an Object Orientated Website
most nice Smile

Then the next question must be how you handle templates. I geuss that it is possible to choose different tpl to different pages, but how?

Ìn fact, each object has its own template ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Tue Apr 20, 2004 6:58 am   Subject: Re: nice
Hi, just been testing of your demo, find it simpel and powerfull.

Question: is possible to cut in a call for a smarty plugin, into the 'content' field? if not, that would be nice.

Why? Then it w ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Mon Apr 19, 2004 4:58 pm   Subject: Smarty with an Object Orientated Website
atm I don't get it, but I hope it'll be better. If you click at the objects there are some errors. good luck.

It seems the system jams, when you add double content properties! There is no check (ye ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Fri Apr 16, 2004 6:53 pm   Subject: Demo!
The demo CSM: http://habiforum.mocean.nl/cms/
And the site: http://habiforum.mocean.nl/

This is not finished at all! And I had to cut some of the functionality, because otherwise anonymous user wo ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Wed Apr 14, 2004 8:45 am   Subject: Smarty with an Object Orientated Website
Hey people! maybe I'll be back with a Demo of the CMS soon... After a few months, I'm working on it again.
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Mon Sep 22, 2003 12:40 pm   Subject: Re: more questions

About relations:
Is the relations stuff really necessary? I was thinking of creating a couple of "meta" data types (in DataTypes) to handle parent/child relations: things like a "object" and "obje ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Sat Sep 13, 2003 11:37 am   Subject: Re: Excellent work.

how are you handling the news on your site ?

The news arrives in an XML file which is renewed by a cron job every 15 minutes.

I created a Smarty Plugin which displays news:
{shownews mode="f ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Fri Sep 12, 2003 3:50 pm   Subject: Smarty with an Object Orientated Website
what's new? maybe there's a article already?
we're waiting Smile

I'm working on the article, but that requires time, which is the limiting factor right now.

Second, I'm making plans to develop an ...
  Topic: Pattern Matching in Smarty
mocean

Replies: 9
Views: 16380

PostForum: General   Posted: Mon Sep 08, 2003 7:55 pm   Subject: Pattern Matching in Smarty
I agree for the most part. This particular situation calls for different ordering of images based on a value in the $_SESSION. It's less code to do a simple {if} statement then to do about anything el ...
  Topic: Using smarty within custom php functions.
mocean

Replies: 2
Views: 6677

PostForum: General   Posted: Wed Sep 03, 2003 5:35 pm   Subject: Re: Using smarty within custom php functions.
try passing a reference to the object to the function


<?php

$smarty = new Smarty;

test_function($smarty);

function test_function(&$obj){
$obj->assign('test_assignment','blah'); ...
  Topic: Prevent SWF files not be cached
mocean

Replies: 3
Views: 7942

PostForum: General   Posted: Wed Aug 27, 2003 2:33 pm   Subject: Prevent SWF files not be cached
You could open the swf file with PHP and parse it to the visitor using a SWF header and a pragma: no-cache header (or something like that)

But has this anything to do with Smarty?
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Tue Aug 26, 2003 10:54 am   Subject: Re: Relations
Thanks for your reply, mocean.
I didn't mean that a replacement for the relations system you had already built, but as an adjunct to only support hierarchical cases (like menus, etc).

One could ad ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Sun Aug 24, 2003 8:26 pm   Subject: Re: Relations
Excuse me for my briefness, but I have a few comments/questions.

I use the 'Value' of a parent-child-relation for sorting purposes, to sort children in menu's. You could think of many other possibi ...
  Topic: Smarty with an Object Orientated Website
mocean

Replies: 67
Views: 292831

PostForum: Frameworks   Posted: Fri Aug 22, 2003 2:26 pm   Subject: Re: Object type too right?
new object and object type then.

Am I right?
I mode a small mistake indeed Smile
In fact, you need a new objecttype, a few objects of that type to populate the select box, and a relation to connect ...
 
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