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 | |
namespace Ecs\CrmBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Symfony\Component\Validator\Constraints as Assert; | |
class Customer | |
{ | |
private $id; |
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
Ecs\CrmBundle\Entity\Customer: | |
type: entity | |
table: customer | |
repositoryClass: Ecs\CrmBundle\Entity\CustomerRepository | |
fields: | |
id: | |
type: integer | |
length: null | |
nullable: false | |
unique: true |
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
Twig_Error_Runtime: Variable "_theDate" does not exist in "EcsCrmBundle:Reports/PostDateReports:PostDatesOverview.html.twig" at line 44 | |
{% block content %} | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var lastOpenRow = null; | |
$(".linkDetails").live("click", function(e) { | |
var _this = $(this); |
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
report_post_dates_details_ajax: | |
pattern: /postdatedetails/{date}/{companyId}/{leadSource} | |
defaults: { _controller: "EcsCrmBundle:Report/PostDateReport:ajaxGetPostDateDetails", date: " |
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 signed_in? %> | |
<div class="row"> | |
<aside class="span4"> | |
<section> | |
<%= render 'shared/user_info' %> | |
</section> | |
<section> | |
<%= render 'shared/micropost_form' %> | |
</section> | |
</aside> |
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
<a href="<%= user_path(current_user) %>"> | |
<%= gravatar_for current_user, size: 52 %> | |
</a> | |
<h1> | |
<%= current_user.name %> | |
</h1> | |
<span> | |
<%= link_to "view my profile", current_user %> | |
</span> | |
<span> |
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
<%= link_to "delete", micropost, method: :delete, | |
data: { confirm: "You sure?" }, | |
title: micropost.content %> |
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
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/custom.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/sessions.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/static_pages.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/users.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<script src="/assets/jquery.js?body=1" type="text/javascript"></script> | |
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script> | |
<script src="/assets/bootstrap-transition.js?body=1" type="text/javascript"></script> | |
<script src="/assets/bootstrap-affix.js?body=1" type="text/javascript"></script> | |
<script src="/assets/bootstrap-alert.js?body=1" type="text/javascript"></script> |
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
$count = $this->bookings->where('archive != 0')->where('status', Status::get('accepted')->id)->count_all() | |
$config['base_url'] = site_url('admin/creatives/manage'); | |
$config['uri_segment'] = 4; | |
$config['total_rows'] = $count; | |
$config['per_page'] = '20'; | |
$config['num_links'] = '10'; | |
$this->pagination->initialize($config); |
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 | |
function replacer($array) { | |
$newArray = array(); | |
foreach ($array as $key=>$val) { | |
if (preg_grep('/^$/', $val)) { | |
$newArray[$key] = "empty"; | |
} else { | |
$newArray[$key] = $val; | |
} |