Hi Stackers!
I'm using CodeIgniter, alongside the highlight_code("$string"); (More info) function to provide syntax highlighting to a dynamic site. I want the users to be able to submit their own posts written in a BBCode-style format. I'm using NBBC PHP library for this.
My problem is that nomatter how I do it I cannot get NBBC to syn...
I am trying to use the trackback library in codeigniter, but I am always get this
An unknown error was encountered
The following is my code(controller). There is other code validating the form etc but not effecting the trackback
$id = $this->input->post('id');
$ping_url = $this->input->post('ping_url');
$title = $this->i...
Hi,
So i have almost working CI +WP.
In my CI views i am able to put some basic WP functions. But the link to the actual post goes
to the WP folder. Here i would like to recreate the website look and feel.
So i was wondering how i could load->view header, footer etc from CI in WP
...
Maybe, it's a bit silly, but does anybody thought about adding exceptions to Codeigniter Config Class(Library).
Not sure, it is(will be) a good practice, but i suppose throwing an exception instead of just returning false is better.
For example, if we have something connected with user payments.
Usually(?), we'll take some configurable ...
I've been able to make this code work using CodeIgniter's db->query as follows:
$sql =
'SELECT mapping_code,zone_name,installation_name
FROM installations,appearances,zones
WHERE
installations.installation_id = zones.installation_fk_id
AND appearances.installation_fk_id = installations.installation_id
AND appearances.zo...
I'm moving towards an ORM for my codeigniter application and have chosen datamapper. However, in the rules section, it states the following:
A joining table must exist between
each related normal tables, regardless
of the type of relationship.
I have dozens of tables that are in a one->many relationship. Does this mean that I h...
Hi!
I am trying to code my first codeigniter project. I have a login controller which basically filters the data inputed and calls a model function that checks if the user is found in the database.
What I am trying to do is reuse this controller on the index page. So basically I want to be able to do user login on the index page or on t...
Hello all,
I am using codeigniter and its pagination class. It works perfectly and it looks something like this:
« First < 1 2 3 4 5 > Last »
Here is my code:
$this->load->library('pagination');
$config['base_url'] = base_url().'controlpanel/';
$config['first_link'] = 'First';
$config['total_rows'] = $count;
$config['per_page']...
We are using jquery to .load() a form into a div
We then use jquery to .post() that form to a codeigniter controller ie /app/post
We then want Codeigniter to perform validation but were not sure how to return to a page to display the validation errors? If re re .load() the controller wont it re-init the object and we lose the data?
Ar...
I'm developing web application using CodeIgniter. All this time, I put the custom js code to do fancy stuffs inside the view file. By doing this, I can use site_url() and base_url() function provided by CodeIgniter.
Today I want to separate all custom js code from view file into an external js file. Then it hit me, I cannot use site_url...
I'm trying to build a template system in CodeIgniter like wordpress. Does anyone have some links or tips to share with me on this matter?
I would like to create several functions that I can call from those php template pages like in wordpress. For example to display the comments from an item or loop through something, or even a tag_coul...
I'm new to codeigniter, and I'm trying to integrate amazon's FPS into my page. There are a bunch of libraries and models that go with Amazon FPS, which I would need included to make the appropriate calls.
How do I include them in CodeIgniter?
I tried placing the entire Amazon folder inside the system/libraries directory, and then tried...
Hello,
the idea
I'm playing with a concept of modular website builder - now mostly in theory, which would containt pages / collections based on modules (either preprogrammed or done specifically when needed).
Every module with come with it's ties to DB, views/templates and core data processing, I'm thinking about factory pattern:
bas...
Hi,
I have WP in a subfolder and CI in root.
But now the CI sessions stopped working correctly. Using DX_auth library and i am not logged_in().
1 Anyone knows how to fix this???
2/ if i put CI in a subfolder does WP have a session issue???
any tips?
...
in the project I'm creating I need to check if the user is logged in or not, the tutorials I have seen do explain how to authenticate in the controllers and give access to a page or not. But I want all the pages to be visible to everyone but only show certain options if a user is logged in or not.
something like this in the views
if(is...
this is the function I have, in my login controller, which stores data into an array and then set the userdata
function validate_credentials()
{
$this->load->model('membership_model');
$query = $this->membership_model->validate();
if($query):
$data = array(
'username' => $this->input->post('username'),
//add...
Hello,
is there a newsletter code available for CI ?
Or something like PHPList for CI ?
Something that is already written in MVC and could be using CI mailing library?
Thank you
...
Dear all,
In codeigantor framework How i execute a select query with where clause and put the value into a table and return the table??
example:
function abc($input)
{
$query=........where name='.$input.';
........
.......
return table;
}
...........how i do it ? pls help..
thanks
riad
...
Hi Guys,
After developing in CodeIgniter for awhile, I find it difficult to make decision as to when do i create a custom library and when do i create a custom helper.
I do understand that both allows you to have business logic in it and is reusable across the framework(calling from different controller etc.)
But I strongly believe th...
Why won't my model load the encryption library?
class User_model extends Model {
function User_model() {
parent::Model();
$this->check_login();
}
function check_login() {
$this->load->library('encrypt');
$email = $this->encrypt->decode($email);
....
}
}
This giving me a PHP error: Call to a member functio...