I’m refactoring some common controllers into a core controller to simplify my codebase. In doing so, I’ve come across a very strange problem.
The load view function will not work, but ONLY in this instance. The two calls I have below are in a core controller and are called from throughout the application - and they work 100% of the time, except in my new controller. They’re all being called via a parent::render function (since they’re all based on extended controllers).
In any case, if I run this line of code from my new controller, nothing happens:
$this->load->view("templates/header", $data);
But the bizarre thing to me is that if I run this instead, it works perfectly.
echo $this->load->view("templates/header", $data, TRUE);
It’s true that I could just change all my load view functions to echo the data from the view, but that seems sloppy and I’m sure someone else has had this bug, but I was not able to find a way to fix this in the forum.
It seems likely to me that this is a problem with my new controller code, but it seems really strange to me that it would work with one way (via echoing the view data) but not the other (just executing the view function) since they should be equivalent function calls…
Any ideas would be appreciated.
]]>Anything entered into the field, while source is selected, will force at least 1 set of tags around the content.
Any suggestions on how to resolve this? I have included an image:
]]>For example I have http://domain.org//whoweare/organisation/vision-mission-and-values
I wanna display You are now - Whoweare / Organisation / Vision-mission-and-values
and each path is a link to its own page.
Thanks.
Somvannda
I saw an addon by Booyant / The Outfit called Better Pages (http://fromtheoutfit.com/better-pages) that seems to do this, but since I don’t have experience with either this or using the pages module, I wasn’t sure if I was misunderstanding.
Anyone ever do something like this before?
Thank you in advance for suggestions and help.
]]>Severity: Warning
Message: Please contact support about failure
Filename: libraries/Functions.php
Line Number: 683
If the word “evaluation” is used in my WYGWAM channel field. If I take it out the page works fine.
I also changed the field type to just a text area and I still get the error.
I also put the word “evaluation” in another page WYGWAM channel field and it works fine.
It’s just specific to a particular page.
I have no idea where to start on troubleshooting this.
p.s. I also tried to recreate the page but that doesn’t work either.
]]>Any ideas?
]]>I am new to CI coming from a .Net background.
I have been following the tutorial and all was going well until I got to the end of the news tutorial section.
I am getting the following error when I try and visit my index.php/news page:
A PHP Error was encountered
Severity: Notice
Message: Undefined property: News::$news_model
Filename: controllers/news.php
Line Number: 13
I have checked my code line by line and can’t see any differences between the tutorial and my versions.
I have set up logging in MySQL and I can see that CI is hitting the DB and registering the following entry in to the logs:
Init DB root
Query SET NAMES utf8
I have also checked to see if all my cases are correct, which they seem to be.
I have now been trying to fix this error for 8 hours and I’m out of ideas.
Any help would be greatly received!
FYI (if it helps diagnose the issue), I am running a Mac on Mountain Lion 10.8.3 with the latest CI, MySQL and PHP installations.
Thanks in advance,
James
]]>
$select= array('uacc_status');
$where= array('uacc_id'=>$user_id);
$row= $this->flexi_auth->get_custom_user_data($select, $where)->row();
and getting the following error
Unknown column ‘user_privileges.upriv_id’ in ‘field list’
SELECT `user_privileges`.`upriv_id`, `user_privileges`.`upriv_name`, `uacc_status` FROM (`user_accounts`) LEFT JOIN `user_groups` ON `user_accounts`.`uacc_group_fk` = `user_groups`.`ugrp_id` LEFT JOIN `user_profile` ON `user_accounts`.`uacc_id` = `user_profile`.`user_account_fk` WHERE `user_groups`.`ugrp_id` = ‘1’ AND `user_privilege_users`.`upriv_users_uacc_fk` = ‘1’ AND `uacc_id` = ‘1’
Any idea as to why this is occurring?
]]>For example, these appear to be deprecated:
{exp:channel:entry_form}
{/exp:channel:entry_form}
{display_custom_fields}
But what about:
{if allow_localization}
{if edited}
{if pulldown}
{if message}
{if ignore}
{if attachments}
Im sure there are many others but I can’t find a round-up of them all.
]]>