Hi. I'm trying to figure out how to write a statement in my first CI app (and only second PHP app ever) and I'm stuck.
I have a junction table that holds book_id and user_id from their respective tables. I want to find out who has read a book and echo that back out, but I need the formatting to make sense. Here is the query:
$readQuer...
I followed all the instructions on this page : http://www.doctrine-project.org/projects/orm/1.2/docs/cookbook/code-igniter-and-doctrine/en
i did all things but the Command Line Interface doesn't work for me
when i execute the doctrine shell script in terminal it show me this
define('BASEPATH','.'); // mockup that this app was execute...
Hi everyone. I have a question just like in the title - Why codeigniter shopping cart class doesn't allow any special character in the name? When I'm adding some item with normal name containing only standard characters it works like charm. However if I add something like, say, "word / word" or something like that it won't add anything t...
Hi! I will be short in my question.
In my codeigniter setup I use database session. in this session I have a variable admin_site_id which i get via
$this->session->userdata('admin_site_id');
What would be the best way to get the same thing in non CI php script?
I have a file manager of fckeditor, which I want to integrate but the...
Hello,
I'm loading content, forms mainly, dynamically using ajax in a Code Igniter app I'm working on. However I need get the URI segments for my DB insert and to autofill the date box on the form. Usually one would do something along the lines of:
$date = $this->uri->segment(3)."/".$this->uri->segment(4)."/".$this->uri->segment(5);
...
Hello,
I'm looking for a way to add a custom option to a drop down select list with Jquery. So the user would click the drop down, and be presented with a list of options, the last being 'add other...' once they click this they can then enter an option of their own (through a pop up, popover, directly inline or however.)
There's the po...
So in my php authentication library, if someone is not logged in, they are redirected to the home page:
redirect('home/index');
The problem is that I have some modal windows that load content through ajax. If a user somehow is logged out (but still on a page where they're "logged in") then the modal shows the login page since the modal...
Hello hi have this issue, I call this url:
user_confirm/[email protected]
then use this:
echo $email = $this->uri->segment(3);
And it outputs:
this_is_fake@gmail_com
Why?
p.s. this is my config:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@';
Thanks!
...
I've noticed that quite a few of the available codeigniter libraries use the same style of documentation that the main user guide uses (for example ion_auth http://benedmunds.com/ion_auth/). Is there some sort of automated way to create this from source code comments, or are people just using cut and paste?
...
I have a new site that I am currently in the process of mapping out. The best way to put it would be that it will be A LOT like youtube.
I need openid support, and video upload support. There is no official openid library for CI and the only one it has seems outdated / could become outdated.
However Codeigniter is fast <- pretty much...
In what phase does the object creation happen at CodeIgniter ?
$newObj = new SomeClass();
In which stage this happens ?
...
When i want to access a function of a user defined model in codeigniter inside a custom user defined library it throughs
Call to a member function Set_where() on a non-object
Although i load the model by using this inside that library
$CI =& get_instance();
$CI->load->model('home_model');
And im using this code to access the functi...
I want to create secure cf using CodeIgniter. I'm new to using CodeIgniter. Is their some library which I should use or should I create one with FormHelper and EmailHelper. Also, if I go with creating one with Helpers, how can spams be taken care of?
...
Been at this for a while, so I figured I'd ask for help. Here's the .htaccess file for wordpress in the root:
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(community)(/|$)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_...
Possible Duplicate:
How to access codeigniter user defined models
When i want to access a function of a user defined model in codeigniter inside a custom user defined library it throughs
Call to a member function Set_where() on a non-object
Although i load the model by using this inside that library
$CI =& get_instance();
...
Hello there I want to password protect one of my controllers in codeigniter. This is the code in .htaccess
# password-protect single file
<Files my_controller.php>
AuthName "my_controller.php"
AuthType Basic
AuthUserFile /home2/afolder/.htpasswds/.htpasswd
require valid-user
</Files>
the problem is that myController.php will show up i...
Hi. I'd like to write the following as a MySQL SELECT statement to cut down on the number of queries required to get the information, but I'm not sure how to write it.
I have two tables - tags and books_tags (a many-to-many relationship junction table). The final output I want would print as follows:
<label for="formFiltertag1"><input ...
Hi all,
I'm using CodeIgniter (v1.7.2) and I've created a custom controller that incorporates authentication called MY_Controller (based on David Winter's blog post). When I load any controllers that use this base class, I get this error;
*Message: Undefined property: MY_Controller::$session*
Note that I am autoloading 'session' ...
I am using the OpenId library from Zend with CodeIgniter and everything is working just fine except for the verify function.
$status = "";
if (isset($_POST['openid_action']) &&
$_POST['openid_action'] == "login" &&
!empty($_POST['openid_identifier'])) {
$consumer = new Zend_OpenId_Consumer();
if (!$consumer->login($_POS...
Hi,
I am building a system based on Codeigniter + Doctrine.
The system will have three access points.
Backend side, Customer Side and Websevice Side. (Each side is a CI application folder)
I am creating the CRUDS under the Backend/models
I want to reuse it in the other CI applications folders.
What is the best architecture for that?...