Concrete5 Codes gudies
Permalink
I am new to C5, wanting to understand function of these codes for example... To start with this
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
I suppose there are code guidelines somewhere so I can understand where to implement C5 Theme codes when building theme.
Links or source would be nice.
Thank in advance...
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
I suppose there are code guidelines somewhere so I can understand where to implement C5 Theme codes when building theme.
Links or source would be nice.
Thank in advance...
JohntheFish has identified the major aspects of web development with links to on-line resources. You may find this of value:http://www.concrete5.org/documentation/how-tos/designers/absolute-b...
WOW....FANTASTIC resources.... Thank you jvansanten!
The code snippet you identify is typically used at the beginning of C5 PHP program files. Its purpose is to require that the program be run within the context of a Concrete 5 application and not accessed by a rogue user.
There is documentation available, but this is a common idiom for PHP, and so won't be made explicit typically.
But, you don't need to know all about this to develop your own theme. Using existing template code as a base will get you far. Here's some documentation on the process:http://www.concrete5.org/documentation/how-tos/designers/making-a-t...