expressionengine

Is it possible to get all post variables in ExpressionEngine, like you could in CodeIgniter?

主宰稳场 提交于 2019-12-06 03:33:47
问题 In a controller in CI you could get all post variables by doing something like this: $data = $this->input->post(); In EE (built off of CI by the same people) the analogous syntax would be: $data = $this->EE->input->post(); The only issue is that instead of an array with all of the data, you get a boolean of false. Is there some way of getting an array of all post data, using ExpressionEngine rather than the POST superglobal? Thanks. 回答1: Try native $this->input->post(NULL, TRUE); // returns

I am having a “The file could not be written to disk.” error in ExpressionEngine with files 2MB and up

那年仲夏 提交于 2019-12-05 14:00:16
Has anyone had this issue where they are getting a The file could not be written to disk. error on ExpressionEngine v2.9.2. I notice I am only having this issue with files 2MB and up and in following other posts I have turned off XSS filtering with no help. If it means anything I have EE running on two EC2 instances that are being load balanced. Deployments are handled with OpsWorks. I have also increased file upload size and post size, as well as the ELB connection settings. Markus Gray So I found the issue. AWS uses some sort of virtual /tmp directory by default. So I used the command df -h

Standalone PHP script using Expression Engine

ⅰ亾dé卋堺 提交于 2019-12-04 12:12:15
Is there a way to make a script where I can do stuff like $this->EE->db (i.e. using Expression Engine's classes, for example to access the database), but that can be run in the command line? I tried searching for it, but the docs don't seem to contain this information (please correct me if I'm wrong ). I'm using EE 2.4 (the link above should point to 2.4 docs). Zenbuman The following article seems to have a possible approach: Bootstrapping EE for CLI Access Duplicate your index.php file and name it cli.php. Move the index.php file outside your DOCUMENT_ROOT. Now, technically, this isn’t

Is it possible to get all post variables in ExpressionEngine, like you could in CodeIgniter?

白昼怎懂夜的黑 提交于 2019-12-04 07:50:17
In a controller in CI you could get all post variables by doing something like this: $data = $this->input->post(); In EE (built off of CI by the same people) the analogous syntax would be: $data = $this->EE->input->post(); The only issue is that instead of an array with all of the data, you get a boolean of false. Is there some way of getting an array of all post data, using ExpressionEngine rather than the POST superglobal? Thanks. Jewel Try native $this->input->post(NULL, TRUE); // returns all POST items with XSS filter $this->input->post(); // returns all POST items without XSS filter Ref:

.htaccess in Multiple Environments

久未见 提交于 2019-12-03 11:02:56
I know similar questions have been asked before but I haven't found any really specific answers for my situation. I have an ExpressionEngine site running on multiple environments (local, dev, production), and each of those environments needs different .htaccess rules: All Environments Remove index.php Set a 404 file Set 301 Redirects Development Password Protect with .htpasswd Force HTTPS protocol Prevent search engine indexing with X-Robots-Tag Production Force HTTPS protocol Redirect non-www subdomains to www Local No unique rules. I've seen a lot of examples of how you can set specific

One-To-Many member-to-articles relationship

跟風遠走 提交于 2019-12-02 15:59:16
问题 We are new to Expression Engine and could maybe use some help from anyone who has built a few sites using this CMS. We have a small dashboard system where users log in and read articles that are submitted from other authors. We are wanting to have a form which allows a member to chose which categories of articles he would like to be on his home page when he logs in. Then we'd like to figure out how to actually create that home page so that only the categories of articles that the user has

Is htmlspecialchars() required on ALL output?

蓝咒 提交于 2019-12-02 15:56:21
问题 I am writing some scripts for Expression Engine and have been told that every single piece of data which we output to the page, requires 'sanitizing', to prevent XSS. For example here, I am fetching all Categories from the database, sorting into an array and returning to Expression Engine. PHP Function public function categories() { $query = $this->crm_db->select('name, url_name') ->order_by("name", "asc") ->get_where('activities_categories', array('active'=>1)); foreach($query->result() as

Expression Engine Categories

為{幸葍}努か 提交于 2019-12-02 15:17:46
问题 I have 1 template, and 45 categories. When I click on the link "products" which is my only category group, my side nav shows all of the categories parents and childs, which is good. I now want to be able to choose one of the categories "central vacuums" for example, and have my side nav turn into all the categories related to "central vacuums" only. I've found a way using segments, but it only seems to allow me to show the child categories within "central vacuums", not any of the other

Expression Engine - Help with static code inside expression engine ul

余生颓废 提交于 2019-12-02 10:16:08
I've managed to sort the last li issue, but can't seem to now link my last list item back to the latest entry in the specific category. Any ideas? {exp:channel:entries channel="project" limit="6" category_group="1" stop_before="{embed:stop_before}" related_categories_mode="yes" custom_fields="yes"} {if count == "1"}<ul id="filmStrip">{/if} <li> {exp:imgsizer:size src="{project_image}" height="68px" width="137px"} <a href="{title_permalink='projects-test/view'}"><img src="{sized}" height="{height}" width="{width}" alt=""/></a> {/exp:imgsizer:size} <a href="{title_permalink='projects-test/view'}

ExpressionEngine channel entries loop to create accordion grid with Bootstrap

半城伤御伤魂 提交于 2019-12-02 08:22:04
I need to create an accordion grid using Bootstrap 4. Something like this: I need to use a channel entries loop within ExpressionEngine to spit out each entry as a column and hide related content inside a collapsable div. When you click on a column, the extra content will reveal itself as a new row underneath its parent's row. If I wasn't using an entries loop I would just create it like this: <div class="row"> <!-- Tiles --> <div class="col-4" trigger="#1"></div> <div class="col-4" trigger="#2"></div> <div class="col-4" trigger="#3"></div> <!-- Collapsable content --> <div id="1" class="col