ASK NEW QUESTION

Welcome to yiianswers

This site is specially dedicated to help you answer your Yii Framework questions. You may wonder why do we need a site like this having such a great forum? Well, yiiAnswers is aimed to become an organized archive of questions and answers, this way will easy the task of searching for a solution to any doubt you may have using the framework.
Apologies: This site was hacked and we would like to apologize for the inconveniences that it may caused. I would like to tell to anybody who wishes to damage this site, that this is a personal contribution to an open source community.

Filter Questions by: Newest Unanswered The most Voted

0 Votes

EGMaps How to get lat and lng from dragable marker?

DragEGMapsLatLngMarker

EGMaps How to get lat and lng from dragable marker?

I have try like this

  1. $marker = new EGMapMarkerWithLabel(4.21048, 100.97577, array('title' => "Cobaan"));
  2.  
  3. $label_options = array(
  4.   'backgroundColor'=>'red',
  5.   'opacity'=>'0.75',
  6.   'width'=>'100px',
  7.   'color'=>'blue'
  8. );
  9.  
  10. $dragevent = new EGMapEvent('dragend', 'marker_dragevent(dragend)', false, EGMapEvent::TYPE_EVENT_DEFAULT);
  11.         $marker->addEvent($dragevent);
  12.  
  13. $info_window_d = new EGMapInfoWindow($dragevent.lat(),$dragevent.lng());
  14. $marker->addHtmlInfoWindow($info_window_d);
  15.  
  16. $gMap->addMarker($marker);
$marker = new EGMapMarkerWithLabel(4.21048, 100.97577, array('title' => "Cobaan"));READ MORE

By gezzeg in Extensions · Asked 5 days 21 hours 26 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

bootstrap.widgets.BootMenu add html attribute

add html attributebootstrap.widgets.BootMenuhtmlOptions

hello I’m New

i want to add html attribute to bootstrap.widgets.BootMenu

but i have no result when i use htmlOptions => array(‘id’ => ‘blablabal’) for example,

can anyone help me to solve this

iREAD MORE

By giantdut in Extensions · Asked 7 days 6 hours 55 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

how to create a pagination in yii?

pagination

how to create a pagination in yii

By infopandiyan in Controllers · Asked 9 days 19 hours 8 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

How to create own action in Controller to make mysql insert

controllerInsertLinkModelsMysql

Hi to all,

i am new to yii framework and this is also my first framework.

i am trying to implement a Intress link/button for an article (not from facebook).

So i haveREAD MORE

By keeran in Controllers · Asked 11 days 16 hours 30 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

MANY_MANY Criteria problem

CRITERIAmany_manySELECT

hi. I have many_many relation. Categories & Articles. Just now I want create data provider for CListVeiw Articles where category id =5;(e.g) But my code gives all the Articles ((READ MORE

By eibrahimov in Active Record · Asked 22 days 7 hours 22 mins ago

Questions: 4 Accepted: 2 ( 50% ) | Reputation: 1

0 Votes

CGridView and Adjacent rows ordering

adjacent modelCGridVieworderingsorting

Hi all,

I have an adjacent menu tree displayed in cgridview with tree table. The Menu model has the following atributes: id, id_parent, title, position. When I change the parent rowREAD MORE

By florinp in Grid View · Asked 25 days 15 hours 16 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

Yii::t in config/main.php

configmaintranslate

Hi,

how can I used the translation method in config/main.php?

If I have a array like

  1. $main = array(
  2.  
  3.      ....
  4.      'params' => array(
  5.      ...
  6.           'default' => array(
  7.      ...
  8.  
  9.        READ MORE

By nitropenta in i18n · Asked 25 days 15 hours 32 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

Datepicker Problem

datepickerissues

Hello,

I have two datepickers on my form to select a date range.

If switch between them without selecting a date, or pressing the Done button, the target datepicker doesREAD MORE

By okashino in Widgets · Asked 27 days 12 hours 6 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

Two model form, adding group of fields with javascript

fieldsformjavascripttabular data

Hi! I’m new to yii. To keep everything simple, i have two models, events and contests. Event can contain one or more contests. While creating or updating event, i shouldREAD MORE

By rang501 in Forms · Asked 29 days 18 hours 11 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes

Yii Dynamic DB Connection according to user?

yiiyii dynamic connection

My project is on the basis of multi-talent.

I have multiple clients (companies) and each client has multiple users.

Each client has their own database, so during user authentication, I discover theREAD MORE

By gaurishpatil in DAO · Asked 31 days 14 hours 18 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

© YiiAnswers.com 2011. All rights reserved.

Switch to our mobile site