This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent> | |
<cffunction name="init"> | |
<cfset this.version = "1.0,1.0.1,1.0.2,1.0.3,1.0.4,1.0.5,1.0.6,1.1,1.1.1,1.1.2,1.1.3,1.1.4,1.1.5,1.1.6,1.1.7,1.1.8,1.3.0,1.3.1,1.3.2"> | |
<cfreturn this> | |
</cffunction> | |
<!--- | |
Just added isNull(session.user) to 2 conditions so cache doesn't run for logged in users -- Per is working on fixing this for 1.3.3 or 2.0 | |
https://github.com/cfwheels/cfwheels/issues/439 | |
---> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
<cfset qItems = model("User").findAll( | |
where = "vendorid IS NOT NULL", | |
order = "vendorid DESC, itemcategoryid ASC, sortorder ASC", | |
include = "item(itemcategoryjoin(itemcategory)),UsergroupJoin(usergroup)" | |
)> | |
<h3><strong>Vendors</strong></h3> | |
<br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This will let you log every time a user inserts or updates a record. | |
So you can later say: | |
Tim performed insert to the "25" record in the Page table via Pages' Edit a few hours ago, etc | |
Create a table called Logs with the following columns: | |
id int primary autoinc | |
userid int | |
modelid varchar | |
savetype varchar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> //Needed for code coloring | |
/** | |
* @hint This is the Shop controller which handles the shopping cart | |
*/ | |
component extends="Controller" { | |
/** | |
* @hint Runs before functions | |
*/ | |
public function init() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent output="false" cache="true"> | |
<cfscript> | |
_datasource = 0; | |
_itemGW = 0; | |
item.id = 0; | |
item.code = ""; | |
item.name = ""; | |
item.BookXML = ""; | |
item.description = ""; |
NewerOlder