English 中文(简体)
采用定值+代相机的另一种价值
原标题:Using set_value + another value in codeigniter

I ve got alogin form and I m usingtank Auth for form accreditation, et al. 就表格而言,我不使用标签;相反,我正在把价值领域集中起来,向用户说明哪些投入(例如,在“电子邮件”领域发送电子邮件地址)。 但是,油轮Austh以一套价值功能预示着价值:

$login = array(
     name   =>  login ,
     id     =>  login ,
     value  => set_value( login ),
);

Is there any way to keep the set_value function, but also enter a value that can be used in place of a label? Or is there some other way to get users to see the instructional text without getting rid of the set_value function?

最佳回答

You are able to set a second argument for set_value().

例如,你可以写:

$login = array(
 name   =>  login ,
 id     =>  login ,
 value  => set_value( login ,  You re username ),
);

将预定数值(如果未输入任何其它数值)定为 页: 1

问题回答

暂无回答




相关问题
PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

What s the proper MVC way to do this....?

Quick question about general MVC design principle in PHP, using CodeIgniter or Kohana (I m actually using Kohana). I m new to MVC and don t want to get this wrong... so I m wondering if i have ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

CodeIgniter adding semicolons

How do I stop CodeIgniter adding semicolons ; to data sent via POST that contains ampersand &? For example it is converting "a=1&b=2&c=3" into "a=1&b;=2&c;=3". From looking on the forums ...

Best way to make Admin pages in CodeIgniter?

I m working on an app in CodeIgniter, and I want to have admin pages for several of the objects in the application, and I m wondering what would be the better way to put these into an MVC structure. ...

CodeIgniter form verification and class

I m using the form validation library and have something like this in the view <p> <label for="NAME">Name <span class="required">*</span></label> <?...