Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 18 21:15
    samdark commented #4391
  • Jan 18 16:07
    marcovtwout commented #4391
  • Jan 18 12:58
    ac-dc synchronize #4391
  • Jan 18 11:03
    samdark milestoned #4386
  • Jan 18 11:03
    samdark milestoned #4391
  • Jan 18 11:03
    samdark labeled #4391
  • Jan 18 11:02
    samdark commented #4391
  • Jan 18 11:01
    samdark edited #4391
  • Jan 18 10:28
    marcovtwout edited #4386
  • Jan 18 10:27
    marcovtwout edited #4386
  • Jan 18 10:27
    marcovtwout commented #4391
  • Jan 18 10:17
    ac-dc opened #4391
  • Jan 11 07:02
    samdark milestoned #4390
  • Jan 11 07:01
    samdark demilestoned #4390
  • Jan 11 07:01
    samdark milestoned #4390
  • Jan 11 07:01
    samdark closed #4390
  • Jan 11 06:15
    arogachev opened #4390
  • Jan 04 08:26
    marcovtwout edited #4389
  • Jan 03 17:48
    samdark unlabeled #4389
  • Jan 03 17:48
    samdark labeled #4389
Nurik
@codder414
Ребят всем привет. Кто-нибудь знает как подключить модуль YiiBooster (или любой другой модуль), так чтобы он подключал стили и скрипты только по определенному роуту, нужно чтобы все что связано с модулем запускалось только под админкой.
Мда...
Andrey Azarko
@reinq
@codder414 а в чем проблема сделай package в clientScript и в контролере админки подключай его
@codder414 а первый вопрос не могу понять...
Nurik
@codder414
Как работать с урлами, которые не вида контроллер/экшн в urlManager'е ?
Например у меня есть такой урл:
http://site.com/ru/media/uploads/img-232-21.jpg.
Все что идет после языкового префикса - не контроллер. Вот как с такмими роутами работать в urlManager ?
Nurik
@codder414
Ауу народ есть кто ?
Andrey Azarko
@reinq
Так смотря что тебе надо с этого урла
des1roer
@des1roer
есть кто?
вот как Yii::app()->db->createCommand() показать скл?
Andrey Azarko
@reinq
@des1roer
$sql = Yii::app()->db->createCommand()
  ->select("name")
  ->from('package')
  ->where('id=:id', array(':id'=>5))
  ->queryRow();

$query=str_replace(
   array_keys($sql->params),
   array_values($sql->params),
   $sql->getText()
);
Nurik
@codder414
Ребят кто подскажет media браузер наподобие того что есть в WP. (ну или как интегрировать свой медиабраузер в Ckeditor)
Alexander Makarov
@samdark
это англоязычный чат, если что...
вам сюда
shzaur
@shzaur
ху ноуз хау ту чендж хэдерс лайк зис expires:Thu, 19 Nov 1981 08:52:00 GMT
Ankit Padia
@InsaneSkull
Anybody tell me what is the regexp for check 1 - characters? I want to check that value must have number whitespace hyphen(-) whitespace then characters.
Angelo S. Gabisan
@trs-gabisan
hi guys. im new to yii2.. how to use Carousel widgets ? it seems the caption does not reflect in views ? thank you in advance.
Angelo S. Gabisan
@trs-gabisan
This message was deleted
xicond
@xicond
How to parse numbering that have i11n separator ?
Alexander Makarov
@samdark
PHP 7 is included in Ubuntu 16.04 LTS (Xenial Xerus)
illyar80
@illyar80
В интересный проект в офис или удаленная работа требуется программист.
Знание фреймворка Yii2.
Понимание: Командной строки Linux, git, composer, базы данных, MVC, ООП, jquery, HTML5, CSS.
Плюсом будет знание созданий миграции базы данных в Yii2, чтении документации на английском языке и умение разбираться в чужом коде.
Предпочтение отдадим кандидатам из Санкт-Петербурга, рассматриваем программистов, которые работают самостоятельно, не студии.
Оплата по договоренности. Пишите мне в личку.
Nurik
@codder414
Hello to everyone. Who knows, how to recover materialized path hierarchy into array ?
Angelo Gabisan
@angelo-cloudemployee
hi anyone has memcache error in pagination ?
please help
vadimvedev
@vadimvedev

