Yii Framework Forum: Navigation Bar A Search Eklemek - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Navigation Bar A Search Eklemek

#1 User is offline   selo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 08-November 13

Posted 25 November 2013 - 07:24 AM

Ne yapmak gerek?
0

#2 User is offline   Yahya Sönmez 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 49
  • Joined: 26-October 11
  • Location:Ankara

Posted 25 November 2013 - 07:48 AM

menülerin bittiği yerden itibaren (boyutu css ile ayarlayabilirsiniz) css ile konumu ayarlayıp search form eklemek gerek,

sorunuz sadece bu kadarsa işlemlerinizi frameworkten bağımsız bir şekilde yapabilirsiniz.

Cevap yetersizse soruyu biraz daha detaylandırabilirmisiniz.
~ α ѕєηισя ѕoғтwαяє dє√єʟσρєя ~
0

#3 User is offline   selo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 08-November 13

Posted 25 November 2013 - 12:46 PM

 <div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'MyBlog', 'url'=>array('/message/myblog')),
				array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Signup', 'url'=>array('/user/register'))
			),
		)); ?>
            
         <?php
         $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'post',
        )); ?>

	<div class="row">
		<?php echo "search" ?>
		<?php echo $form->textField("ara",'content'); ?>
	</div>


        <?php $this->endWidget(); ?>
            
	</div><!-- mainmenu -->


itemsların yanında çıkmıyor.item olarak nasıl girilir
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users