当前位置: 首页>>代码示例>>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;未经允许,请勿转载。