Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:35
    marcovtwout labeled #4499
  • 12:35
    marcovtwout labeled #4499
  • 12:34
    marcovtwout unlabeled #4499
  • 06:16
    johnrembo commented #4499
  • Dec 07 17:05
    marcovtwout labeled #4499
  • Dec 07 17:05
    marcovtwout labeled #4491
  • Dec 07 16:59
    marcovtwout edited #4491
  • Dec 07 16:47
    Shnoulle commented #4491
  • Dec 07 16:43
    wtommyw commented #4491
  • Dec 07 08:24
    marcovtwout commented #4499
  • Dec 07 07:11
    johnrembo opened #4499
  • Dec 01 14:04
    alexius commented #4498
  • Dec 01 10:58
    marcovtwout labeled #4497
  • Dec 01 10:57
    marcovtwout labeled #4498
  • Dec 01 10:57
    marcovtwout commented #4498
  • Dec 01 10:18
    alexius commented #4497
  • Dec 01 10:17
    alexius opened #4498
  • Nov 30 11:39
    marcovtwout commented #4497
  • Nov 30 11:39
    marcovtwout commented #4497
  • Nov 30 11:39
    marcovtwout commented #4497
Alexander Makarov
@samdark
it is about 1.1
but powered by gitter
that's not a thing made with yii
xozoti
@xozoti
hello. How can get URL path to '/media/'?
Alexander Makarov
@samdark
Yii::app()->request->baseUrl . '/media/'
Viriyah Langkaviket
@Gamezxz
I misunderstood.
IIISpikerIII
@IIISpikerIII
Hi, how you can add to the model 2 validation rules? like this
$model->setScenario(['admin_create', 'admin_panel']);
Ihor Skliar
@igogo5yo

@IIISpikerIII
You can create third scenario

public function scenarios()
{
    $admin_create = ['attribute1', 'attribute2'];
    $admin_panel = ['attribute3', 'attribute4'];

    return [
        'admin_create' => $admin_create,
        'admin_panel' => $admin_panel,
        'admin_create_and_panel' => array_merge( $admin_create, $admin_panel)
    ];
}

And use it
$model->setScenario('admin_create_and_panel');

Vasily Belosloodcev
@bupy7
This message was deleted
des1roer
@des1roer
please. tell me how to add phpexcel to project
Nurik
@codder414
Hello to everyone!
Nurik
@codder414
I have the problem. Is there way to tell validator pass "0" value, if validator have the rule "numerical" ? Yii 1.1
I tried "allowEmpty", but it didn't affect for my case.
Alexander Makarov
@samdark
hmm
it should be allowed by default
Ankit Raturi
@ankitraturi
Hi everyone
Is there any extension in yii to invite your facebook, linkedin, twitter, google+ friends?
G.Azamat
@IStranger

Hi everyone

What IDE / plugins you use for efficient work with yii2?
Yii2 into phpDoc used markdown, which does not understand phpShtorm.
For example, instead of the conventional {@link methodName()} used references like [[methodName()]].

In your IDE, these links are clickable?

  • I understand that this is a very good alternative for documentation generator, but now quite difficult to work compared with yii1 (Due to non-standard phpDoc).
Alex
@Alex-Bond
Hey!
PhpStorm still the best IDE for yii.
Actually yii2 was developed in PS
G.Azamat
@IStranger
I agree that phpStorm is best IDE. I see that the developers really well documented (using phpDoc) all source code. But it uncomfortable to use. Maybe there are any additional extensions/plugins for extended support of markdown in phpDoc?
des1roer
@des1roer
How can I pass GridView cell background color?
Nikita
@RedDevilHat
Guys
i need little help
i can't installitions this https://github.com/dektrium/yii2-user on Yii2 Advanced Template
Composer say
Your requirements could not be resolved to an installable set of packages.
Bulgakov Roman
@dikderoy

Hey guys, does anyone encountered an error as such:

usign yii 1.x@latest release, all my code is namespaced, and by some untraceble conditions I got a «class Bla\Blah\B\Iterator not found» execption.

this error happens only on CentOS machines with any precompiled version of PHP5.5 & 5.6

while testing it - code falls on CentOS and works fine on Ubuntu LTS 14.04

Iterator here is an actually native PHP Iterator interface which is used by yii component
Bulgakov Roman
@dikderoy
but somehow PHP makes a mistake while resolving namespaces....
Alexander Makarov
@samdark
xicond
@xicond
How to make all attributes rule, bydefault setAs safe on model form ?
Bulgakov Roman
@dikderoy
@xicond override a rules() callback with such behavior perhaps?)
xicond
@xicond
Is that
Is that the layout used by current yiiframework.ru?
Alexander Makarov
@samdark
no
Doroftey Alexandr
@stixlink
Всем привет!
почему код Yii::app()->assetManager->publish( Yii::getPathOfAlias('ext.js')).'/main.js' на дев сервере возвращает путь assets/5f285af/main.js а на боевом /assets/5f285af/main.js ?
то есть на локальном не подключится скрипт если урл будет site.com/blabla/bla
sorry, wrong chat
ajithfort
@ajithfort
hi
Can i close a modal with jquery?
When i tried i am getting a TypeError: $(…).modal is not a function ERROR
xicond
@xicond
What's modal u use ? Is it from jqueryui ? Is jqueryui loaded? Since u didn't use zii, u need to call for loader jqueryui on yii
ajithfort
@ajithfort
@xicond i found out the error. It was due to the order in which js files have been loading