Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Lance

About

Username
Lance
Joined
Visits
214
Last Active
Roles
Member

Comments

  • Are you print_obj() or print_r() on the returned posts? You will get a load of info back as those records (IIRC) are tied to record class objects. It's expected.
  • Wrong $this. Change to: $CI =& get_instance(); $CI->load->module_library('blog','fuel_blog'); $posts = $CI->fuel_blog->get_recent_posts();
  • Load in the fuel blog library; $this->load->module_library('blog','fuel_blog'); $posts = $this->fuel_blog->get_recent_posts(); There's a few methods in there to get category posts or by date etc.
  • Not without hacking the code. Could you not just change your css? ul#topmenu li a:hover, ul#topmenu li.active a{ background-position:0% -50px; }
  • Opps, sorry I mixed it up with fuel_nav()
  • do a: print_obj($_POST);die; in your on_after_save() method. The categories/sub categories information would have been cleaned out of $values by this stage so you won't see them there. That's why your using the $this->normalized_save_data ar…
  • Your post from 9:35 (directly under mine) looks like you're calling the save_related function incorrectly. It's signature is: function save_related($model, $key_field, $data) This: $this->save_related('categories_to_members_model', array('mem…
  • Members, categories. When saving a member, in an on_after_save hook in your members model check your normalized_saved_data array (check I have that name correct) for category data. If there is some, save it appropriately. get_members() error. The…
  • The first snippet, do none of the pages add an active class or just home isn't working? For your last snippet, It's just 'parent' not 'parent_id'. I've not had a problem losing the active class before, don't suppose your browser is caching the pa…
  • Ahh.. thought it strange when I got an export ico on the button who doesn't like 1.0!
  • One way: Add a custom button to your list_actions, example: 'list_actions' => array('controller/method' => 'Export') Then in your controller do what you need get the records and push the csv for download: header("Cache-Control: private")…
  • Modules are git submodules now. I'll let Dave elaborate.
  • Yup: $fields['test_1'] = array('type' => 'text', 'class' => 'markitup'); $fields['test_2'] = array('type' => 'text', 'class' => 'ckeditor');
  • I don't think your current issue in this thread is related to your block. It seems you are 404-ing trying to get to mysite/lists/accommodation. What is lists/accomodation? Is that the location field of a cms page or a controller, method (lists::acc…
  • Okay zip up everything you have including schema and pm me a link to download it. I'll take a look and see if we can get it going for you.
  • Might help to post your full controller. Any different calling mysite/postanad/index? If not can you output anything in the classes contructor?
  • Ah right, assumed cms pages. If they're static views sure you can use the vars file. I was more meaning create a block to hold all of this logic for required login in one place. In this block you could check the segment/vars etc. If they were cms …
  • Hmm makes me think it's not being seen as legit JSON. Trying using .parseJSON Docs: http://api.jquery.com/jQuery.parseJSON/
  • When you see something like CI_Exceptions::$load It generally points to the wrong '$this'. Try getting a CI instance with $CI =& get_instance() And using that to load, like: $CI->load->view() Little bit odd that it's the exceptions…
  • Assuming your loop is due to the redirect. Does it stop if you just die; there? If your auth/auth/login is set to is_private = 'yes' then it will loop.. I'd ditch the global variables though and do the check in a block.
  • Good to know! Thanks David. Ran into this the other day but opted for css3 rounded borders instead.. IE's gone right?!
  • Have you rerouted mysite/test to postanad/index?
  • What happens when using val.id & val.title?
  • That example is quite involved... What's your end goal for the display of all the courses? If you just want them in a select list or even a combo list that should be pretty straight forward. The blog (posts) module does this with categories and aut…
  • Sorry for the delay Erik, I missed your message. No real process, just hacked at it! I made a few minor (structure) changes in the header and the rest is just css. I loaded in an extra css file with my custom changes in there. I did make the menu…
  • Congratulations
    in Released! Comment by Lance June 2012
  • How about exposing the submit button's class too? HI had a case to change it from the default .submit for use with the foundation framework. Maybe a little lazy of me..
  • That's right. The schema is taken into account with field types as well which is why your change to a year type worked for you. I think to do it in the form fields you probably wanted a type = date. (at a guess..)
  • That should work. Try: $this->load->module_library('my_module', 'my_lib'); The error seems to point to something inside the loaded library.
  • Is that the complete code? upload->data() gets you an array of information for a file, from the docs: This is a helper function that returns an array containing all of the data related to the file you uploaded. So it's per file, hence only savi…