Skip to content

Instantly share code, notes, and snippets.

View iMayMexo's full-sized avatar

iMay PHP Repos iMayMexo

View GitHub Profile
@iMayMexo
iMayMexo / active_record.md
Created August 9, 2023 02:49 — forked from yesnik/active_record.md
Yii 1 Framework Cookbook

CActiveRecord methods

findAll()

Sort records

// Ascending order
Partner::model()->findAll(array('order' => 'company'));
@iMayMexo
iMayMexo / Response.php
Created January 12, 2023 18:28 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@iMayMexo
iMayMexo / Client.class.php
Last active October 18, 2022 23:54 — forked from dedalozzo/Client.class.php
HttpClient
<?php
//! @file Client.class.php
//! @brief This file contains the Client class.
//! @details
//! @author Filippo F. Fadda
//! @brief TODO
namespace Rest;