the situation is this.
my client (who also is a programmer) asks me to develop an address book (with mysql database) with a lot of functions. then he can interact with some class methods i provide for him. kinda like an API.
the situation is that the address book application is getting bigger and bigger, and i feel like its way better ...
Hi,
I keep getting a 404 Page Not Found whenever I try to access CodeIgniter's Scaffolding page in my browser, like so: localhost/codeignitor/index.php/blog/scaffolding/mysecretword
I can access localhost/codeignitor/index.php/blog just fine. I followed CodeIgnitor's instructions in their "Create a blog in 20 minutes" by storing my dat...
I'm looking into developing a multi-tenant SaaS application, and I found several sites that describe a solid way to separate the data using tenantIDs and updateable views. e.g. This blog post
It all hinges on the ability to have your user accounts authenticated from a master users table and then having their respective database connecti...
I am running an if statement, that looks like this,
if($this->uri->segment(1) !== 'search' || $this->uri->segment(1) !== 'employment') {
//dome something
}
My problem is that first condition works, if the uri segment 1 equals search then the method do not run however if I on the page employment, and the first segment of the uri i...
EDIT: The cause of the errors (see below): my default primary key in doctrine_pi.php was "id", so I changed it to "book_id" (my database's primary key) and it worked. Thanks Marc B.
Hi,
I am using CI + Doctrine + MySQL and I am getting the following CRUD errors:
(1) When trying to create a new record in the database with this code:
...
I saw the term "Super Object" in CodeIgniter manual, but the term is not explained in details.
So, what is exactly "super object" in CodeIgnter?
...
Hi,
EDIT: The reason why my Doctrine queries (see below) did not work/produced those errors was because I left out
ci_doctrine.
when creating this database:
CREATE TABLE `ci_doctrine`.`user` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`username` VARCHAR( 255 ) NOT NULL ,
`password` VARCHAR( 255 ) NOT NU...
I'm building an app that has a section for consumers and businesses, and I want to separate the controllers folder appropriately, so it looks like this -
http://domain.com/users/signup/
http://domain.com/business/signup/
I have it working by creating a separate folder for each section in the "controllers" folder, but I want to know ho...
Hi everyone,
We're working with a new codeigniter based application that are cross referencing different PHP functions forwards and backwards from various libraries, models and such.
We're running PHP5 on the server and we try to find a good way for managing errors and status reports that arises from the usage of our functions.
While ...
I have a database with blog entries in it. The desired output I am trying to acheive is 3 entrys displayed using the css3 multi paragraph and then another 3(or more) formatted with the codeigniter Character_limiter. So I need 3 displays formatted one way and 3+ formatted another way on the same page.
So far this is what I have, but i ...
Hello all,
I have a function that will be passed in a link. The link is to a remote image. I thought I could just use the extension of the file in the URL to determine the type of image but some URLs won't have extensions in the URL. They probably just push headers to the browser and therefore I do not have an extension to parse from t...
Hi,
Using CodeIgniter, how do I access and display text entered into an input field on a view file (see code below) from my controller file?
// input_view.php
<?php
echo form_open('search/submit');
$input_data = array('name' => 'search_field', 'size' => '70');
echo form_input($input_data);
form_submit('subm...
im going to create a new web application that is very customized.
it will contain images, that are fully searchable - in a very, very customized way.
when you click on the pictures you can add comments and so on.
it requires users to be registered, but the registration/login process will be highly customized too.
at the moment im usi...
Hi,
How do I write the following MySQL query using Doctrine's findBy*() method?:
SELECT column_name1, column_name2 FROM table_name
WHERE column_name3 LIKE '%search_key%';
For Example, to fetch multiple rows from a column named "ColumnName" (below) using Doctrine:
$users = Doctrine::getTable('User')->findByColumnName('active');
echo...
Hi,
This is my first time building a website and using CodeIgniter for a school project. I was wondering whether you have any tips on uploading CI to a free web host , my database, free webhosting and basic security tips.
Can I just upload the entire CI folder? Or do I have to upload individual files (God no!)? What are my options?
Wh...
Hi
Using Codeigniter, how do I get and display, from my controller, all of the text a user entered into a text field on a view? I only get the first word, and nothing after the spaces.
Here are my form_validation rules
$this->form_validation->set_rules(
'field_name','Field Name','trim|required|alpha_numeric|tolower|xss_clean');
...
Hi
while I am performing the edit function .. i have a textarea where i type some text and submit
<tr align="left">
<td class="table_label">Reason </td>
<td><textarea cols="17" class="text_box_login_14_width_150" size="5" name="txtReason" id="txtReason"></textarea></td>
</tr>
when i submit i mu...
Maybe it's a little dumb, but i'm just not sure what is better.
If i have to check more than 10k rows in db for existanse, what i'd do?
#1 - one query
select id from table1 where name in (smth1,smth2...{till 30k})
#2 - many queries
select id from table1 where name=smth1
Though, perfomance is not the goal, i don't want to go down w...
I'm coding a sweepstakes entry form in php where the User submits some information in a form and it is stored in a database.
I would like to find a way to restrict this form to one submission per person. Either dropping a cookie or by IP address. What would be the best way to approach this?
I'm building it on code igniter, if that make...
how do i load all class files in a folder in codeigniter?
its for when i develop, i create and delete class files very often, i don't want to add/remove everyone manually in autoload.php.
thanks!
...