Categories
PHP 5

PHP short of statement (Ternanry)

More info can be found at davidwalsh $message = ‘Hello ‘.($user->is_logged_in() ? $user->get(‘first_name’) : ‘Guest’);

Categories
Web Development Zend Framework 1.12

Zend Framework Tips and Tricks

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 Total queries executed: Total elapsed time: # Query Time () Disable Zend Layout: $this->_helper->layout->disableLayout(); source: Web Development Blog

Categories
MVC Web Development

What is MVC?

In the web development realm it is very common we hear the term MVC. Well What is MVC? MVC is a software design approach. MVC stands for: Model View Controller It is a template or pattern on how to structure a program. MVC has its origin in the Smalltalk language, MVC has been widely adopted […]

Categories
PHP PHP 5 Web Development

PHP & OOP: A Fundemental Tutorial on Object Oriented Programming and PHP

PHP & Object Oriented Programming PHP can be used both procedurally and with an object oriented approach. In PHP & procedural programming the emphasis lies with the actions and the steps that must be taken to perform actions such as submitting a form or retrieving a record from a database. In PHP & Object Oriented […]

Categories
Javascript Web Development

Why Javascript is not Working in Head Tag?

Why my javascript is not working in Head Tag? Have you been frustrated, and wonder why the javascript in your <head> tag is not working? Why javascript is not working in head tag? You must keep in mind that the position of your javascript within the code MATTERS. Your javascript’s code position with respect to […]