This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Files ~ "^\.yaml"> | |
| Order allow,deny | |
| Deny from all | |
| </Files> | |
| DirectoryIndex index.html, index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--- LEFT NAVIGATION W/ THUMBNAILS ---> | |
| <div class="leftnav"> | |
| <div class="addViews"> | |
| <h3 class="optima"> additional views </h3> | |
| <img src="${ms.urlPathNoProtocol}/imagesnew/product/alt/altBracketTop.png" alt="top" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oil generate admin controller1 | |
| # works fine no issues | |
| oil generate admin controller2 | |
| #failes ./././././base.php already exists, use -f, or --force to override. | |
| #I don't want to override the base.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="blogroll" data-type='blog' data-limit="6" data-sortBy="date" data-order="DESC"> | |
| <div class="title">{{title}}</div> | |
| <div class="date">{{date :format[m-d-y]}}</div> | |
| <div class="author">{{author}}</div> | |
| <div class="entry">{{entry}}</div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ugly bootstrap classes in your html --> | |
| <div class="row"> | |
| <div class="span6">...</div> | |
| <div class="span6">...</div> | |
| </div> | |
| <!- our new, semanticized HTML --> | |
| <article> | |
| <section class="main">...</section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Conventions: | |
| // We use angles in degrees in clock-wise fashion | |
| RobotHelpers = {}; | |
| MathHelpers = {}; | |
| RobotHelpers.cannon_rotation_direction = {}; | |
| RobotHelpers.shoot = {}; | |
| RobotHelpers.target = {}; | |
| RobotHelpers.moving_direction = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class ExampleController extends BaseController{ | |
| protected $layout = "master.layout" | |
| protected $themePath = "/some/path/" | |
| funcion index() | |
| { | |
| $data['user'] = "some user" | |
| View::addNamespace('theme', $this->themePath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Example URL | |
| www.mysite.com/templategroup/subtemplate/segment3 | |
| --> | |
| {exp:channel:entries channel="SnactivityDetailsChannel" limit="1" url_title="{segment_3}" } | |
| <h2>{title}</h2> | |
| {if no_results} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function submit_entry() | |
| { | |
| $this->initialize(); | |
| // Get hidden meta vars | |
| if ( ! isset($_POST['meta'])) | |
| { | |
| // This should never be valid | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $webRoot = $_SERVER['DOCUMENT_ROOT']; // root of our web site. | |
| define("DS", DIRECTORY_SEPARATOR ); // this is to account for OS direcorty separator differences | |
| require_once $webroot.DS."this{$DS}is{$DS}a{$DS}path{$DS}to{$DS}a{$DS}folder"; |
OlderNewer