PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Nov 23, 2016 10:21
and its working for me on other places
Nov 23, 2016 10:21
@pmmaga I think thats the requirement for yii2 validation url
Nov 23, 2016 10:19
@pmmaga am not formatting it .. this is what yii validate gives us
Nov 23, 2016 10:15
@pmmaga Yes I have that in view
Nov 23, 2016 10:14
/** Action to validate data * */
public function actionAjaxValidateAdverseevent() {
/** validate email for uniqueness * */
if (Yii::$app->request->isAjax) {
$postedData = Yii::$app->request->post();

$isFormSubmitted = ($postedData['AdverseEvents']['is_submitted']) ? true : false;

$scenario = \cms\models\dbtables\AdverseEvents::SCENARIO_DEFAULT;
if ($isFormSubmitted) {
$scenario = \cms\models\dbtables\AdverseEvents::SCENARIO_EVENT_SUBMITTED;
}

$objAdverseEventsModel = new \cms\models\dbtables\AdverseEvents();
Nov 23, 2016 10:12
If I am not wrong when we perform ajax validations validation messages are displayed for corresponding input in error div .. right ?
Nov 23, 2016 10:10
Okay I am fine here too
Nov 23, 2016 10:10
lets discuss things there
Nov 23, 2016 10:10
?
Nov 23, 2016 10:10
Ok @JayIsTooCommon if you permit can we start separate chat room
Nov 23, 2016 10:08
but they are not getting displayed
Nov 23, 2016 10:08
I am getting response from server too
Nov 23, 2016 10:08
{"adverseevents-0-received_by_axios":["Select method of reporting"]}
Nov 23, 2016 10:06
@JayIsTooCommon I mean they should be displayed under corresponding input fields
Nov 23, 2016 10:04
<?php
  $objActiveForm = BActiveForm::begin([
              'action' => '/adverse-events/ajax-handle-adverseevent-data-forpatient',
              'validationUrl' => '/adverse-events/ajax-validate-adverseevent',
              'validateOnBlur' => false,
              'validateOnSubmit' => true,
              'validateOnChange' => false,
              'enableAjaxValidation' => true,
              'options' => ['id' => 'frm_addadverseevent' . $patientId, 'class' => 'frm-adverseevents'],
  ]);
  ?>
Nov 23, 2016 10:04
I am kind of stuck off
Nov 23, 2016 10:03
now my problem is I am getting validation errors from server in response but those validations are not being displayed at frontend
Nov 23, 2016 10:03
I have yii2 activeform and submitting form using ajaxvalidation
Nov 23, 2016 10:02
hmm
Nov 23, 2016 10:02
?
Nov 23, 2016 10:02
Please can anybody help me
Nov 23, 2016 10:00
need urgent help
Nov 23, 2016 10:00
Do we have in yii2 pro in chat room ?
Nov 23, 2016 09:59
Hi everyone
Apr 20, 2016 09:33
?
Apr 20, 2016 09:33
anybody good with YII here
Apr 20, 2016 09:33
everyone
Apr 20, 2016 09:33
hi
Nov 26, 2015 10:05
?
Nov 26, 2015 10:05
anyone having experience with google distance matrix api
Nov 26, 2015 10:05
Hi everyone
Nov 18, 2015 06:46
Hi All
Oct 8, 2015 04:55
Friends please help me .I am stuck at this from yesterday
Oct 8, 2015 04:42
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/pdo_sqlite.so' - /usr/lib/php5/20121212/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0
Oct 8, 2015 04:42
I am trying to use sqlite with php but I am getting start up error
Oct 8, 2015 04:37
?
Oct 8, 2015 04:37
is anybody there
Oct 8, 2015 04:37
hi
Oct 7, 2015 12:13
I think this might be reason why drivers are not being loaded
Oct 7, 2015 12:12
Ok I am getting error PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/pdo_sqlite.so' - /usr/lib/php5/20121212/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0
Oct 7, 2015 12:11
but pdo driver is only for mysql
Oct 7, 2015 12:11
@Manulaiko I have check it says that php --ri sqlite3 is enabled
Oct 7, 2015 11:58
@Manulaiko I have installed both by apt-get
Oct 7, 2015 11:50
@Manulaiko how can I check that ?
Oct 7, 2015 11:47
all says same
Oct 7, 2015 11:47
7
Q: Setting Up SQLite3 PDO Drivers in PHP

wayneLNI'm working my way 'slowly' through the php101 tutorials and have got to number 9, where I need SQLite. I've got SQLite3 running and can access via the CLI, (see screenshot of a little test DB) but when I try the tutorial scripts in php101, I get a blank browser screen. I now know this is becaus...

Oct 7, 2015 11:46
6
Q: How to install the SQLite PDO extension on Ubuntu

wowpatrickThe default Ubuntu PHP package does not include the PDO SQLite extension. How can I install the SQLite PDO extension? Is there a package that one can easily install via apt-get?

Oct 7, 2015 11:44
@Manulaiko I have already done what google said
Oct 7, 2015 11:44
@PaulCrovella no such package
Oct 7, 2015 11:42
restart apache