This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class m141202_180046_icon_created extends CDbMigration | |
{ | |
// установка обновления | |
public function up() | |
{ | |
$this->addColumn('icons_by_name_view', 'created', 'datetime NOT NULL'); | |
$this->addColumn('similar_view', 'created', 'datetime NOT NULL'); | |
$this->refreshTableSchema('icons_by_name_view'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# задача: приложение реализовать на Yii, а статьи публиковать в Wordpress и всё это на одном адресе и на одном порту : http://icons8.com/ | |
# обсуждается на хабре http://habrahabr.ru/company/dataart/blog/236635/ | |
# там же ссылки ещё на 5 примеров интеграции Wordpress и Yii | |
# конфиг верхнего уровня для перенаправления запросов на приложение Yii или блог wordpress | |
server { | |
listen 80; | |
#server_name icons8.com; | |
#error_log /var/log/icons8.com/error.log; | |
#access_log /var/log/icons8.com/access.log; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class ModActiveRecord is the base class for classes representing relational data. | |
* It provides methods to check if attributes were modified | |
* | |
* @author [email protected] | |
* @link http://copi.st/JtvJ | |
* @link http://www.yiiframework.com/extension/mod-active-record/ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file protected/components/FriendlyPassword.php | |
*/ | |
/** | |
* Class FriendlyPassword | |
* | |
* Generates passwords like that: random_static_word + random_number + random_dynamic_word | |
* |
NewerOlder