Where to process text for user presentation in a CodeIgniter (MVC) project [closed]
I'm new to MVC (I'm using CodeIgniter) and was wondering where I should put a "cut_description" function. My model retri...
Latest news, tutorials, and updates from the PHP community
8483 articles available
I'm new to MVC (I'm using CodeIgniter) and was wondering where I should put a "cut_description" function. My model retri...
When I try to call one of my model methods, I am getting this error: Fatal error: Call to undefined method CI_DB_mysql_d...
I need to retrieve data from two tables. the first is a list of events, the second is a list of venues. I have a fields ...
I was writing some commented PHP classes and I stumbled upon a problem. My name (for the @author tag) ends up with a `ș`...
I'm using html2fpdf for creating PDF documents. Now once I have created that, I want to make sure that the PDF file is p...
How can I iterate the rows returned from my model method? [Code Block]
I am trying to retrieve a value from an Array. Here is the code: [Code Block] I tried to use: `$opt["subjectid"]` but I ...
Scenario: the size of various files are stored in a database as bytes. What's the best way to format this size info to k...
When I use fputcsv to write out a line to an open file handle, PHP will add an enclosing character to any column that it...
I'm using CodeIgniter's query builder to query the MySQL database. I need to select the rows in a table where a field is...
I am trying to access my `Welcome` controller's `cat()` method like this: `localhost/ci/welcome/cat/7` My base URL is `l...
I want to extract the first word of a variable from a string. For example, take this input: [Code Block] The resultant o...
Showing 8281 to 8292 of 8483 articles