本文整理汇总了PHP中base::index方法的典型用法代码示例。如果您正苦于以下问题:PHP base::index方法的具体用法?PHP base::index怎么用?PHP base::index使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base
的用法示例。
在下文中一共展示了base::index方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: my_profile
public function my_profile()
{
$user_id = $this->session->userdata('user_id');
$wsdl = $this->_get_wsdl_base_url();
if ($user_id !== FALSE) {
$tab_content_list = $this->get_user_profile_tabs();
parent::index();
$content = "ressphere home search";
$title = "Ressphere - My Profile";
$this->SEO_Tags($content);
$this->set_title($title);
//$this->load->module_model('home_category_model');
$this->extemplate->add_js('js/_usercontrols/change_password.js');
$this->extemplate->add_js('js/_scrolling_nav/scrolling-nav.js');
$this->extemplate->add_js('js/cb_home.js');
$this->extemplate->add_js('js/jquery.easing.min.js');
$this->extemplate->add_js($wsdl . 'js/_switch-toggle/bootstrap-switch.js', 'import', FALSE, FALSE);
$this->extemplate->add_js('js/cb_update_profile.js');
$this->extemplate->add_css('css/home.css');
$this->extemplate->add_css('css/_sidebar/simple-sidebar.css');
$this->extemplate->add_css('css/cb_user_profile_update.css');
$this->extemplate->add_css('css/_scrolling_nav/scrolling-nav.css');
$this->extemplate->add_css($wsdl . 'css/_switch-toggle/bootstrap-switch.css', 'link', FALSE, FALSE);
$this->extemplate->add_css('css/user_profile.css');
//cb_change_profile
$this->extemplate->write_view('contents', '_usercontrols/cb_my_profile', array('general' => $this->get_generic_data(), 'tab_content_list' => $tab_content_list), TRUE);
$this->extemplate->render();
$this->session->set_userdata('secure', '1');
} else {
//TODO: Temporary use 404 with 403
show_error($this->get_page403("This page is for registered member", $this->session->userdata('client_base_url')), 403, "");
}
}
示例2: index
public function index()
{
parent::index();
$content = "ressphere policy";
$title = "Resspshere - Term and Conditions";
$this->SEO_Tags($content);
$this->set_title($title);
$this->extemplate->add_js('js/cb_home.js');
$this->extemplate->add_css('css/home.css');
$this->extemplate->write_view('contents', '_usercontrols/policy_content', '', TRUE);
$this->extemplate->render();
}
示例3: index
function index()
{
parent::index();
$content = "404 Page Not Found";
$title = "404 Ressphere Page Not Found";
$this->SEO_Tags($content);
$wsdl = $this->_get_wsdl_base_url();
$this->extemplate->set_extemplate('page404_home');
$this->extemplate->write('title', $title);
$this->extemplate->add_js($wsdl . 'js/jquery.easing.min.js', 'import', FALSE, FALSE);
$this->extemplate->add_css($wsdl . 'css/404.css', 'link', FALSE, FALSE);
//cb_change_profile
$this->extemplate->write_view('content', '_usercontrols/cb_404_page', array('reason' => "Look like something wrong! The page you were looking for is not here", 'img404' => $wsdl . 'images/404img.svg', 'homepage' => $wsdl, 'contactus' => $wsdl . '#contact'), TRUE);
$this->extemplate->render();
}
示例4: index
public function index()
{
parent::index();
$contact_list = array(array('Name', 'Your name', 'text'), array('Email', 'Your email', 'email'), array('Phone', 'Your phone number', 'phone'), array('Message', 'We always listen to you', 'textarea'));
$content = "ressphere home search";
$title = "Welcome to ressphere";
$this->SEO_Tags($content);
$this->set_title($title);
$this->extemplate->add_js('js/jquery.easing.min.js');
$this->extemplate->add_js('js/_exscrolling_nav/classie.js');
$this->extemplate->add_js('js/_exscrolling_nav/cbpAnimatedHeader.min.js');
$this->extemplate->add_js('js/_exscrolling_nav/jqBootstrapValidation.js');
$this->extemplate->add_js('js/cb_home.js');
$this->extemplate->add_css('css/home.css');
$this->extemplate->add_css('css/about_us.css');
$this->extemplate->add_css('css/contact_us.css');
//$this->extemplate->add_css('css/demo.css');
//$this->extemplate->add_css('css/flexslider.css');
$this->extemplate->write_view('contents', '_usercontrols/cb_services', array('feature_list' => $this->_get_features()), TRUE);
$this->extemplate->write_view('about_us', '_usercontrols/cb_about_us_content', array('news' => $this->_get_about_us()), TRUE);
$this->set_contact_us_html_ui($contact_list);
$this->extemplate->render();
}