CCAPS

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

CCAPS

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: CCAPS

Post by onion2k »

Wiki links are case sensitive.. did you mean http://en.wikipedia.org/wiki/Ccaps ?
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Re: CCAPS

Post by volomike »

onion2k wrote:Wiki links are case sensitive.. did you mean http://en.wikipedia.org/wiki/Ccaps ?
[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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: CCAPS

Post 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?
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Re: CCAPS

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: CCAPS

Post 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? :P
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Re: CCAPS

Post 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? :P
Tis cool. To each his own. I just thought I'd share what works for me.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: CCAPS

Post 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. :D
Post Reply