Jump to content


Upgrading from version 1.1.x to 1.2 or later.

version 1.1 to 1.2 upgrade callback_escape_insert callback_escape_update callback_escape_delete

  • Please log in to reply
5 replies to this topic

#1 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,099 posts
  • LocationLondon

Posted 15 March 2012 - 10:27 PM

Some notes for the upgrading from version 1.1.x to 1.2 .

First of all always make sure that you copy all the files included in the new version and NOT only the library and the model. The assets/grocery_crud and the applications/config/ is a required folder also.

Just make sure that you will rename all the callback_escape_something for example:
callback_escape_insert , callback_escape_update and callback_escape_delete
to
callback_insert, callback_update and callback_delete .

A simple find and replace for "callback_escape_" to "callback_" will be OK. I renamed the callback_escape as it confused many people and a simple callback is smaller and easier to understand.

Also another renaming that you have to be careful of it's the grocery_Model to grocery_CRUD_Model if you used the set_model at you project.

Now for what's new in the current version ... I think many people will say.... AT LAST. Why?
  • AT LAST a better interface for the date and date-time. We get rid of old sql-date and instead we add the uk-date (dd/mm/yyyy) and us-date(mm/dd/yyyy).
  • AT LAST a new uploader. It works fine with ALL the modern browsers (Firefox, Chrome, Opera, Safari) and now also works well with IE8 and IE9 ( I am sorry IE 9 but you are not a modern browser - http://people.mozill...m/~prouget/ie9/ ).
  • AT LAST grocery CRUD can called "multilingual". Grocery CRUD thanks to the community it has been translated to 19 languages till now: Arabic, Bulgarian, Chinese, English, French, German, Greek, Indonesian, Italian, Persian, Polish, pt-BR.Portuguese, pt-PT.Portuguese, Russian, Spanish, Thai, Turkish, Ukranian, Vietnamese and keep going...
Also some other things that the new grocery CRUD has and really matters even though you can't see them at the first sight:
  • Because security matters... A very improved uploader that validates all the uploaded data. Set your rules and that's it. All the validations are both client side and server side. So don't be afraid of uploading attacks.
  • Because coding matters... With renaming some methods and Classes makes the code more readable. Also there are more comments at the code so to be more flexible for all the developers to change the code or add some custom code
If you want to see more you can always take a look at the change_logs


Enjoy.
Posted Image

#2 naufal

naufal

    Member

  • Members
  • PipPip
  • 18 posts

Posted 16 March 2012 - 04:41 AM

At the changelog i see this,

Changing the interface of the form inputs. Now all the text inputs looks like bootstrap&amp;#39;s inputs.</pre>
Could you show the example please?</p>

#3 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,099 posts
  • LocationLondon

Posted 16 March 2012 - 07:06 AM

You don't need an example. The inputs just are likes bootstrap's. Just press "Ctrl+F5" :) and you will see this 1.png and this 3.png . This is the "Changing the interface of the form inputs". They are all WEB 2 beautiful inputs, same on every browser.
Posted Image

#4 naufal

naufal

    Member

  • Members
  • PipPip
  • 18 posts

Posted 16 March 2012 - 08:24 AM

i see,
don't know about 'bootstraps' words , thank you :)

#5 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,099 posts
  • LocationLondon

Posted 16 March 2012 - 08:15 PM

Yes it is actually wrong the right is bootstrap's . Is the twitter bootstrap. You can see more at: http://twitter.github.com/bootstrap/
Posted Image

#6 vnt

vnt

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts

Posted 17 March 2012 - 05:41 PM

Johnny thanks for the update of Grocery croud!
It's Fantastic!!!





Also tagged with one or more of these keywords: version 1.1 to 1.2, upgrade, callback_escape_insert, callback_escape_update, callback_escape_delete

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users