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.
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.
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…
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")…
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…
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 …
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.
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…
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..)
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…