It's a quick way to check html output, ids, classnames, etc. One thing I'll mention is a tool I use on an hourly basis - the Aardvark bookmarklet for Chrome/Firefox (and Safari I think). If CSS is something you struggle with, I'd check this out.ĭreamweaver is just too big and slow in my opinion. I've got the stand alone version of this and it's great. I prefer the site management of Coda, but that might have improved with the latest versions of Espresso. A very similar editor, but it's more recently updated.
#Coda 2 php debugging code#
The direct competitor to Code would be Espresso (). Coda 2 is not far away and it should have quite a few new features. It has basic code completion (function names, but not anything fancier than that), but I have a few plugins for Coda that do things like tidy php and html. The site management and ftp side of things is great. I say this from the perpective of someone who has done a lot of customisation of the ecommerce plugin, so this is my approach, but each to their own. For debugging, a quick print_r() exposes arrays and objects quickly and easily. Most things in concrete5 follow a decent MVC pattern. The thing is, with developing/debugging Concrete5, I find that most of the time I don't need to step through code - sitewide text searches tend to track down things quickly. More blog posts about these latest updates here and here.I used to use Eclipse in the past for general PHP work- it has/had some cool validation plugins and I know you get can a debugger working (never got that working myself though). You can also use the Polldaddy shortcodes in a text widget, similar to on, to embed a survey, poll and a rating into the sidebar.
Just place the following line into your theme where you want the rating to be displayed. I have added a template tag so you can now add a rating where you like. This widget will show you the top rated posts, pages and comments today, this week and this month. I’ve recently added the ‘Top Rated’ widget that will allow you to place the widget in your sidebar. The ratings menu allows you to embed ratings into your pages, comments and posts, including posts on the front page. PSR and such and needed a real PHP editor to replace Coda 2. You can collect unlimited votes and create unlimited polls and ratings. The first step is setting up a Client: PHP throwing XDebug errors ONLY in command line mode. I have added the style editor to allow you to create your own custom style for a poll. All polls and ratings are fully customizable. The plugin allows you to create and manage polls and ratings from within your WordPress dashboard. It basically uses the core code used on with a few extra’s necessary for that platform. I am developing ( not from scratch, thanks mdawaffe for the leg up! ) a plugin for polls and ratings on, available here.
#Coda 2 php debugging how to#
It has some good plugin development tips, including how to enable debugging on WordPress.
You can write directly to this log from your plugin using the error_log() function.Įrror_log( print_r( $some_obj_or_array, 1 ) ) Now you all warnings and errors will show up in the /wp-content/debug.log file, including WordPress warnings of deprecated functions. Doesn't force the PHP 'display_errors' variable to be on super handy features for writing and debugging your CSS such as Live Preview and the. Tells WordPress to log everything to the /wp-content/debug.log file Coda is the swiss army knife of CSS editing apps, it combines code.
Replace the line above with the following… To enable debugging, go to your wp-config.php file.įind the line… define('WP_DEBUG', false)
If you are developing a plugin on WordPress, you will need to debug your code as you go.