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
$('#currencySelectBox li').each(function( index ) { | |
var currs = $( this ).find('.dd-option-value').val(); | |
if(currs == storeCur) | |
{ | |
$('#currencySelectBox').ddslick('select', {index: $(this).index()}); | |
} | |
}); |
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
//check a session | |
if ($this->session->has("loggedIn")) { | |
//remove a session varaiable | |
$this->session->remove("loggedIn"); | |
}else{ | |
//add a session variable | |
$this->session->set("loggedIn", '1'); | |
} |
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
if ($this->request->isPost() == true) { | |
// Access POST data | |
$customerName = $this->request->getPost("name"); | |
$customerBorn = $this->request->getPost("born"); | |
} |
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 echo Phalcon\Tag::stylesheetLink("css/local.css"); ?> | |
<?php echo Phalcon\Tag::image("img/stsllc_logo.png");?> | |
<?php echo Phalcon\Tag::javascriptInclude("js/jquery-1.10.2.min.js");?> |
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
//pick the 404 page from view folder | |
$this->view->pick('404/404'); |
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
$robots = Category::query() | |
->columns(array('Category.id', 'Category.cate_name', 'Tags.tag_name')) | |
->join('Tags', 'Category.id = Tags.tag_ref_id') | |
->execute(); |
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 | |
/* The loop */ | |
if ( get_post_gallery() ) : | |
$gallery = get_post_gallery( $post, false ); | |
?> | |
<div class="sliderss"> | |
<a href="javascript:" class="pera-close"></a> | |
<?php | |
/* Loop through all the image and output them one by one */ |
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
<html> | |
<body> | |
<form action="result.php" method="post"> | |
Name: <input type="text" name="name"><br> | |
E-mail: <input type="text" name="email"><br> | |
<input type="submit"> | |
</form> | |
</body> |
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
<html> | |
<body> | |
Welcome <?php echo $_POST["name"]; ?><br> | |
Your email address is: <?php echo $_POST["email"]; ?> | |
</body> | |
</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
<?php | |
$email = '[email protected]'; | |
//get the domain here | |
$domain = array_pop(explode('@', $email)); | |
?> |