Displaying 1-10 of 786 result(s).

Yii2 RESTful API with OAuth 2.0

Created 4 months ago by sirin kTutorials0 comments – viewed 10,070 times – ( +5 ) – version 2.0
tags: yii2, REST, oauth 2.0

How to get SEO friendly URL using Model and new getUrl() function

Created 5 months ago by shivHow-tos0 comments – viewed 5,847 times – ( +1 ) – version 2.0
We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

Yii2 Report Grid

Created 7 months ago by Chris BackhouseTips0 comments – viewed 9,828 times – ( +3 ) – version 2.0
There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.
tags: GridView, report

How to resize an image proportionally

Created 8 months ago by AndroideLPHow-tos1 comment – viewed 9,001 times – ( +1 ) – version 2.0
Using the imagine extension is very simple Create this in your component:

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 10 months ago by Wade ShulerHow-tos1 comment – viewed 11,125 times – ( +2 / -1 ) – version 2.0
Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

Show raw SQL query

Created about a year ago by dariooFAQs0 comments – viewed 28,578 times – ( +2 / -1 ) – version 2.0
Here's a quick tip to dump the SQL for query.

Working with relational removals by yii2

Created about a year ago by AndroideLPTutorials2 comments – viewed 10,547 times – ( +1 / -1 ) – version 2.0
This tutorial shows you how to safely remove records between relationships.

Interactive mode command-line command for Yii1

Created about a year ago by TrejderHow-tos0 comments – viewed 8,534 times – ( -1 ) – version 1.1
For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

REST API and null values in XML

Created about a year ago by marko60Tips0 comments – viewed 8,823 times – ( -1 ) – version 2.0
I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the element is taken to represent a null value, but this may create problem with some parsers.
tags: REST, XML, null

Optimize Scenarios for yii2

Created about a year ago by AndroideLPTutorials0 comments – viewed 11,102 times – ( +1 / -1 ) – version 2.0
Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.