Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

YII Framework

nicetry127

Novice
Advanced Member
Messages
20
Reaction score
0
Points
26
:praise::praise::praise::help::help::help:patulong naman po, paano mag lagay ng textbox sa loob ng tab, heto po ung code, YII Framework ginamit


$this->widget('zii.widgets.jui.CJuiTabs', array(
'tabs' => array(
'StaticTab 1' => 'Content for tab 1',
'StaticTab 2' => array('content' => 'Content for tab 2', 'id' => 'tab2'),
// panel 3 contains the content rendered by a partial view
'AjaxTab' => array('ajax' => $this->createUrl('...')),
),

// additional javascript options for the tabs plugin
'options' => array(
'collapsible' => true,
),
));

:clap::pray::praise:
 

Attachments

  • asdasd.png
    asdasd.png
    70.3 KB · Views: 30
ay kala ko tutorial ahaha sayang gs2 ko matututo neto ahaha gs2 ko rin sana kita tulungan ts kaso wala ako alam s mga framework huhu
 
gawa ka ng create form tapos lagay mo yung url sa 'AjaxTab' => array('ajax' => $this->createUrl('..')),

like this

<h1>Default CJuiTabs</h1>
<?php

$this->widget('zii.widgets.jui.CJuiTabs',array(

'tabs'=>array(
'StaticTab '=>'Content for tab 1',

'StaticTab With ID'=>array('content'=>'Content for tab 2 With Id' , 'id'=>'tab2'),


'AjaxTab'=>array('ajax'=>$this->createUrl('/user/create')),

),

// additional javascript options for the tabs plugin

'options'=>array(

'collapsible'=>true,

),
'id'=>'MyTab-Menu',
));

?>

eto ang result:

View attachment 319722
 

Attachments

  • sampleCJUITAbs.png
    sampleCJUITAbs.png
    64.2 KB · Views: 8
uu tama yang kay masterito peru need mo eh tweek sa controller din para form lng eh rrender

eh render mo lng yung form mo tapus

sa controller

if(Yii::$app->request->isAjax) {

$this->renderAjax(['user/create'])
}else {
$this->render(['user/create']
}

kasi ajax request ka gawa ka ng condition sa controller mo
 
Last edited:
Back
Top Bottom