[PHP PROGRAMMER JOB OPPORTUNITY] Hello, I'm looking for a PHP web dev to implement Sphinx Search on a PHP script but also on Wordpress. For the Wordpress site we will call related posts on that page but also related tags based on that current post.

Example of another task I have to get done: I have a PHP script that has a category system but must to add sub-categories feature to those categories. Overall, I'm looking for a bright passionate programmer to be a strong ally to the various web projects I do. So you will help me solve issues and do customization while earning doing something you're passionate about.

I can pay per task, per hour, whatever way as long as there's a fair price for both me and you then we will both be happy! I'm paying fair so I expect to get things as fast as possible, don't message me if you're a begginer who can't get around errors. I'm a begginer programmer myself but I have to get things done as fast as possible so I'm searching for a skilled ally! Feel free to message me

Tomáš Novák
@tomee03
My new feature. https://github.com/tomee03/yii2-string-formatter ... Maybe helps you
jason
@aslijiasheng
I define actionHotWords function in SettelmentController, when use chrome browser show 404, but change actionHotwords is ok, why?
lynicidn
@lynicidn
@aslijiasheng hot-words
undercloud
@undercloud
Hello friends, I have a little request, my english is not good enought,
can you help me with correcting docs? Here is my repo https://github.com/undercloud/beacon,
and also you can support me with stars) Thanks!
Michael.Peng
@ppker
666
hello friends
Asif Ullah Khan
@asifrafeeq
hi friends
i want to know that how can i use toggle button for hiding the left menu in yii2 ?
Jean Caubraque
@j_caub_twitter
hi guys
i've troubles using ExportMenu throw an ajax rendering
i have the "generating file plz wait" on a popup but it's only reloading my index
and generating nothing ...
otherwise exportmenu works fine
Alexander Makarov
@samdark
https://groups.google.com/forum/#!topic/php-fig/beBQqv6PEyc — PSR-12 coding standard survey launched
Andrey L
@lebedevsky
hi guys
how to user master + slaves db connections, and config than all request go to master by default and go on slave only if i used getSlave()
if enable enableSlaves then yii itself split read/write, but if disable it, then getSlave() return only master
Andrey L
@lebedevsky
and only solution is define getSlaveConnection() without check « enableSlaves», but it not looks as best
eight-buddha
@eight-buddha
hi, I have a table with unique field. how to correctly validate duplicates on insert
yii2
kucheryavyi-aleksandr
@kucheryavyi-aleksandr
@eight-buddha ['field', 'unique']
Maxim Niko
@maxim-niko
tell anyone please. How should I cut the picture on the client side using java-script. What library is perfect for such a simple task?
Maxim Niko
@maxim-niko
Hello! Someone was faced with a situation in which fileapi from vova07 transferred the name of the saved file to the model, but when it was saved it was not written to the database?
Дмитрий
@Divan4ik

h1, guys! i render CActiveForm with ajax on standalone html page. Everything works if i include js like this

Yii::app()->getClientScript()->registerCoreScript('copy-of-yii-activeform.js',  CClientScript::POS_HEAD)

is there any way to include core script 'jquery.yiiactiveform.js"?

Yii::app()->getClientScript()->registerCoreScript('yiiactiveform');
// controller
$html = $this->widget('application.modules.forms.widgets.' . $name, $properties = array(), TRUE);
Yii::app()->getClientScript()->renderBodyBegin($html);
Yii::app()->getClientScript()->renderBodyEnd($html);
echo $html;
Yii::app()->end();
Дмитрий
@Divan4ik
eventually, this works
Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getClientScript()->getCoreScriptUrl().'/jquery.yiiactiveform.js', CClientScript::POS_END);
maxcybercom
@maxcybercom
Привет всем