當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseController::remove_accents方法代碼示例

本文整理匯總了PHP中BaseController::remove_accents方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::remove_accents方法的具體用法?PHP BaseController::remove_accents怎麽用?PHP BaseController::remove_accents使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BaseController的用法示例。


在下文中一共展示了BaseController::remove_accents方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getBitURI

 public function getBitURI()
 {
     return $this->id_video . '-' . substr(BaseController::remove_spaces(ucwords(BaseController::remove_accents($this->titulo_video))), 0, 7);
 }
開發者ID:nagyist,項目名稱:abge,代碼行數:4,代碼來源:SFVideos.php

示例2: postUpdate

 public function postUpdate($id)
 {
     $news = SFNews::find($id);
     $image = Input::file('image');
     $image_principal = Input::file('image_principal');
     $validator = Validator::make(array('image' => $image, 'image_principal' => $image_principal), array('image' => 'mimes:png,jpeg,gif', 'image_principal' => 'mimes:png,jpeg,gif'), array('mimes' => 'Tipo de imagen inválido, solo se admite los formatos PNG, JPEG, y GIF'));
     if ($validator->fails()) {
         return Redirect::to($this->route . '/create')->with('msg_err', Lang::get('messages.companies_create_img_err'));
     } else {
         if ($image != "") {
             $image = $this->uploadHeader($image);
         } else {
             $image = $news->image;
         }
         if ($image_principal != "") {
             $image_principal = $this->uploadHeader($image_principal);
         } else {
             $image_principal = $news->image_principal;
         }
         $news->id_profile = 1;
         $news->status = 1;
         $news->home = 1;
         $news->author = 'ABGE';
         $news->sticky = 0;
         $news->category = Input::get('category');
         $news->title = Input::get('title');
         $news->sub_title = Input::get('sub_title');
         $news->home_title = Input::get('home_title');
         $news->summary = Input::get('summary');
         $news->body = Input::get('body');
         $news->date = date("Y-m-d", strtotime(Input::get('date')));
         $news->author = Input::get('author');
         $news->image = $image;
         $news->image_principal = $image_principal;
         $news->save();
         $news->permalink = $news->id_news . '-' . substr(BaseController::guide_spaces(strtolower(BaseController::remove_accents($this->title))), 0, 50);
         $news->save();
         return Redirect::to($this->route)->with('msg_success', Lang::get('messages.companies_edit', array('title' => $news->title)));
     }
 }
開發者ID:nagyist,項目名稱:abge,代碼行數:40,代碼來源:NewsController.php

示例3: getBitURI

 public function getBitURI()
 {
     return $this->id_album . '-' . substr(BaseController::remove_spaces(ucwords(BaseController::remove_accents($this->album_name))), 0, 7);
 }
開發者ID:nagyist,項目名稱:abge,代碼行數:4,代碼來源:SFAlbum.php


注:本文中的BaseController::remove_accents方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。