Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
RewriteBase /#MaxSite#/
RewriteRule ^(.*)$ /#MaxSite#/index.php/$1 [L,QSA]
RewriteBase /MaxSite/
RewriteRule ^(.*)$ /MaxSite/index.php/$1 [L,QSA]
public function album_foto($album_id)
{
$data['fotos'] = $this->albums_model->getAlbumPhotosArray($photo_id);
$this->load->view('album_foto',$data);
}
это контроллер.Выводит ошибку $photo_id не определена
public function getAlbumPhotosArray($album_id)
{
$this->db->select('id, file_name, titles');
$this->db->where('album_id',$album_id);
$query = $this->db->get('photos');
$photos_ids = Array();
$photos_ids[] = Array('photo_id'=>$row['id'], 'file_name'=>$row['file_name'],'titles'=>$row['titles']);
return $photos_ids;
}
это модель