How to show debug output in browser console in php?
While debugging php code we might need to use print_r() or var_dump() functions with exit or die, as in following code but by following code page will not render completely because exit or die...
While debugging php code we might need to use print_r() or var_dump() functions with exit or die, as in following code but by following code page will not render completely because exit or die...
Get controller name and method name. CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications. Following codeigniter...
Vim is a text editor written by Bram Moolenaar. Its based on the vi editor common to Unix-like system. Following are commands for vi/vim. Cursor movement h – move left j – move down...
You can add following code on top of your php file. I had warnings and notices on joomla 2.5.11 site, I added following code in index.php file and it works. Share this…FacebookPinterestTwitterLinkedinTumblr
doSelectStmt in symfony 1.2 Share this…FacebookPinterestTwitterLinkedinTumblr
Sometimes we require to execute complex query in symfony 1.2 with propel. For this following code can be used. $rowObj will have result of your given query. You can check it via var_dump or...
sometimes we have multiple checkbox fields in form and require to select all and deselect all. Following is code to select and deselect. Share this…FacebookPinterestTwitterLinkedinTumblr
Referrer method in symfony. This is very useful method and used to redirect back to sender page. Share this…FacebookPinterestTwitterLinkedinTumblr
pik add command is used to register your installed ruby environments with pik. For example, I have Ruby 1.9.3, and 2.0.0 installed on my windows, so I used the following in a Command Prompt:...
Sometimes we require troubleshooting for joomla cms based website. For this it is useful to enable joomla debug mode by enabling it website will be in debug mode. Enabling the debug mode allows you...
More