Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~12.7K People Reached
About Me

Beginner Website Designer & Developer

Interests
Truck Driving, Store Man Work, Website Design, Pottery.
Favorite Forums
Member Avatar for riwakawd

I have a helper function in codeigniter php where I can use helper like so load_controller('column_left', 'index'); for example "column_left" is the file and class name. How ever that works fine but I would like to be able to type a folder name in load_controller('some_folder/some_class', 'index'); and it would detect …

0
113
Member Avatar for riwakawd

I would like to know if possible to convert this to the codeigniter active record way using this->db->join etc. What's the best. It works fine with the code I got but would like to make it work with codeigniter db active records. http://www.codeigniter.com/userguide2/database/active_record.html public function get_category($category_id) { $language_id = $this->check_language(); …

Member Avatar for cereal
0
227
Member Avatar for riwakawd

On my controller I have a variable called 'name' => $child['name'], for my drop down menu. The problem I am having is that in the child dropdown menu it still shows parent name. I am trying to make it so if parent_id name is equal 0 then will not show …

Member Avatar for riwakawd
0
174
Member Avatar for riwakawd

When I view my list in my admin I would like to be able to make sure the controller name is sorted asc Currently it does not sort alphabetically 'name' => ucwords(str_replace('_', ' ', $controller)), **Function** public function index() { $data['title'] = "User Group Permissions"; $controller_files = $this->get_installed_permissions('name'); $data['controller_files'] = …

Member Avatar for Kyle Wiering
-1
414
Member Avatar for riwakawd

When I or user logs on it checks what permissions it has. And then on a form if has not got permission throws error. Example: <?php class Users_groups extends CI_Controller { public function update() { if (($this->input->server('REQUEST_METHOD') == 'POST') && $this->validateForm()) { // Modal stuff } } public function index() …

Member Avatar for riwakawd
0
259
Member Avatar for riwakawd

I have made a library class in php which can get data from my database table settings. I can get information if it is not serialized. But I would like to know on my get function what would be best method to be able to return unserialise information just incase …

Member Avatar for pixelsoul
0
186
Member Avatar for riwakawd

I have three files which when i click on delete should be removed. How am I able to use the unlink and realpath for my multiple files? public function delete() { $path_to_file = FCPATH . 'application/modules/admin/controllers/module' .'/'. $this->uri->segment(5).'.php'; $path_to_file_lang = FCPATH . 'application/modules/admin/language'.'/' .'english' .'/'. 'module/'. $this->uri->segment(5).'lang.php'; $path_to_file_view = FCPATH …

Member Avatar for pixelsoul
0
3K
Member Avatar for riwakawd

I am having trouble with unserialize method does not seem to work for my codeigniter project. What is the best method to unserialize with codeigniter php. I get a error A PHP Error was encountered Severity: Notice Message: unserialize(): Error at offset 67 of 139 bytes Filename: extension/model_module.php Line Number: …

Member Avatar for pixelsoul
0
381
Member Avatar for riwakawd

On my view I am trying to get it so if my input link[] is next to the upload button then that link post will be inserted into the database with image I use codeigniter for a mvc frame work. I can insert the links and images fine, but the …

Member Avatar for riwakawd
0
197
Member Avatar for riwakawd

When there should be a error it does not show. I can not seem to get the erorrs to work in the correct order How can I improve my file upload errors to work in correct order? public function upload() { $name = $_FILES['userfile']['name']; $tmp_name = $_FILES['userfile']['tmp_name']; $type = $_FILES['userfile']['type']; …

Member Avatar for riwakawd
0
349
Member Avatar for riwakawd

I would like to know if possible in my php codeigniter modelto be able to insert my file names where it matches up with the link insert post. The link post are in array i.e. <input type="text" name="link[]" /> Not sure whats best the name of the file inserts but …

Member Avatar for mtho
0
6K
Member Avatar for riwakawd

On my readURL() function in my scrtipt. I would like to know what would be the best method in being able to auto get the ID from my img tag. Because I have mulitple img rows that get created with own id. What would you think so that the reader.onload …

Member Avatar for DaniWebUser_1
0
517
Member Avatar for riwakawd

When I upload I can upload single files fine but, I cannot seem to upload if input is like **<input type="file" name="file[]">** I am not sure on my php upload function how to make it allow multiple files? Thanks in advance. public function upload() { $this->load->library('request'); $directory = FCPATH .'upload/'; …

Member Avatar for riwakawd
0
249
Member Avatar for riwakawd

When I click on my button add new row it creates a new row and with the same content as what is in orignal row. But for each img I would like to be able to have its own unique id / selector rather than the same id. How am …

Member Avatar for Taywin
0
145
Member Avatar for riwakawd

I have a custom php function for my multiple upload function. I cannot figure out how to make it so when I insert the file name to the database that it matches the row id, of that insert. How can I make it so. When I create a new banner …

Member Avatar for riwakawd
0
213
Member Avatar for riwakawd

I use codeigniter 2+ for my frame work I am having issue with my multple file upload that are in array. I is not picking up the number with in the array. Example: name="banner_image[auto_generated_number]['image']" how to make a foreach work with the banner_image[auto_generated_number]['image'] Currently my code is public function do_upload() …

Member Avatar for lps
0
209