@stratos said:
Documentation is thin in many areas. Or I can pay for support. In case you didn't notice, however, I am trying to weasel up some free support.
@stratos said:
Documentation is thin in many areas. Or I can pay for support. In case you didn't notice, however, I am trying to weasel up some free support.
Hey, I can use HTML on this forum. It's been so long...
ahHhhHHHh....
Are there any eZ Publish gurus here? I'm hoping there's someone here who I can endlessly ping with my dumb questions about eZ Publish.
I'm currently trying to implement an image gallery/slideshow. It seems like there is at least a stub of that functionality provided by ezwebin but I'm not sure how to make it work. Documentation regarding this is hard to find.
*waits patiently*
@stratos said:
ummm, end sets the internal pointer of an array to the last element, die() ends the script, if that is what you are refering to.
Oops, actually I was thinking of exit. Should have just said die, though. I dunno. I suck. Let's move on.
@dhromed said:
@stratos said:
To be honest I don't really understand the situation you are trying to drawJust plain ending shit early, wherein [end():script :: break:loop].
Yeah, that. For example, an unauthenticated user is accessing a page intended for authenticated users, so I just want to give them the login script and bypass the rest of the script. I have been designing pages that include conditional paths for auth'd and unauth'd users but I'm thinking maybe I can make the page way simpler (avoiding extraneous clauses) by having the unauth'd case do its thing and then bail out.
if test { do stuff } else { do other stuff }
vs.
if test { do stuff end() } do other stuff
I was just wondering about a corollary to this: Is it bad to use [i]end()[/i] in a PHP script for the same sort of purpose one might use [i]break[/i] in a loop? I understand (?) the traditional argument that you should be explicit about the logic you're imposing but it also seems to me that if I have an [i]if[/i] clause that ends with an [i]end()[/i] that the implicit [i]else[/i] for all code following it is pretty obvious. I find scripts easier to follow this way. Should I be rapped on the knuckles for blasphemy or is this no big deal?
/old dog trying to learn new tricks