Yii Framework Forum

Why Yii3 does not support PJAX and Cubrid DB no longer?

(shane) #1

I am curious about the reason that removed PJAX and Cubrid DB support in Yii3.

(Alirz23) #2

I am not sure about the particular reason why it was remove, but I think a goal with yii3 is to have a modular structure and flexibility so users can pick and choose what they would like.

(Pawel) #3

Dropping Cubrid.

Dropping Pjax.

(Alexander Makarov) #4

Cubrid wasn’t used by anyone as far as we know.

PJAX was a huge time-eater for us, we had to patch it and then mere upstream changes from time to time. While it’s OK overall, we decided to drop it from the framework because it’s easy enough to be used directly as a JavaScript library.

(shane) #5

Okay, and is there any possible to ingrate any JS Framework like Vuejs in Yii3?

(Alexander Makarov) #6

See JS Framework for Yii 3.0


are you using CUBRID? Would be the first one I hear from :slight_smile:

(Lubosdz) #8

PJAX replacement - will this be supported in new “plain JS” frontend bindings?

  • If NO - would e.g. grid work without such a functionality (to replace DOM node rather than reload whole page) ?
  • If YES - do you think maintaining own pjax-like functionality will be less time consuming than maintaining Yii2 pjax?

Pjax was really nice and performance-wise functionality in Yii2, which is why I am curious about alternatives in Yii3. Thanx.

(Softark) #9

I believe that updating not the whole page but only a grid view (or a list view) content will still be very easy without PJAX, provided that we can make use of jQuery.ajax or some alternative to it that supports AJAX.

But the difficulties will lie in the query string management, I guess. Probably I’ll be able to forget it. :smirk:

(Alexander Makarov) #10

The answer is NO and widgets initially won’t work without page reloads. You can either add PJAX yourself or implement it with your JS framework of choice.

(Softark) #11


We used to have $.fn.yiiGridView.update in Yii 1.1 and I liked it very much. And of course Pjax::start() and Pjax::end() in Yii 2. It has been very helpful for me.

It’s a pity that we won’t have that kind of helpful shortcut anymore in Yii 3.

So if I would want to update only the grid view content, I will have to write some javascript in view to catch the events that should trigger the updating, call the dedicated controller action for updating, and replace the content with the response, all by myself. Is it correct?

(Alexander Makarov) #12

At first, yes. It could be added later though.