Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How session works in new versions?
Post: RE: How session works in new versions?

In CI 3.x session data is stored on server side only. Client is assigned an ID, that's what being stored in cookies. More info here: http://www.codeigniter.com/user_guide/installation/upgrade_300.h...
3,174 Views
2 Replies
03-13-2016, 07:46 PM
siburny
    Thread: base_url == http://[::1]
Post: RE: base_url == http://[::1]

ma5t3r Wrote: (03-02-2016, 10:59 AM) -- It mean i must have a config file for the server and one for localhost -- Not really. Default config file will have http://localhost base URL, and then you can...
12,187 Views
4 Replies
03-02-2016, 05:24 PM
siburny
    Thread: Getting error: Object of class CI_Output could not be converted to string
Post: RE: Getting error: Object of class CI_Output could...

You don't need to load a view if you are using set_output PHP Code: -- public function json_output(){ -- PHP Code: -- $this->output ->set_content_type('application/json') ->set_output(json_...
4,428 Views
2 Replies
03-01-2016, 08:01 PM
siburny
    Thread: 404 on Live Server
Post: RE: 404 on Live Server

Also, do you default structure of CI? Or you moved out Application and System folders? When you say 404 error page, is it CI styled error page or default server error page?
6,722 Views
5 Replies
02-29-2016, 08:07 PM
siburny
    Thread: local works but on live server (godaddy) doesn't work
Post: RE: local works but on live server (godaddy) doesn...

What if you delete .htaccess file do you get an index page? There might be some kind of PHP error unrelated to Apache config.
9,064 Views
5 Replies
02-29-2016, 08:03 PM
siburny
    Thread: urlrewriting htaccess not working properly
Post: RE: urlrewriting htaccess not working properly

If CI is in subfolder I think you have to set RewriteBase: RewriteBase /myapp/ Put it right after RewriteEngine
2,650 Views
2 Replies
02-29-2016, 08:00 PM
siburny
    Thread: Configure database config from function
Post: RE: Configure database config from function

You can pass array of patamteres to database loader like this: PHP Code: -- $config['hostname'] = 'localhost'; $config['username'] = 'myusername'; $config['password'] = 'mypassword'; $config['d...
3,660 Views
4 Replies
02-29-2016, 07:32 PM
siburny
    Thread: Blank Page on Live Server but works on localhost?
Post: RE: Blank Page on Live Server but works on localho...

The error is in Mailgun, not CI.
5,056 Views
5 Replies
02-29-2016, 05:48 AM
siburny
    Thread: Blank Page on Live Server but works on localhost?
Post: RE: Blank Page on Live Server but works on localho...

Most likely there is a PHP error, but your production server is hiding it for security reasons. Check your PHP error log or temporary enable showing of errors.
5,056 Views
5 Replies
02-28-2016, 05:24 PM
siburny
    Thread: MY_Model - without autoload
Post: RE: MY_Model - without autoload

If you don't need just remove the class file. If you need functionality from CI_Model class, then MY_Model has it too because it inherits from CI_Model. Can you specify a use case?
5,550 Views
7 Replies
02-17-2016, 04:55 PM
siburny
    Thread: Local/Live Problem
Post: RE: Local/Live Problem

How did you upload ffmpeg file? If you just ftp'ed you have to change permissions on it to allow executing.
11,580 Views
12 Replies
02-16-2016, 05:07 PM
siburny
    Thread: How can i pass complete language to a view
Post: RE: How can i pass complete language to a view

I don't it's possible like that.
3,578 Views
3 Replies
02-14-2016, 03:15 PM
siburny
    Thread: How can i pass complete language to a view
Post: RE: How can i pass complete language to a view

It's easier to use lang helper function - it has access to the full language file without need of poluting view data object. https://www.codeigniter.com/userguide3/helpers/language_helper.html
3,578 Views
3 Replies
02-14-2016, 06:53 AM
siburny
    Thread: Cannot Access Global Variable in Loop
Post: RE: Cannot Access Global Variable in Loop

What I suggest you do is use language helper: lang - https://www.codeigniter.com/userguide3/helpers/language_helper.html Then you just load a language file in CI and you don't need to pass anything t...
5,107 Views
4 Replies
02-14-2016, 05:18 AM
siburny
    Thread: Cannot Access Global Variable in Loop
Post: RE: Cannot Access Global Variable in Loop

You can use variable in a loop. You have to put it inside a specific sub-array ("content" in your case). Most people tend to pass to view/parser variables that are needed for that particular template ...
5,107 Views
4 Replies
02-14-2016, 05:14 AM
siburny
    Thread: Memcached not saving
Post: RE: Memcached not saving

Just double checking if you specified server configuration for your memcached server in CI config file.
8,807 Views
7 Replies
02-13-2016, 05:13 PM
siburny
    Thread: how to specify img_url in captcha settings?
Post: RE: how to specify img_url in captcha settings?

Can you post a path where image file is saved? Also, do you use any rewrite rules?
2,099 Views
1 Replies
02-10-2016, 05:06 PM
siburny
    Thread: Problem With Sorting array
Post: RE: Problem With Sorting array

Chandini Wrote: (02-09-2016, 09:53 PM) -- But each every time Arrays changed .. Some times I am Getting Only One Array . Some Times Two , Some Times Four .. These arrays Dynamically generated .. On t...
7,318 Views
7 Replies
02-10-2016, 10:06 AM
siburny
    Thread: Does CodeIgniter convert all post variables to get variables?
Post: RE: Does CodeIgniter convert all post variables to...

I don't think CI would move POST vars to GET. Maybe snippet of code you are using would help troubleshoot it.
6,134 Views
7 Replies
02-09-2016, 05:08 PM
siburny
    Thread: Migrations - very confusing
Post: RE: Migrations - very confusing

One more note: $config['migration_version'] = 0 is the version you want to migrate to. Database has a table called "Migrations" and column "version" lists current version you are on (if it's not there...
7,113 Views
8 Replies
02-09-2016, 03:40 PM
siburny

Theme © iAndrew 2016 - Forum software by © MyBB