codeigniter

Codeigniter Dynamic Menu/MY_Controller question

Hola I generate a menu from a database table using a function, and I've placed this in an extended base controller class: <?php class MY_Controller extends Controller { public function __construct() { parent::Controller(); } public function category_menu() { $this->load->model('category_model', 'c...

How do I display adodb data in Codeigniter in my view?

I have this code in my model in codeigniter: <?php class User_model extends Model { function User_model() { parent::Model(); } function get_data() { $pages = false; // Get the pages from the database using adodb if needed $this->adodb->connect(); $recordSet = $this->adodb->e...

PHP and Codeigniter in action

So I've been reading a lot of the Codeigniter user manual, and while it's very intuitive and helpful, I learn best by doing and seeing. Are there some good example sites out there with source that I can browse through and see how it all comes together? Thanks! ...

Plupload and error generation

I am working on an application that uses the plupload library for file uploading. I can't seem to get the file uploading working because there is some kind of error but I can't get this error to alert or log. Has anyone been able to do this? Here is my current code: uploader.bind('Error', function(error){ console.l...

MVC (codeigniter) design question

users want to see some reports from stored data in the db for example: all sales in a time interval (user submits a just a time interval), all the sales in the selected city in a time interval (same with above but this time extra city select dropdown), top selling 20 shops (another report , no form submission and different db tables i...

Where can I download ExpressionEngine Core?

Downloading the core version used to be on the homepage. I did a google search and can't find any download link. Have they discontinued the core version of EE? ...

CodeIgniter 2.0 friendly URLs not working on Mac OS X Snow Leopard

For some reason in CI 2.0 the URLS do not work. http://localhost/myapp/ - will open the default controller (bc it finds index.php) http://localhost/myapp/index.php/home/ - will open the default controller http://localhost/myapp/home/ - will show path not found I am not sure if this is a problem with 2.0 or a specific problem with my ...

php memcached error

Every time I try to use the add() function for memcached, I get the following error: A PHP Error was encountered Severity: Warning Message: MemcachePool::add(): The lowest two bytes of the flags array is reserved for pecl/memcache internal use Filename: libraries/memcached_library.php Line Number: 92 What could be wrong? I'm using...

Do I use a helper, library or place my datepicker code in a model in codeigniter?

Heres my code: //Setup days $data['days']['FALSE'] = 'Day'; //Setup months $data['months'] = array('FALSE' => 'Month', '1' => 'Jan', '2' => 'Feb', '3' => 'Mar', '4' => 'Apr', '5' => 'May', '6' => 'Jun', '7' =...

How can I host multiple sites on WAMP and CodeIgniter?

Hi everyone, I am currently developing a CoeIgniter website on WAMP (in offline mode). However, I would like to develop two more: One CI site And one Wordpress site For the CI site, I've read that you can have multiple application folders (all pointing to the same system folder), but I'm not sure how to direct the request to one or ...

Do I need VPS to get CodeIgniter and PHP 5.3

I am currently hosting my site on my computer on WAMP, however I am looking to take it live. The problem is that it uses both CodeIgniter and PHP 5.3. It will not however, draw very much in the way of traffic to start. Is there some way I can get greater control of my server (so that I can use 5.3 and CI) without having to pay the expens...

Restrict Image Access Codeigniter

I have an images dir at the root of my site. It includes images that should be public, in a public sub-directory, and images in a private directory that should only be available to logged in users. The problem is a logged-in user can copy the img URL, give it to a non-users and now they have access. I have an .htaccess file set up alrea...

Retrieve data from database as a set of rows indexed by primary key in CodeIgniter

I have a table like this: id | username | email ---+----------+---------------- 1 | John | [email protected] 17 | Mary | [email protected] And I want to get a result like this: array( 1 => array( username => 'John', email => '[email protected]' ), 17 => array( username => 'Mary', email => '[email protected]...

How to use a LIKE query with CodeIgniter?

I want to run a query like this: SELECT * FROM table WHERE field LIKE '%search_term%' In CI you can bind parameters to queries, if you used field=? but this does not work for field LIKE "%?%". From debugging output it seems the query used is field LIKE "%'search'%". Is there an alternative way to do searching in CodeIgniter? ...

Codeigniter from and uri

OK i have this problem: I'm creating a search function and to do that correctly i have to pass the word that is written in search field to uri eg. third segment. But since Codeigniter only supports post and not get method (it can be enabled but I'm looking for way around) I need to pass that variable via post to uri. Can anybody help me?...

Is there a way I can make ajax requests always go in order?

Hi SO, What I'm currently doing is using jQuery to perform an ajax request on every keypress. So if my user typed d-o-n-k-e-y, it would send one request for each letter. However, since they take different paths to the server on the network, if they type d-o-n-k-e-y too fast, they don't always arrive in order. They might arrive as D-n...

Codeigniter's Timezone Support Helper with daylight savings

Does anyone have Codeigniter's Timezone Support Helper with daylight savings ? Please share... ...

How to create a Codeigniter non page refreshing signup form?

Heres what I'm trying to do. I want to have a homepage with my signup form that doesn't refresh the page every time a validation step is failed. I want my signup form to have 2 steps. 1st step signup form fields and date dropdown.. when all this is passed successfully then it will forward to captcha without refreshing the page or mayb...

Question about building own (PHP) MVC framework

Hi people, At this time I want to build a MVC framework. Everything is going fine but now I got a problem between controller and view. Hope you can help me. My MVC is not so different from MVC, it uses the same concept, but technically I got an issue. The question is: how to take data from the controller once the view is loaded? Bear ...

I'm overwhelmed by the number of tutorials for codeIgniter. Shall I switch to it from cakePHP?

Recently I have started studying cakePHP and I love the way it's organized. But I don't seem many useful tutorials for it as codeIgniter. Am I missing anything? Shall I switch? PS I'm a computer engineering student and have only little time to study web dev. so i need to save time. ...