Im speaking at the PHPUGPH 2013 conference here in Manila
This post is really just a placeholder so that I can attach the PDF of the conference slides, the talk I'm giving is an introduction to MongoDB for PHP programmers.
$cd ~/Downloads
$git clone https://github.com/elasticsearch/elasticsearch-servicewrapper.git elasticsearch-servicewrapper
$cd ~/Downloads
$sudo mv elasticsearch-0.18.5 /usr/local/share
$cd elasticsearch-servicewrapper
$sudo mv service /usr/local/share/elasticsearch-0.18.5/bin
$cd /usr/local/share
$sudo ln -s elasticsearch-0.18.5 elasticsearch
$sudo chown -R root:wheel elasticsearch
$cd /usr/local/share/elasticsearch
$sudo bin/service/elasticsearch start
$ sudo bin/service/elasticsearch start
Starting ElasticSearch. Detected Mac OSX and installed launchd daemon.
Waiting for ElasticSearch...
.
.
.
.
.
.
running: PID:57767
$
{
"ok" : true,
"name" : "Bova",
"version" : {
"number" : "0.18.5",
"date" : "2011-03-01T19:07:42",
"snapshot_build" : false
},
"tagline" : "You Know, for Search",
"cover" : "DON'T PANIC",
"quote" : {
"book" : "The Hitchhiker's Guide to the Galaxy",
"chapter" : "Chapter 30",
"text1" : "\"The chances of finding out what's really going on in the universe are so remote, the only thing to do is hang the sense of it and keep yourself occupied. Look at me, I design fjords. I'd far rather be happy than right any day.\"",
"text2" : "\"And are you?\"",
"text3" : "\"No, that's where it all falls apart I'm afraid.\"",
"text4" : "\"Pity, it sounded like quite a nice lifestyle otherwise.\""
}
}
$cd /usr/local/share/elasticsearch
$sudo bin/service/elasticsearch stop
$layout = Zend_Layout::getMvcInstance();
if($layout) {
$layout->disableLayout();
}
$this->_helper->viewRenderer->setNoRender();
public function registerAction() {
/*
* Register for new account
*/
$register = new Form_User_Registration();
if (Zend_Auth::getInstance()->hasIdentity()) {
$this->_redirect('/');
} else if ($this->getRequest()->isPost()) {
// do the registration action here
// redirect when done
}
$this->view->register = $register;
echo $this->renderScript('pages/user/register.phtml');
}
$this->view->register = $register;
$this->view->register = (string)$register;
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home; export JAVA_HOME