simonbingham / xindi Goto Github PK
View Code? Open in Web Editor NEWXindi is a lightweight CFML content management system ideally suited to smaller websites.
License: Other
Xindi is a lightweight CFML content management system ideally suited to smaller websites.
License: Other
Copyright 2012, Simon Bingham
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
I download and installed it but got this error right out of the box . I'm running CF9, mysql 5.
Invalid CFML construct found on line 46 at column 81. ColdFusion was looking at the following text: [ The CFML compiler was processing: A script statement beginning with public on line 46, column 9. The error occurred in
F:\web-development\fw1-xindi\frameworks\org\corfield\framework.cfc: l
ine 46
44 : }
45 :
46 : public void function addRoute( any routes, string target, any methods = [ ], string statusCode = '' ) {
47 : if ( !isArray( routes ) ) routes = [ routes ];
48 : if ( !isArray( methods ) ) methods = [ methods ];
Could you take a look at this please? Since we added the extension filter the file manager no longer shows directories and I can't figure out how to get them to show.
Use H1 tag in text editor instead.
<cffunction name="Init" access="Public" returntype="any" output="false" hint="I build a new object.">
<cfset variables.Metadata = getMetadata(this) />
<cfparam name="variables.Metadata.cleanseInput" default="false" />
<cfset configure() />
<cfreturn this />
</cffunction>
<cffunction name="populate" access="public" returntype="any" output="false" hint="Populates the object with values from the arguments">
<cfargument name="data" type="any" required="yes" />
<cfargument name="propList" type="any" required="no" default="#ArrayNew(1)#" />
<cfloop array="#variables.Metadata.properties#" index="local.theProperty">
<!--- If a propList was passed in, use it to filter --->
<cfif NOT ArrayLen(arguments.propList) OR ArrayContains(arguments.propList,local.theProperty.name)>
<!--- Do columns --->
<cfif NOT StructKeyExists(local.theProperty,"fieldType") OR local.theProperty.fieldType EQ "column">
<cfif StructKeyExists(arguments.data,local.theProperty.name)>
<!--- The property has a matching argument --->
<cfset local.varValue = arguments.data[local.theProperty.name] />
<!--- For nullable fields that are blank, set them to null --->
<cfif (NOT StructKeyExists(local.theProperty,"notNull") OR NOT local.theProperty.notNull) AND NOT Len(local.varValue)>
<cfset _setPropertyNull(local.theProperty.name) />
<cfelse>
<cfset _setProperty(local.theProperty.name,local.varValue) />
</cfif>
</cfif>
<!--- do many-to-one --->
<cfelseif local.theProperty.fieldType EQ "many-to-one">
<cfif StructKeyExists(arguments.data,local.theProperty.fkcolumn)>
<cfset local.fkValue = arguments.data[local.theProperty.fkcolumn] />
<cfelseif StructKeyExists(arguments.data,local.theProperty.name)>
<cfset local.fkValue = arguments.data[local.theProperty.name] />
</cfif>
<cfif StructKeyExists(local,"fkValue")>
<cfset local.varValue = EntityLoadByPK(local.theProperty.name,local.fkValue) />
<cfif IsNull(local.varValue)>
<cfif NOT StructKeyExists(local.theProperty,"notNull") OR NOT local.theProperty.notNull>
<cfset _setPropertyNull(local.theProperty.name) />
<cfelse>
<cfthrow detail="Trying to load a null into the #local.theProperty.name#, but it doesn't accept nulls." />
</cfif>
<cfelse>
<cfset _setProperty(local.theProperty.name,local.varValue) />
</cfif>
</cfif>
</cfif>
</cfif>
</cfloop>
</cffunction>
<!--- These private methods are used by the populate() method --->
<cffunction name="_setProperty" access="private" returntype="void" output="false" hint="I set a dynamically named property">
<cfargument name="name" type="any" required="yes" />
<cfargument name="value" type="any" required="false" />
<cfset var theMethod = this["set" & arguments.name] />
<cfif IsNull(arguments.value)>
<cfset theMethod(javacast('NULL', '')) />
<cfelse>
<cfset theMethod(arguments.value) />
</cfif>
</cffunction>
<cffunction name="_setPropertyNull" access="private" returntype="void" output="false" hint="I set a dynamically named property to null">
<cfargument name="name" type="any" required="yes" />
<cfset _setProperty(arguments.name) />
</cffunction>
Redirects to localhost/xindi/admin
. Simple fix :)
I download and installed it but got this error right out of the box. I'm running CF8, mysql 5.
Invalid CFML construct found on line 46 at column 81.
ColdFusion was looking at the following text:
[
The CFML compiler was processing:
A script statement beginning with public on line 46, column 9.
The error occurred in F:\web-development\fw1-xindi\frameworks\org\corfield\framework.cfc: line 46
44 : }
45 :
46 : public void function addRoute( any routes, string target, any methods = [ ], string statusCode = '' ) {
47 : if ( !isArray( routes ) ) routes = [ routes ];
48 : if ( !isArray( methods ) ) methods = [ methods ];
Way to add users but not pages in Admin section
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.