EllisLab Community Forums 0 Copyright (c) 2013 ExpressionEngine tag:ellislab.com,2013:05:20 Views Not Loading, But Echoing View Data Works tag:ellislab.com,2013:forums/viewthread/.235510 2013-05-20T12:32:26Z 0 vpellicano I have a very large CI app that we’ve been developing for about 6 months.  I love the simplicity and flexibility of CI and have had a lot of success.  I wouldn’t call myself a CI expert, but I’m very familiar.

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"$dataTRUE); 

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.

]]>
Un-necessary <p> tags added by WYSIWYG, even when “Source” has been selected. tag:ellislab.com,2013:forums/viewthread/.235264 2013-05-09T06:11:20Z 0 aspenavionics I am attempting to add an HTML Form Assembly form into an EE2 page. However, toggling to Source wraps tags around everything, causing layout issues.

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:

http://i.imgur.com/Ik0A4X4.jpg

]]>
sitemap navigation tag:ellislab.com,2013:forums/viewthread/.235509 2013-05-20T11:47:31Z 0 somvannda Is there anything special in EE to get all the segment name as a sitemap?

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

]]>
Multiple layouts for same channel content? tag:ellislab.com,2013:forums/viewthread/.235518 2013-05-20T15:41:05Z 0 superaven Hey, I was wondering if maybe someone had experience, or at least an answer, to something I was looking to do. Basically, I was looking to create multiple templates for content from the same channel. So for example in a news or blog channel that has regularly posted editorial entries a person can select from multiple layout options, ideally in such a way where fields are contextual to the layout selected. Then I assume on the front end templates you’d simply build out a logic statement to check the layout chosen and render the content as defined for that selection.

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.

]]>
If I use any text with “eval” in it the page throws a PHP error (e.g. “evaluation”) tag:ellislab.com,2013:forums/viewthread/.235391 2013-05-14T12:32:16Z 0 skodaminotti I’m using WYGWAM 2.7 and expressionengine 2.5.5. I get this error: A PHP Error was encountered

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.

]]>
Logout isn’t logging out tag:ellislab.com,2013:forums/viewthread/.235517 2013-05-20T14:36:32Z 0 Danny Valle Helo, I cannot seem to get the logout feature to work correctly. When Click the logout link, it doesn’t logout at all. Always keeping me logged in. I am using EE 2.6.

Any ideas?

]]>
where/how can I edit the layout on a category page? tag:ellislab.com,2013:forums/viewthread/.235516 2013-05-20T14:13:48Z 0 girlLAKE62 Hi,
Excuse me if I ask a stupid question. I’m working on my first codeigniter project and so far I think it’s great.
I’ve been brought on board this project to change the format of the blog/category feed on a live site.
This live site has several categories, including “blog” which is set up as a category and that is how they want it. Some of the category pages are styled to display the title, image and excerpt of the first three entries for that category. I would like to style the “blog” category to display the same way.
1. How and where can I change the layout of that one category page? I imagine I can borrow some of the code for the already styled categories for the blog category.
2. How and where can I edit that feed so that the first 6 entries are displayed?
Thanks in advance for your help!

]]>
New to CI - stuck on news tutorial with an ‘Undefined property’ error tag:ellislab.com,2013:forums/viewthread/.235474 2013-05-18T18:24:00Z 0 jimbojames Hi All,

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 propertyNews::$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

 

]]>
dB join issue tag:ellislab.com,2013:forums/viewthread/.235515 2013-05-20T13:27:22Z 0 old_guy I’m calling get_custom_user_data

$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?

]]>
Deprecated tags? tag:ellislab.com,2013:forums/viewthread/.235514 2013-05-20T13:25:31Z 0 fogcity I’m refining a syntax highlighting package for proper highlighting of EE code, and am in need of a definitive list of EE tags that are now deprecated or eliminated. Does such a thing exist?

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.

]]>