本文整理汇总了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);
}
示例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)));
}
}
示例3: getBitURI
public function getBitURI()
{
return $this->id_album . '-' . substr(BaseController::remove_spaces(ucwords(BaseController::remove_accents($this->album_name))), 0, 7);
}