@@ -18,6 +18,9 @@ Useful Yii2 snippets for [Sublime text](https://sublimetext.com)
1818- [ User] ( #user )
1919- [ Session] ( #session )
2020- [ Other useful snippets] ( #other-useful-snippets )
21+ - [ Displaying Data] ( #displaying-data )
22+ - [ Base Yii] ( #base-yii )
23+ - [ Register] ( #register )
2124- [ Todos] ( #todos )
2225- [ License] ( #license )
2326- [ PS] ( #ps )
@@ -27,7 +30,7 @@ Useful Yii2 snippets for [Sublime text](https://sublimetext.com)
2730
2831There are several methods to install package.
2932
30- 1 . Search for Yii2 Snippets on Package Control
33+ 1 . Search for Yii2 Snippets on Package Control. < sub >< sup >Not yet available</ sup ></ sub >
3134
32352 . Clone the repository into your Sublime Text 2/3 packages directory. ``` git clone https://github.com/filipyev/yii2-snippets.git ```
3336** Note:** You can find your packages directory by going to Preferences -> Browse Packages.
@@ -39,6 +42,8 @@ There are several methods to install package.
3942| Method | Snippet code |
4043| --------------------------------- | :----------: |
4144| t | Yt |
45+ | setAlias | Ysa |
46+ | getAlias | Yga |
4247
4348
4449### Html
@@ -257,7 +262,7 @@ There are several methods to install package.
257262| setHasSessionId | Sshsi |
258263| id | Sid |
259264| setId | Ssid |
260- | regenerateID | Srg |
265+ | regenerateID | Srgid |
261266| name | Sname |
262267| setName | Ssname |
263268| savePath | Ssp |
@@ -266,19 +271,11 @@ There are several methods to install package.
266271| setCookieParams | Sscp |
267272| useCookies | Suc |
268273| setUseCookies | Ssuc |
269- | gCProbability | SGCP |
270- | setGCProbability | SsGCP |
271- | useTransparentSessionID | Sutsi |
272- | setUseTransparentSessionID | Ssutsi |
273- | timeout | Sto |
274- | setTimeout | Ssto |
275- | offsetSet | Sos |
274+ | openSession | Sos |
276275| closeSession | Scs |
277276| readSession | Sread |
278277| writeSession | Swrite |
279278| destroySession | Sdestroy |
280- | gcSession | Sgcs |
281- | iterator | Siter |
282279| count | Scount |
283280| get | Sget |
284281| set | Sset |
@@ -291,18 +288,30 @@ There are several methods to install package.
291288| removeFlash | Srfl |
292289| removeAllFlashes | Srafl |
293290| hasFlash | Shfl |
294- | offsetExists | Soe |
295- | offsetGet | Sog |
296- | offsetUnset | Sou |
297291
298292
299- ### Other useful snippets
293+ ### Displaying Data
294+
295+ | Method | Snippet code |
296+ | --------------------------------- | :----------: |
297+ | ListView | Lw |
298+ | GridView | Gw |
299+ | echo translate | Yte |
300+
301+
302+ ### Base Yii
300303
301304| Method | Snippet code |
302305| --------------------------------- | :----------: |
303306| user | Yu |
304307| controller | Yc |
305308| action | Ya |
309+
310+
311+ ### Register
312+
313+ | Method | Snippet code |
314+ | --------------------------------- | :----------: |
306315| registerJs | Yrj |
307316| registerJsFile | Yrjf |
308317| registerCss | Yrc |
@@ -312,12 +321,14 @@ There are several methods to install package.
312321### Todos
313322
314323 - Improve shortcuts
315- - Add ListView, GridView and ect...
324+ - ~~ Add ListView, GridView and ect...~~
316325 - Add find model with params
317326 - Add DataProvider
318327 - Add "render" snippets
319328 - Add default behaviors (AccessControl, TimestampBehavior and ect...)
320329 - Add validation rules
330+ - Add cache
331+ - Add use statements
321332 - Add other useful snippets
322333
323334
0 commit comments