Hello! I’m Jonathon Hill, an avid PHP/MySQL/Javascript web developer. Welcome to my blog, where I document interesting solutions to problems, publish some of my projects, and talk about politics or anything else I fancy. I hope you enjoy my blog!


9 thoughts on “About”

  1. Hi Jonathon,

    I really like some of your solutions to making things simpler when using CodeIgniter. On the subject, I was wondering if you had a preference for a simple way to include headers and footers in your views. I know you can either do views within views, but that just doesn’t feel right to me. Although the advantage is only having to use one line to call your views within a controller. The method of building your views within an action by calling each view seperately also doesn’t interest me, because I’m trying to adhere to the DRY principle. I’ve also seen a solution where you create your own MY_controller and build the view that way then inherit from all your other controllers.

    Do you have a recommended way to include your common views that’s simple and doesn’t require you add multiple lines of code to each controller action? I’m trying to keep my view calling to one line within each action of the controller.



  2. Hello Lee,

    My preference on that is simply calling views within views. If there is data that must be passed to the header and footer globally, then I would try something like this:

    class MY_Loader extends CI_Loader {
    	function MY_Loader() {
    	function global_view_data($key, $val) {
    		# normalize the data array
    		$data = (is_array($key))? $key : array($key => $val);
    		# merge into the view data array
    		$this->_ci_cached_vars = array_merge($this->_ci_cached_vars, $data);

    Copy that to a file called MY_Loader.php and save it in your libraries folder as described in the user guide. Once that is done you can load data which will be passed to all views globally:


    I have found that including views within views is aggravating without a helper function, so I wrote the Modularity plugin to help with that.

    Sorry it took so long to answer, glad you’re enjoying my blog!

    Best wishes,

  3. hi,

    I checked your jquery date/time picker post. Do you know if we can show the current and future time and not the past time? for example, If I select Aug 4th as date and assuming the time now is 9am, I want the timer picker to show only the time after 9am and notthing before that as it’s gone. I am trying to use this date/time picker as I am trying to work on a event based site.

    please let me know if you have any idea. I got to know about the date restriction for the date picker from jquery.com site i.e. shows only current and future date and not the past date/year.


  4. Hello Jonathon,

    Your resume is impressive. I was wondering if you have any experience with work order dispatch boards? I’m currently trying to implement one for a customer scheduling and job tracking site I’m building but I’m at a loss as to how to begin. Since the work order objects need to be horizontally expandable/shrinkable in half hour increments across a 9 to 5 time frame, I’m not sure if it should be built on a table or floating div foundation.

    If you do have any experence with work order dispatch boards, what is your opinion?

  5. I would need to know a bit more about what you’re trying to do before I can answer that, feel free to contact me directly via email at jhill9693 AT gmail DOT com, or skype at jonathon DOT glarity.

  6. I found your website and noticed that you have a solid technical background. Wanted to pass along an open source project that you might find interesting. Zurmo is a highly sophisticated open source CRM project that is written in PHP utilizing JQuery, Yii, and RedBeanPHP and relies heavily on test driven development.

    Right now, we have 1000+ unit tests running across eight server configurations. It would be incredibly helpful to get your technical feedback and recommendations so that we can improve the application. Take a look and let me know what you think: http://zurmo.org


Leave a Reply

Your email address will not be published. Required fields are marked *

Hello! I’m a self-taught freelance web developer, and this is my blog. Here, I document problems and solutions in PHP, MySQL, and Javascript that I encounter along the way. Enjoy!