More info can be found at davidwalsh $message = ‘Hello ‘.($user->is_logged_in() ? $user->get(‘first_name’) : ‘Guest’);
Category: Web Development
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
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 […]
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 […]
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 […]