Layer 7 Web, LLC » All Posts https://layer7web.com/discussion/frameworks/fuelcms/feed Thu, 21 Nov 2024 12:45:30 +0000 https://bbpress.org/?v=2.6.9 en-US https://layer7web.com/discussion/topic/model-method-to-get-items-ordered-by-precedence/#post-2707 <![CDATA[Model Method to Get Items Ordered by Precedence]]> https://layer7web.com/discussion/topic/model-method-to-get-items-ordered-by-precedence/#post-2707 Fri, 31 Mar 2017 13:14:43 +0000 Layer7web ]]> https://layer7web.com/discussion/topic/cms-list-view-adding-action-buttons/#post-2620 <![CDATA[CMS List View. Adding action buttons]]> https://layer7web.com/discussion/topic/cms-list-view-adding-action-buttons/#post-2620 Sat, 18 Feb 2017 01:40:16 +0000 Layer7web ]]> https://layer7web.com/discussion/topic/cms-module-adding-descriptive-labels/#post-2619 <![CDATA[CMS Module, Adding descriptive labels.]]> https://layer7web.com/discussion/topic/cms-module-adding-descriptive-labels/#post-2619 Sat, 18 Feb 2017 01:36:31 +0000 Layer7web ]]> https://layer7web.com/discussion/topic/create-and-send-email/#post-2231 <![CDATA[Create and Send Email]]> https://layer7web.com/discussion/topic/create-and-send-email/#post-2231 Sat, 09 Jan 2016 21:26:27 +0000 Layer7web This is actually the codeigniter email library. I have added this to the codeigniter forum as well.

]]>
https://layer7web.com/discussion/topic/using-a-model/#post-2217 <![CDATA[Using a Model]]> https://layer7web.com/discussion/topic/using-a-model/#post-2217 Mon, 04 Jan 2016 01:43:08 +0000 Layer7web Link to Docs: http://docs.getfuelcms.com/general/models

In order to make the model object available in your Controller (this is where you are using this right?) you need to add this to the top of the file:

Once you have loaded the model you can access the methods using:

]]>
https://layer7web.com/discussion/topic/loading-views/#post-2213 <![CDATA[Loading Views]]> https://layer7web.com/discussion/topic/loading-views/#post-2213 Mon, 04 Jan 2016 00:29:08 +0000 Layer7web fuelCMS will load the files designated by the relative URL using the following:

Use this method to load _blocks in your view.

]]>
https://layer7web.com/discussion/topic/layouts/#post-2212 <![CDATA[Layouts]]> https://layer7web.com/discussion/topic/layouts/#post-2212 Mon, 04 Jan 2016 00:12:28 +0000 Layer7web There are two way to create layout in fuelCMS. One way is to create a file with the same name as your view file.
In this file you add the layout variable:

I don’t like this way because we are creating a file we don’t really need and we are adding a little more confusion to the architecture of the application. By using the following code at the top of your view file you can set the layout.

By doing it this way the next engineer will know just by looking at the view file exactly what layout it is using.

]]>
https://layer7web.com/discussion/topic/creating-pages-with-the-opt-in-controller-method/#post-2211 <![CDATA[Creating pages with the "Opt-in Controller" method.]]> https://layer7web.com/discussion/topic/creating-pages-with-the-opt-in-controller-method/#post-2211 Sun, 03 Jan 2016 23:57:59 +0000 Layer7web FuelCMS makes it possible to create pages without creating a new controller or new controller methods. The fuelCMS guide suggests this is the best way unless we are creating more complicated pages like forms or other dynamic content.

]]>
https://layer7web.com/discussion/topic/creating-a-model-2/#post-2207 <![CDATA[Creating a Module]]> https://layer7web.com/discussion/topic/creating-a-model-2/#post-2207 Sat, 02 Jan 2016 03:44:32 +0000 Layer7web *** All of the code snippets taken from http://www.getfuelcms.com/. 🙂

Make sure you have you database tables set up. Here is an example:

Create the Model Class:

Create the Controller:

Add Method to the Controller:

Create method in the Controller to handle the form submission:

]]>