We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

2.2.0: where to put view files / how to point to them

Development and Programming

Nico Meijer's avatar
Nico Meijer
41 posts
14 years ago
Nico Meijer's avatar Nico Meijer

Hi!

Some more headaches from my 2.1.3 –> 2.2.0 upgrade.

I have a custom module (all works fine in 2.1.3) that cannot find my custom view files anymore. They’re located in /system/expressionengine/views/{module}/ as they always have been.

My module functions that collect data (to display XML, for instance) throw an error:

Unable to load the requested file: {module}/{view_file}.php

This is how I’ve always loaded my views:

$this->EE->load->view('{module}/{view_file}', $data);

I’ve tried setting this, to no avail:

$this->EE->load->add_package_path(APPPATH.'views/{module}/');

I must be doing something stupid. Perhaps I overlooked the appropriate line in the changelogs, which I did read.

Any cluestick battery anyone?

Thx… Nico

[Mod Edit: Moved to the Development and Programming forum]

       
Nico Meijer's avatar
Nico Meijer
41 posts
14 years ago
Nico Meijer's avatar Nico Meijer

Excuse me, but why was this thread moved? I think it’s a valid support question.

View files loaded just fine with 2.1.3 and won’t load anymore when upgrading to 2.2.0. My module didn’t change and neither did the location of my view files. Turning on debugging in /index.php does not offer any help.

I have reread the changelog and didn’t find any info. Where is this documented?

All I get is

Unable to load the requested file: …

Thx… Nico

       
Nico Meijer's avatar
Nico Meijer
41 posts
14 years ago
Nico Meijer's avatar Nico Meijer

Forget last moron question. 😊 Support is for installing / using, this neck o’ the woods is for add-on development (which, apparently, is unsupported). 😉

Sorry, just joking… Nico

       
Nico Meijer's avatar
Nico Meijer
41 posts
14 years ago
Nico Meijer's avatar Nico Meijer

/system/expressionengine/views/{module}/ worked in 2.1.3. /system/expressionengine/third_party/{module}/views/ works in 2.2.0 (for me it didn’t in 2.1.3, except for CP views).

Moving my view files. Problem solved.

Grtz… Nico

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.