Tried that in my main layout:
<?php echo fuel_block('sidemenu'); ?>
Page not found
Looking at the help for fuel_block:
Allows you to load a view and pass data to it. The params parameter can either be string value (in which case it will as…
I moved the loading of the sidemenu block to the main layout file, and into the home.php file.
Working fine on home, mysite/lists
On mysite/lists/accommdation:
I get the error page not foud where the side menu is supposed to be.
Hi Lance, not sure what you mean.
I need to somehow flag the page to be private, but this page is not added to the admin side. So do you mean I need to create a block view that sets the var as yes and then call this block in the view?
Hi Gumster,
I am trying your code, but I don't want to control it from the Admin side.
So what I did is in the global variables file I added this:
$pages['postanad'] = array('is_private' => 'yes');
And in my MY_auth I did that:
class MY_au…
Hi,
I am using a tabbed css menu, the span has a background image of the left side of each menu item's tab. (Hope it makes sense )
I am sorry admin, but where do I put this function?
Can you maybe just give me an example of the whole code to bui…
Ok, here the problem was I need to load the library like this:
$this->load->library('tank_auth') And not Tank_auth
Now how do I call the login_form within the main layout.
Why is it loading the file without the header and footer blocks?
Another problem I have:
I have a view that needs to be accessed only by logged in users.
In my controller I put this code:
function index() { $this->load->library('Tank_auth'); if($this->tank_auth->is_logged_in()): ... }
When I …
Hey admin, don't u just hate those spelling mistakes
Ok, changed the column in the database to year and everything is fine now.
Just one question, when you say: "fields will be auto-validated to make sure they are the right length (if length rest…
I also tried this:
function form_fields($values = array())
{
$fields = parent::form_fields();
$fields['year']['type'] = 'year';
$fields['year']['value'] = date('Y');
Tried to capture year 1, and the data was saved to the database.
Thank you admin, but 3 and 4 do not work:
#3 - the data is just being saved to the database with no error.
#4 - I get this error:
Severity: Notice
Message: Undefined property: Module::$validatior
Filename: core/Model.php
Line Number: 50
Can you …
Sorry, can you tell me where do I add these lines? Which file?
call $CI->fuel_blog->recent(3)
add published = "yes" to the fuel_model where condition
Also, you say: "The blog_posts_model doesn't call the parent _common_query" if I look at the…
Hi admin,
1. Regarding the css, just want to make sure I understand correctly.
The echo css('main') will link to the main.css file.
The echo css($css) will link to any css file they I add in the variables file, right?
2. My sponsors_model has this…
ok, on my www folder I have a folder called: fueldemo.
In there I instaelld Fuelcms.
When I go to localhost/fueldemo
I see the link to the blog's post: "A long, long time ago, in a galaxy far, far away"
although the post is 'Unplublished'. I am n…
Thank you Gumster, but I'm not sure how your code will help in my case.
The teacher is logged in, so the is_private won't really work here would it?
I don't know, I am starting to lose it.
Gumster, thank you ! That's what I wanted to hear
I LOVE codeigniter, and hopefully, I will manage to get a hold on things.
I started developing my teacher's module, following the simple module tutorial, which helps me ask more specific questions…