I am using tincymce as the content editor and file manager in a PHP admin area. How can I change the file path dynamically so that I can use one instance of the editor for different organized functions?
I can easily pass a variable to the tinymce.init configuration, but I am not aware of and can not find a configuration option for the f...
Hi, I am pretty new to CodeIgniter and PHP in general and have two questions that are somewhat related.
I have a nested category tree with unlimited depth that produces links like myapp.com/language and myapp.com/spanish but I would like to have something like myapp.com/language/spanish.
For reference my model returns an array of array...
There's a way to get which fields were modified after a update query?
I want to keep track what field XXX user modified... any ways using active records?
...
hi to all
I have downloaded working phptreegraph, I want to used it using codeigniter framework. This class to work composed three classes (gdrenderer.ph,tree.php and node.php). I have already created some class but very simple. In this case, do i have to re-write it in one class or there is a better way to load it in my view just loadi...
Hi,
I am fetching the datas from the database...And the datas are displayed as dropdownmenu but the css is not applied
<ul id="nav">
<?php
$res=mysql_query("SELECT * FROM menu WHERE PARENT_ID=0");
while($row=mysql_fetch_array($res))
{
echo "<li class='top'><a href='#' class='top_link'>".$row['MENU_NAME']."...
Hi,
I am trying to extend the Upload library in CodeIgniter. I have been trying all morning, following various tuts and forum posts, but can't get it to work.
If I add the function I want directly into the Upload.php library, it works-- but I know this isn't the right way, and want to do it right since I'm doing it.
Here is the conte...
Hi
Just a quick question about best practice in MVC development.
Let's say that I've got two controllers (cont1, cont2), each of which uses a separate model, model1 & model2.
all files are complex, models contain dozens of methods.
Say, I finished developing of the first controller and I'm in the middle of work on the second one. I n...
Hi, I’m new to CodeIgniter, I was wondering if it’s considered a good practice to restrict direct access to your view-files? Obviously they are going to contain a lot of php-code that relies on variables and what not passed to them from the controller, so the php-code could easily come up with an error if it’s directly accessed couldn’t ...
Hi everyone,
How do you use the email->attach function?
I can't figure what is happen, cos when i put the code for email->attach the mesage came in blank(the mail body) and there is no attach.
If i remove that code line, everything come back to normal..
thank you
my controller (sendmail.php)
<?php
class Sendmail extends Controlle...
I have a PHP script that retrieves list of urls from a site and stores them in a MYSQL table. I want to run the script again and again [with some time delay] and update the table. I am using codeigniter framework.
How can I do it?
Should I run a cron job?
Or should I make a start/stop page with infinte loop?
P.S my webhost is GoDadd...
I am using codeigniter.
My products page shows all the products we have and then users can click on each product_name to get more details about that particular product. So, I have declared products as the class and product_name as a function within the product class - so I could get the url www.company.com/products/product_name.
When I...
I have a PDF which has an image on it (a logo)
I want to open it with PHP and write some text over it and save it back to the file system.
I've done this with the Zend framework before but this project is using code igniter so I need either a standalone lib or a code igniter plugin.
thanks
...
I want to add some classes to a CodeIgniter project that aren't models, views, or controllers. They will most likely be a built in Models/Controllers and used in various ways. Where should I store these classes, and what is the best way to implement them in CodeIgniter? (Or more generally, any MVC-based framework?).
EDIT: Looking throug...
Hi, I was wondering how you find it most easy to setup your controllers. Do you use one controller pr. sub-section of your site (ie. “Friends”, “Inbox”, “My account” etc.), or do you just use one controller that keeps all of the sub-sections?
...
Hey guys, I am trying to figure out which is most appropriate. From the articles I have read, it seems best to end url's with a trailing slash.
So instead of:
http://www.site.com/article
It would read:
http://www.site.com/article/
First I adjusted my htaccess to force a trailing slash.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCo...
I'm trying to find a good organization practice of my javascript (jquery) files when using CodeIgniter. I do a lot of ajax sites and many of my views are loaded in various controllers, I'd like to only load the necessary javascript for those views without duplicate code. How do y'all handle this issue?
...
Hey folks,
CodeIgniter is brilliant but I'm using it to develop a site where users need to be able to share their code for websites. Unfortunately, CodeIgniter has been doing the "right" thing by removing <script> tags from my user's inputs into the database, so when it's returned data looks like this:
[removed] User's data [removed]
...
It says not to "echo" when using it. So how do I put in variable in my views?
...
Hi, I've been playing around with creating an e-commerce site with Codeigniter, and am trying to do the following:
Have category names as the first parameter, e.g.
/tshirts
/shoes
following each of these, is either a filter (on the category), or the product (with category in URL for SEO)
/tshirts/filter/price/0-20
/tshirts/pink-wi...
I've just started to play with CodeIgniter 1.7.2 and imendialtly noticed that there is not a built-in library for user authentication.
I don't need anything fancy. It's only to authenticate users in to my back office system. I don't need users and groups, or permissions etc. I just need a script to allow users to login. If a user tries ...