Page 1 of 1
CCAPS
Posted: Fri Oct 17, 2008 10:02 am
by volomike
I thought I'd share with you my first Wikipedia article.
http://en.wikipedia.org/wiki/CCAPS
I'm still working on finding external links for reliable sources, mostly those who discuss PHP Alternative Syntax in a positive light.
Re: CCAPS
Posted: Fri Oct 17, 2008 10:41 am
by onion2k
Wiki links are case sensitive.. did you mean
http://en.wikipedia.org/wiki/Ccaps ?
Re: CCAPS
Posted: Fri Oct 17, 2008 11:12 am
by volomike
[s]If someone could show me how to force uppercase, I'd appreciate it.[/s]
Oh, and it looks like the bots don't like the how-to nature of it, so I've started another one on Wikibooks:
http://en.wikibooks.org/wiki/CCAPS
EDIT: I figured out how to the case-sensitive redirects. You have to post the article by typing in the URL you want it to be, getting an error, clicking Edit this page, saving the page, and then going back to the wrong page, editing the page, selecting all the text, pressing delete, and then clicking the #R button on the toolbar. This will prompt you for where to redirect this article. So I typed in CCAPS in all uppercase and then clicked Submit. Now when you query on ccaps or CCAPS, you get to the same article on Wikipedia and Wikibooks.
Re: CCAPS
Posted: Fri Oct 17, 2008 3:38 pm
by alex.barylski
No looping allowed? How are you suppose to generate tabular data? I read this about 45 minutes ago and I'm just replying now, but if I remember correctly it says repeated data is to be generated in the calling code?
That sounds like HTML sneaking in your PHP source...which IMHO leads to more spaghetti code than having carefully constructed loops in a template...do I misunderstand?
Re: CCAPS
Posted: Fri Oct 17, 2008 11:28 pm
by volomike
PCSpectra wrote:No looping allowed? do I misunderstand?
Nope, you don't misunderstand. With CCAPS, put the tabular data XHTML builder in the calling code. It's the only way you can guarantee that if someone opens up the project in something like Dreamweaver and re-edits the template, that it won't get munged up. But heck yeah, there's a major drawback -- you can't re-edit the tabular data's XHTML in Dreamweaver. So, weighing the options, it seemed to me to be the most logical conclusion, and a drawback that I can live with.
Re: CCAPS
Posted: Sat Oct 18, 2008 8:59 pm
by alex.barylski
I see...thats fair. Personally I would rather just use a strict template policy and allow PHP execution directly or make the designer learn PHP or XSLT or something. Why do us programmers always get the short end of the stick?

Re: CCAPS
Posted: Sat Oct 18, 2008 9:39 pm
by volomike
PCSpectra wrote:I see...thats fair. Personally I would rather just use a strict template policy and allow PHP execution directly or make the designer learn PHP or XSLT or something. Why do us programmers always get the short end of the stick?

Tis cool. To each his own. I just thought I'd share what works for me.
Re: CCAPS
Posted: Sun Oct 19, 2008 4:36 pm
by alex.barylski
Always appreciated.
You might want to look into SilverStripe CMS and it's templating system which I believe uses SSI -- it's different.
