Skip to content

Instantly share code, notes, and snippets.

View Swader's full-sized avatar
🏠
Buidling

Bruno Škvorc Swader

🏠
Buidling
View GitHub Profile
@Swader
Swader / cipp_06.html
Created February 3, 2013 20:24
CI++ article gist 06
<h1>This is my site and my name is Bruno</h1>
@Swader
Swader / cipp_07.php
Created February 3, 2013 20:24
CI++ article gist 07
<?php
$this->view->prependToTitle('My Controller - ');
?>
@Swader
Swader / cipp_08.html
Last active December 12, 2015 02:59
CI++ article gist 08
<style type="text/css">
#loginform_main {
border: 1px solid silver;
border-radius: 10px;
padding: 10px;
margin: auto;
}
#loginform_main label {
display: inline-block;
width: 200px;
@Swader
Swader / cipp_09.php
Created February 3, 2013 20:27
CI++ article gist 09
<?php
$this->view->data['key'] = $value
?>
@Swader
Swader / cipp_10.html
Created February 3, 2013 20:31
CI++ article gist 10
<div id="container">
<h1>Welcome to the demo of CI++!</h1>
{{vf_loginform}}
</div>
@Swader
Swader / cipp_11.php
Last active December 12, 2015 03:08
CI++ article gist 11
<?php
$oParser = new Parser();
// Here we give values to the tags the parser can expect in the content.
$aTagValues = array(
'name' => 'Bruno',
'title' => 'M.A.'
);
$sContent = "Dear {{title}} {{name}}, we are spamming you to sell you canned beans.";
brew install wget libjpeg libpng openssl pcre libxml2 mcrypt imagemagick mhash freetype virtualhost.sh mysql
from /Users/swader/Downloads/php-5.4.11/ext/intl/msgformat/msgformat_helpers.cpp:22:
/usr/include/c++/4.2.1/ctime:64: error: expected constructor, destructor, or type conversion before ‘namespace’
make: *** [ext/intl/msgformat/msgformat_helpers.lo] Error 1
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \
@Swader
Swader / php.ini
Created February 5, 2013 13:24
PHP ini extra options
short_open_tag = Off
max_execution_time = 300
max_input_time = 600
memory_limit = 256M
error_reporting = E_ALL | E_STRICT
display_errors = On
display_startup_errors = On
post_max_size = 800M
upload_max_filesize = 200M
date.timezone = "[REPLACE WITH YOUR OWN]"