PHP Developer Checklist: Application Level Package Managers
PHP Application Level Package Manager: Composer What is Composer? Ever used apt, dpkg, yum? These are package managers for unix […]
PHP Application Level Package Manager: Composer What is Composer? Ever used apt, dpkg, yum? These are package managers for unix […]
Setting up your Private Remote Git Repository So you need a private remote git repository for collaborative, backup or convenience […]
This should apply to perl as well: Variable name: $myvar = ‘foo’; ${$myvar} = ‘haswell’; echo $foo RESULT ‘haswell’ Call […]
foreach (array_expression as $key => $value) { echo $key; }
$var_str = var_export($data, true); $var = “$var_str”; file_put_contents(‘/var/some/location/on/server/value.txt’, $var);
Info from Stackoverflow if (isset($_POST[“mail”]) && !empty($_POST[“mail”])) { echo “Yes, mail is set”; }else{ echo “N0, mail is not set”; […]
More info can be found at davidwalsh $message = ‘Hello ‘.($user->is_logged_in() ? $user->get(‘first_name’) : ‘Guest’);
To Redirect: /controllers/yourcontroller::youAction() $this->_redirect(‘/path/to/place’); To Show Profiler in a layout /layouts/yourlayout.phtml $this->addScriptpath(APPLICATION_PATH . ‘/profiler/views/scripts’); echo $this->render(‘util/profiler.phtml’); /application/profiler/views/scripts/util/profiler.phtml Database Profiling Report […]
In the web development realm it is very common we hear the term MVC. Well What is MVC? MVC is […]